BoundingBox

BoundingBox structure

The axis-aligned bounding box

public struct BoundingBox

Constructors

Name Description
BoundingBox(Vector3, Vector3) Initialize a finite bounding box with given minimum and maximum corner
BoundingBox(double, double, double, double, double, double) Initialize a finite bounding box with given minimum and maximum corner

Properties

Name Description
Center { get; } The center of the bounding box.
Extent { get; } Gets the extent of the bounding box.
Maximum { get; } The maximum corner of the bounding box
Minimum { get; } The minimum corner of the bounding box
Size { get; } The size of the bounding box

Methods

Name Description
static FromGeometry(Geometry) Construct a bounding box from given geometry
override Equals(object) Determines if two objects are equal
override GetHashCode() Returns the hash code for this instance
override ToString() Gets the string representation of the bounding box.
operator * Operator overloading for multiply

Fields

Name Description
static readonly Infinite The infinite bounding box
static readonly Null The null bounding box

See Also