23 BoundingBox(): _center(0, 0, 0), _halfExtents(0.5f, 0.5f, 0.5f) {}
40 _halfExtents = {x, y, z};
Axis-Aligned Bounding Box defined by center and half-extents.
void setHalfExtents(const Vector3 &halfExtents)
void setHalfExtents(float x, float y, float z)
BoundingBox(const Vector3 ¢er, const Vector3 &halfExtents)
void setCenter(float x, float y, float z)
void add(const BoundingBox &other)
void setFromTransformedAabb(const BoundingBox &aabb, const Matrix4 &m, bool ignoreScale=false)
const Vector3 & center() const
void setCenter(const Vector3 ¢er)
const Vector3 & halfExtents() const
4x4 column-major transformation matrix with SIMD acceleration.
3D vector for positions, directions, and normals with multi-backend SIMD acceleration.