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: vec3.Vec3

        The center of the OBB

      • halfExtents: vec3.Vec3

        The half extents of the OBB

      • q: quat.Quat

        The quaternion representing the OBB's orientation

      Returns obb3.OBB3

      out