|
TrueSync
|
Bounding Box defined through min and max vectors. More...
Public Types | |
| enum | ContainmentType { ContainmentType.Disjoint, ContainmentType.Contains, ContainmentType.Intersects } |
| Containment type used within the TSBBox structure. More... | |
Public Member Functions | |
| TSBBox (TSVector min, TSVector max) | |
| Constructor More... | |
| void | Transform (ref TSMatrix orientation) |
| bool | SegmentIntersect (ref TSVector origin, ref TSVector direction) |
| bool | RayIntersect (ref TSVector origin, ref TSVector direction) |
| bool | SegmentIntersect (TSVector origin, TSVector direction) |
| bool | RayIntersect (TSVector origin, TSVector direction) |
| ContainmentType | Contains (TSVector point) |
| Checks wether a point is within a box or not. More... | |
| ContainmentType | Contains (ref TSVector point) |
| Checks whether a point is inside, outside or intersecting a point. More... | |
| void | GetCorners (TSVector[] corners) |
| Retrieves the 8 corners of the box. More... | |
| void | AddPoint (TSVector point) |
| void | AddPoint (ref TSVector point) |
| ContainmentType | Contains (TSBBox box) |
| Checks whether another bounding box is inside, outside or intersecting this box. More... | |
| ContainmentType | Contains (ref TSBBox box) |
| Checks whether another bounding box is inside, outside or intersecting this box. More... | |
| override string | ToString () |
Static Public Member Functions | |
| static TSBBox | CreateFromPoints (TSVector[] points) |
| Expands a bounding box with the volume 0 by all points given. More... | |
| static TSBBox | CreateFromCenter (TSVector center, TSVector size) |
| static TSBBox | CreateMerged (TSBBox original, TSBBox additional) |
| Creates a new box containing the two given ones. More... | |
| static void | CreateMerged (ref TSBBox original, ref TSBBox additional, out TSBBox result) |
| Creates a new box containing the two given ones. More... | |
Public Attributes | |
| TSVector | min |
| The maximum point of the box. More... | |
| TSVector | max |
| The minimum point of the box. More... | |
Static Public Attributes | |
| static readonly TSBBox | LargeBox |
| Returns the largest box possible. More... | |
| static readonly TSBBox | SmallBox |
| Returns the smalltest box possible. More... | |
Properties | |
| TSVector | center [get] |
| TSVector | size [get] |
| TSVector | extents [get] |
|
strong |
| ContainmentType TrueSync.TSBBox.Contains | ( | TSVector | point | ) |
| ContainmentType TrueSync.TSBBox.Contains | ( | ref TSVector | point | ) |
| ContainmentType TrueSync.TSBBox.Contains | ( | TSBBox | box | ) |
| ContainmentType TrueSync.TSBBox.Contains | ( | ref TSBBox | box | ) |
| void TrueSync.TSBBox.GetCorners | ( | TSVector[] | corners | ) |
|
static |
|
static |
1.8.11