Vector3 Mins

book_4_sparkGenerated
code_blocksInput

Description

The Mins field represents the minimum corner extents of the Axis-Aligned Bounding Box (AABB). It is a Vector3 that defines the smallest values on each axis (X, Y, Z) of the bounding box. These values should be mathematically smaller than the corresponding values in the Maxs field, which represents the maximum corner extents of the AABB. This ensures that the bounding box is correctly defined in 3D space.

Usage

Use the Mins field to set or retrieve the minimum extents of a bounding box. This is typically used in collision detection, spatial queries, and other geometric computations where defining the bounds of an object is necessary.

Ensure that the values assigned to Mins are always less than or equal to the corresponding values in Maxs to maintain a valid bounding box.

Example

// Example of setting the Mins field of a BBox
BBox boundingBox = new BBox();
boundingBox.Mins = new Vector3(-1.0f, -1.0f, -1.0f);

// Ensure that Mins is less than Maxs
boundingBox.Maxs = new Vector3(1.0f, 1.0f, 1.0f);

// Example of using Mins in a method
Vector3 minExtents = boundingBox.Mins;
// Use minExtents for further calculations or logic