VRageMath
BoundingBox
Assembly: VRage.Math.dll
public struct BoundingBox: IEquatable<BoundingBox>
Defines an axis-aligned box-shaped 3D volume.
Fields
| Member | Description |
|---|---|
| static Comparer | |
| static CornerCount | Specifies the total number of corners (8) in the BoundingBox. |
| static Invalid | |
| Max | The maximum point the BoundingBox contains. |
| Min | The minimum point the BoundingBox contains. |
Properties
| Member | Description |
|---|---|
| Center | Calculates center |
| Corners | |
| Depth | |
| Extents | |
| HalfExtents | |
| Height | |
| Matrix | Matrix of AABB, respecting center and size |
| Perimeter | return perimeter of edges |
| Size | Size |
| Width |
Constructors
| Member | Description |
|---|---|
| BoundingBox(Vector3, Vector3) | |
| BoundingBox(BoundingBoxD) | |
| BoundingBox(BoundingBoxI) |
Methods
| Member | Description |
|---|---|
| static CreateFromHalfExtent(Vector3, float) | |
| static CreateFromHalfExtent(Vector3, Vector3) | |
| static CreateFromPoints(IEnumerable |
Creates the smallest BoundingBox that will contain a group of points. |
| static CreateFromSphere(BoundingSphere) | Creates the smallest BoundingBox that will contain the specified BoundingSphere. |
| static CreateFromSphere(ref BoundingSphere, out BoundingBox) | Creates the smallest BoundingBox that will contain the specified BoundingSphere. |
| static CreateInvalid() | |
| static CreateMerged(BoundingBox, BoundingBox) | Creates the smallest BoundingBox that contains the two specified BoundingBox instances. |
| static CreateMerged(ref BoundingBox, ref BoundingBox, out BoundingBox) | Creates the smallest BoundingBox that contains the two specified BoundingBox instances. |
| static IsBetween(float, float, float) | |
| Contains(BoundingBox) | Tests whether the BoundingBox contains another BoundingBox. |
| Contains(ref BoundingBox, out ContainmentType) | Tests whether the BoundingBox contains a BoundingBox. |
| Contains(BoundingFrustum) | Tests whether the BoundingBox contains a BoundingFrustum. |
| Contains(Vector3) | Tests whether the BoundingBox contains a point. |
| Contains(Vector3D) | |
| Contains(ref Vector3, out ContainmentType) | Tests whether the BoundingBox contains a point. |
| Contains(BoundingSphere) | Tests whether the BoundingBox contains a BoundingSphere. |
| Contains(ref BoundingSphere, out ContainmentType) | Tests whether the BoundingBox contains a BoundingSphere. |
| Distance(Vector3) | |
| DistanceSquared(Vector3) | |
| Equals(BoundingBox) | Determines whether two instances of BoundingBox are equal. |
| Equals(object) | Determines whether two instances of BoundingBox are equal. |
| Equals(BoundingBox, float) | |
| GetCorners() | Gets an array of points that make up the corners of the BoundingBox. ALLOCATION! |
| GetCorners(Vector3[]) | Gets the array of points that make up the corners of the BoundingBox. |
| GetCornersUnsafe(*Vector3) | |
| GetHashCode() | Gets the hash code for this instance. |
| GetIncluded(Vector3) | |
| Include(ref Vector3) | return expanded aabb (aabb include point) |
| Include(Vector3) | |
| Include(Vector3, Vector3, Vector3) | |
| Include(ref Vector3, ref Vector3, ref Vector3) | |
| Include(ref BoundingBox) | return expanded aabb (aabb include aabb) |
| Include(BoundingBox) | |
| Include(ref Line) | |
| Include(BoundingSphere) | |
| Include(ref BoundingSphere) | |
| Include(ref BoundingFrustum) | |
| Inflate(float) | |
| Inflate(Vector3) | |
| InflateToMinimum(Vector3) | |
| Intersect(BoundingBox) | Returns bounding box which is intersection of this and box Result is invalid box when there's no intersection (Min > Max) |
| Intersects(BoundingBox) | Checks whether the current BoundingBox intersects another BoundingBox. |
| Intersects(ref BoundingBox) | |
| Intersects(ref BoundingBox, out bool) | Checks whether the current BoundingBox intersects another BoundingBox. |
| Intersects(BoundingFrustum) | Checks whether the current BoundingBox intersects a BoundingFrustum. |
| Intersects(Plane) | Checks whether the current BoundingBox intersects a Plane. |
| Intersects(ref Plane, out PlaneIntersectionType) | Checks whether the current BoundingBox intersects a Plane. |
| Intersects(Line, out float) | |
| Intersects(Ray) | Checks whether the current BoundingBox intersects a Ray. |
| Intersects(ref Ray, out float?) | Checks whether the current BoundingBox intersects a Ray. |
| Intersects(BoundingSphere) | Checks whether the current BoundingBox intersects a BoundingSphere. |
| Intersects(ref BoundingSphere, out bool) | Checks whether the current BoundingBox intersects a BoundingSphere. |
| Intersects(ref BoundingSphere) | |
| Intersects(ref BoundingSphereD) | |
| IntersectsTriangle(Vector3, Vector3, Vector3) | |
| IntersectsTriangle(ref Vector3, ref Vector3, ref Vector3) | |
| ProjectedArea(Vector3) | |
| Round(int) | |
| Round() | |
| Scale(Vector3) | |
| SurfaceArea() | |
| ToString() | Returns a String that represents the current BoundingBox. |
| Transform(Matrix) | |
| Transform(MatrixD) | |
| Transform(ref Matrix) | |
| Transform(ref Matrix, ref BoundingBox) | |
| Transform(ref MatrixD) | |
| Transform(ref MatrixD, ref BoundingBoxD) | |
| Translate(Matrix) | Translate |
| Translate(Vector3) | Translate |
| Volume() |
Implements: