math docs
    Preparing search index...

    Function setFromCenterHalfExtentsQuaternion

    • Sets an OBB from center, half extents, and a quaternion. Convenience helper for users who store orientation as a quaternion.

      Parameters

      • out: obb3.OBB3

        The OBB to store the result

      • center: readonly [number, number, number]

        The center of the OBB

      • halfExtents: readonly [number, number, number]

        The half extents of the OBB

      • q: readonly [number, number, number, number]

        The quaternion representing the OBB's orientation

      Returns obb3.OBB3

      out