|
| Bounds (Vector3 min, Vector3 max) |
| Creates a box from two corners.
|
|
| Bounds (float xMin, float yMin, float zMin, float xMax, float yMax, float zMax) |
| Creates a box by specifying each coordinate.
|
|
void | Reset () |
| Resets to an “unpopulated” state—ready for Grow/Encapsulate.
|
|
bool | IsPopulated () |
| True if Reset() has been called (i.e. not both corners = zero).
|
|
bool | IsDegenerate (float epsilon=float.Epsilon) |
| True if the box has zero volume (within epsilon).
|
|
void | AddPoint (Vector3 point) |
| Expand to include this point.
|
|
bool | ContainsPoint (Vector3 p) |
| True if the point is inside [Min,Max].
|
|
bool | ContainsPoint (Vector3 p, Vector3 tol) |
| Contains with per‐axis tolerance.
|
|
bool | ContainsPoint (Vector3 p, float tol) |
| Contains with uniform tolerance.
|
|
Vector3 | GetDimensions () |
| The size of the box = Max − Min.
|
|
Vector3 | GetCenter () |
| Center = (Min + Max) / 2.
|
|
Vector3 | GetExtents () |
| Extents = half‐dimensions.
|
|
void | Inflate (float amount) |
| Grow/shrink all sides by a uniform amount.
|
|
void | Inflate (Vector3 amount) |
| Grow/shrink all sides by per‐axis amounts.
|
|
Vector3[] | GetCorners () |
| The eight corners in the same order as your C++ code.
|
|
bool | Intersect (Bounds b) |
| AABB‐AABB overlap test.
|
|
bool | Intersect (Bounds b, out bool contained) |
| Overlap + full containment test. Returns true if they overlap; sets contained=true if b is entirely inside this.
|
|
bool | Intersect (Bounds b, out Bounds intersection) |
| Overlap + return the intersection box.
|
|
bool | Intersect (Bounds b, Vector3 tol) |
| Overlap with a tolerance vector.
|
|
bool | Slab (float o, float d, float mn, float mx, ref float t0, ref float t1) |
|
bool | Intersect (Vector3 origin, Vector3 dir, out float t, bool restrictRange=true) |
| Ray vs AABB (slab method).
Returns true if hit; t = entry time in [0,1] if restrictRange.
|
|
override bool | Equals (object obj) |
|
override int | GetHashCode () |
|
bool | Equals (Bounds other) |
|
Definition at line 6 of file Bounds.cs.