Vector3 Extents { get; set; }

robot_2Generated
code_blocksInput

Description

The Extents property of the BBox structure represents half the size of the bounding box along each axis. It is a Vector3 value that provides a convenient way to understand the dimensions of the bounding box relative to its center. This property is useful for calculations involving the size and positioning of the bounding box in 3D space.

Usage

To access the Extents property, you need an instance of the BBox structure. The property is read-only and provides the extents of the bounding box, which is half of its total size.

Example

// Example of accessing the Extents property
BBox boundingBox = new BBox();
Vector3 extents = boundingBox.Extents;

// Use the extents for further calculations
Vector3 halfSize = extents; // This is half the size of the bounding box

// Example of using extents to calculate the full size
Vector3 fullSize = extents * 2;