C# Class BEPUutilities2.BoundingBox

Provides XNA-like axis-aligned bounding box functionality.
Show file Open project: RossNordby/scratchpad Class Usage Examples

Public Properties

Property Type Description
Max Vector3
Min Vector3

Public Methods

Method Description
CreateFromPoints ( IList points ) : BoundingBox

Creates the smallest possible bounding box that contains a list of points.

ToString ( ) : string

Creates a string representation of the bounding box.

Private Methods

Method Description
BoundingBox ( Vector3 min, Vector3 max ) : System
ComputeVolume ( BoundingBox &box ) : float
Contains ( BoundingBox &boundingBox ) : ContainmentType
CreateFromSphere ( BoundingSphere &boundingSphere, BoundingBox &boundingBox ) : void
CreateMerged ( BoundingBox &a, BoundingBox &b, BoundingBox &merged ) : void
Intersects ( BoundingBox &a, BoundingBox &b ) : bool
Intersects ( BoundingSphere &boundingSphere ) : bool

Method Details

CreateFromPoints() public static method

Creates the smallest possible bounding box that contains a list of points.
public static CreateFromPoints ( IList points ) : BoundingBox
points IList Points to enclose with a bounding box.
return BoundingBox

ToString() public method

Creates a string representation of the bounding box.
public ToString ( ) : string
return string

Property Details

Max public property

Location with the highest X, Y, and Z coordinates in the axis-aligned bounding box.
public Vector3 Max
return Vector3

Min public property

Location with the lowest X, Y, and Z coordinates in the axis-aligned bounding box.
public Vector3 Min
return Vector3