struct simd::AABox

Version of AABox suitable for SIMD use.

Takes up a bit more memory than standard AABox and is always 16-byte aligned.

Public

Constructors

AABox

AABox() = default

AABox

AABox(const AABox &box)

Initializes bounds from an AABox.

AABox

AABox(const Sphere &sphere)

Initializes bounds from a Sphere.

AABox

AABox(const Vector3 &center, float extent)

Initializes bounds from a vector representing the center and equal extents in all directions.

Methods

Overlaps

bool Overlaps(const AABox &other) const

Returns true if the current bounds object intersects the provided object.

Fields

Center

Vector4 Center

Center of the bounds, W component unused.

Extents

Vector4 Extents

Extents (half-size) of the bounds, W component unused.