The Box type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() | Clone |
Clone
(Overrides Primitive..::..Clone()()()().) |
![]() | Equals | (Inherited from Object.) |
![]() | Expand |
Expands box by amount on each side (in both +ve and -ve directions)
|
![]() | Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) |
![]() | GetBoundingBox()()()() |
Returns a bounding box that covers this primitive. Default returns a huge box, so
implement this in the derived class for efficiency
(Inherited from Primitive.) |
![]() | GetBoundingBox(AABox%) |
Returns a bounding box that covers this primitive. Default returns a huge box, so
implement this in the derived class for efficiency
(Inherited from Primitive.) |
![]() | GetBoundingRadiusAroundCentre |
Get bounding radius around the centre
|
![]() | GetCentre()()()() |
Gets the box centre position
|
![]() | GetCentre(Vector3%) |
GetCentre
|
![]() | GetCornerPoints |
Gets the corner points, populating pts
|
![]() | GetDistanceToPoint |
Returns the distance from the point to the box, (-ve if the
point is inside the box), and optionally the closest point on
the box.
TODO make this actually return -ve if inside
todo remove this/put it in distance fns
|
![]() | GetEdges |
Returns a (const) list of 12 edges - at the moment in this order:
{BRD, BRU}, // origin-up
{BRD, BLD}, // origin-left
{BRD, FRD}, // origin-fwd
{BLD, BLU}, // leftorigin-up
{BLD, FLD}, // leftorigin-fwd
{FRD, FRU}, // fwdorigin-up
{FRD, FLD}, // fwdorigin-left
{BRU, BLU}, // uporigin-left
{BRU, FRU}, // uporigin-fwd
{BLU, FLU}, // upleftorigin-fwd
{FRU, FLU}, // upfwdorigin-left
{FLD, FLU}, // fwdleftorigin-up
|
![]() | GetEdgesAroundPoint |
EdgeIndices will contain indexes into the result of GetAllEdges
|
![]() | GetHalfSideLengths |
Returns the half-side lengths.
|
![]() | GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
![]() | GetMassProperties |
GetMassProperties
(Overrides Primitive..::..GetMassProperties(PrimitiveProperties, Single%, Vector3%, Matrix%).) |
![]() | GetSide |
Returns the vector representing the edge direction
|
![]() | GetSpan(Single%, Single%, Vector3) |
Gets the minimum and maximum extents of the box along the
axis, relative to the centre of the box.
|
![]() | GetSpan(Single%, Single%, Vector3%) |
Gets the minimum and maximum extents of the box along the
axis, relative to the centre of the box.
|
![]() | GetSqDistanceToPoint |
Returns the squared distance
todo remove this/put it in distance fns
|
![]() | GetSurfaceArea |
GetSurfaceArea
(Overrides Primitive..::..GetSurfaceArea()()()().) |
![]() | GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
![]() | GetVolume |
GetVolume
(Overrides Primitive..::..GetVolume()()()().) |
![]() | MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
![]() | SegmentIntersect |
SegmentIntersect
(Overrides Primitive..::..SegmentIntersect(Single%, Vector3%, Vector3%, Segment).) |
![]() | ToString | (Inherited from Object.) |