struct simd::Area2

Version of Area2 suitable for SIMD use.

Public

Constructors

Area2

Area2() = default

Area2

Area2(const Area2 &area)

Initializes bounds from an Area2.

Area2

Area2(const Vector2 &center, float extent)

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

Methods

Overlaps

bool Overlaps(const Area2 &other) const

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

Fields

Center

Vector4 Center

Center of the bounds.

Z and W component unused.

Extents

Vector4 Extents

Extents (half-size) of the bounds.

Z and W component unused.