VRageMath
BoundingBoxI
Assembly: VRage.Math.dll
public struct BoundingBoxI: IEquatable<BoundingBoxI>
Defines an axis-aligned box-shaped 3D volume.
Fields
| Member | Description |
|---|---|
| Max | The maximum point the BoundingBoxI contains. |
| Min | The minimum point the BoundingBoxI contains. |
Properties
| Member | Description |
|---|---|
| Center | Calculates center |
| HalfExtents | |
| IsValid | |
| Perimeter | return perimeter of edges |
| Size | Size |
Constructors
| Member | Description |
|---|---|
| BoundingBoxI(BoundingBox) | |
| BoundingBoxI(Vector3I, Vector3I) | |
| BoundingBoxI(int, int) |
Methods
| Member | Description |
|---|---|
| static CreateFromPoints(IEnumerable |
Creates the smallest BoundingBoxI that will contain a group of points. |
| static CreateFromSphere(BoundingSphere) | Creates the smallest BoundingBoxI that will contain the specified BoundingSphere. |
| static CreateFromSphere(ref BoundingSphere, out BoundingBoxI) | Creates the smallest BoundingBoxI that will contain the specified BoundingSphere. |
| static CreateInvalid() | |
| static CreateMerged(BoundingBoxI, BoundingBoxI) | Creates the smallest BoundingBoxI that contains the two specified BoundingBoxI instances. |
| static CreateMerged(ref BoundingBoxI, ref BoundingBoxI, out BoundingBoxI) | Creates the smallest BoundingBoxI that contains the two specified BoundingBoxI instances. |
| static EnumeratePoints(BoundingBoxI) | Enumerate all values in a integer interval (a cuboid). This method is an allocating version of the Vector3I_RangeIterator. This once can be used in the foreach syntax though so it's more convenient for debug routines. |
| static IterateDifference(BoundingBoxI, BoundingBoxI) | Iterate every cell contained in - , where we interpret as the set of all distinct Vector3I points inside a 'box'. Containment is taken in a typical inclusive start, exclusive end fashion. |
| Contains(BoundingBoxI) | Tests whether the BoundingBoxI contains another BoundingBoxI. |
| Contains(ref BoundingBoxI, out ContainmentType) | Tests whether the BoundingBoxI contains a BoundingBoxI. |
| Contains(Vector3I) | Tests whether the BoundingBoxI contains a point. |
| Contains(Vector3) | |
| Contains(ref Vector3I, out ContainmentType) | Tests whether the BoundingBoxI contains a point. |
| Distance(Vector3I) | |
| Equals(BoundingBoxI) | Determines whether two instances of BoundingBoxI are equal. |
| Equals(object) | Determines whether two instances of BoundingBoxI are equal. |
| GetCorners() | Gets an array of points that make up the corners of the BoundingBoxI. |
| GetCorners(Vector3I[]) | Gets the array of points that make up the corners of the BoundingBoxI. |
| GetCornersUnsafe(*Vector3I) | |
| GetHashCode() | Gets the hash code for this instance. |
| GetIncluded(Vector3I) | |
| Include(ref Vector3I) | return expanded aabb (abb include point) |
| Include(Vector3I) | |
| Include(Vector3I, Vector3I, Vector3I) | |
| Include(ref Vector3I, ref Vector3I, ref Vector3I) | |
| Include(ref BoundingBoxI) | return expanded aabb (abb include point) |
| Include(BoundingBoxI) | |
| Inflate(int) | |
| InflateToMinimum(Vector3I) | |
| Intersect(BoundingBoxI) | Returns bounding box which is intersection of this and box Result is invalid box when there's no intersection (Min > Max) |
| Intersects(BoundingBoxI) | Checks whether the current BoundingBoxI intersects another BoundingBoxI. |
| Intersects(ref BoundingBoxI) | |
| Intersects(ref BoundingBoxI, out bool) | Checks whether the current BoundingBoxI intersects another BoundingBoxI. |
| Intersects(Plane) | Checks whether the current BoundingBoxI intersects a Plane. |
| Intersects(ref Plane, out PlaneIntersectionType) | Checks whether the current BoundingBoxI intersects a Plane. |
| Intersects(Line, out float) | |
| Intersects(Ray) | Checks whether the current BoundingBoxI intersects a Ray. |
| Intersects(ref Ray, out float?) | Checks whether the current BoundingBoxI intersects a Ray. |
| IntersectsTriangle(Vector3I, Vector3I, Vector3I) | |
| IntersectsTriangle(ref Vector3I, ref Vector3I, ref Vector3I) | |
| IntersectWith(ref BoundingBoxI) | Returns bounding box which is intersection of this and box Result is invalid box when there's no intersection (Min > Max) |
| SurfaceArea() | |
| ToString() | Returns a String that represents the current BoundingBoxI. |
| Translate(Vector3I) | Translate |
| Volume() |
Implements: