struct simd::Range

Version of Range suitable for SIMD use.

Public

Constructors

Range

Range() = default

Range

Range(const Range &range)

Initializes bounds from an Area2.

Range

Range(float center, float extent)

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

Methods

Overlaps

bool Overlaps(const Range &other) const

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

Fields

Center

Vector4 Center

Center of the bounds.

Y, Z and W component unused.

Extents

Vector4 Extents

Extents (half-size) of the bounds.

Y, Z and W component unused.