Class Bounds
Represents an axis-aligned bounding box for mesh vertices.
public class Bounds
- Inheritance
-
Bounds
- Inherited Members
Constructors
Bounds(Vector3, Vector3)
Initializes a new instance of the Bounds class using the specified bounding-box center and dimensions.
public Bounds(Vector3 center, Vector3 extents)
Parameters
center
Vector3The center of the axis-aligned bounding box.
extents
Vector3The dimensions of the axis-aligned bounding box, measured from the center to the extremities.
Fields
Empty
Represents a Bounds instance with empty extents.
public static readonly Bounds Empty
Field Value
Properties
Center
Gets the center of the axis-aligned bounding box.
public Vector3 Center { get; }
Property Value
Extents
Gets the dimensions of the axis-aligned bounding box, measured from the center to the extremities.
public Vector3 Extents { get; }
Property Value
Maximum
Gets the maximum point of the axis-aligned bounding box.
public Vector3 Maximum { get; }
Property Value
Minimum
Gets the minimum point of the axis-aligned bounding box.
public Vector3 Minimum { get; }
Property Value
Size
Gets the full size of the axis-aligned bounding box across all three dimensions.
public Vector3 Size { get; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.