This repository was archived by the owner on Dec 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
VRageMath.BoundingBoxD
Morten Aune Lyrstad edited this page Feb 17, 2020
·
56 revisions
← Index ← Namespace Index
public struct BoundingBoxD: IEquatable<VRageMath.BoundingBoxD>Defines an axis-aligned box-shaped 3D volume.
Namespace: VRageMath
Assembly: VRage.Math.dll
Implements:
| Member | Description |
|---|---|
| Min | The minimum point the BoundingBox contains. |
| Max | The maximum point the BoundingBox contains. |
| Comparer | |
| CornerCount | Specifies the total number of corners (8) in the BoundingBox. |
| Member | Description |
|---|---|
| Center { get; } | Calculates center |
| HalfExtents { get; } | |
| Extents { get; } | |
| Size { get; } | Size |
| Matrix { get; } | Matrix of AABB, respection center and size |
| SurfaceArea { get; } | |
| Volume { get; } | |
| Perimeter { get; } | return perimeter of edges |
| Valid { get; } |
| Member | Description |
|---|---|
| BoundingBoxD(Vector3D, Vector3D) |
| Member | Description |
|---|---|
| GetCorners() | Gets an array of points that make up the corners of the BoundingBox. ALLOCATION! |
| GetCorners(Vector3D[]) | Gets the array of points that make up the corners of the BoundingBox. |
| GetCornersUnsafe(*Vector3D) | |
| Equals(BoundingBoxD) | Determines whether two instances of BoundingBox are equal. |
| Equals(object) | Determines whether two instances of BoundingBox are equal. |
| Equals(BoundingBoxD, double) | |
| GetHashCode() | Gets the hash code for this instance. |
| ToString() | Returns a String that represents the current BoundingBox. |
| CreateMerged(BoundingBoxD, BoundingBoxD) | Creates the smallest BoundingBox that contains the two specified BoundingBox instances. |
| CreateMerged(ref BoundingBoxD, ref BoundingBoxD, out BoundingBoxD) | Creates the smallest BoundingBox that contains the two specified BoundingBox instances. |
| CreateFromSphere(BoundingSphereD) | Creates the smallest BoundingBox that will contain the specified BoundingSphere. |
| CreateFromSphere(ref BoundingSphereD, out BoundingBoxD) | Creates the smallest BoundingBox that will contain the specified BoundingSphere. |
| CreateFromPoints(IEnumerable) | Creates the smallest BoundingBox that will contain a group of points. |
| Intersect(BoundingBoxD) | Returns bounding box which is intersection of this and box It's called 'Prunik' Result is invalid box when there's no intersection (Min > Max) |
| Intersects(BoundingBoxD) | Checks whether the current BoundingBox intersects another BoundingBox. |
| Intersects(ref BoundingBoxD) | |
| Intersects(ref BoundingBoxD, out bool) | Checks whether the current BoundingBox intersects another BoundingBox. |
| Intersects(ref BoundingBox, out bool) | |
| IntersectsTriangle(Vector3D, Vector3D, Vector3D) | |
| IntersectsTriangle(ref Vector3D, ref Vector3D, ref Vector3D) | |
| Intersects(BoundingFrustumD) | Checks whether the current BoundingBox intersects a BoundingFrustum. |
| Intersects(PlaneD) | Checks whether the current BoundingBox intersects a Plane. |
| Intersects(ref PlaneD, out PlaneIntersectionType) | Checks whether the current BoundingBox intersects a Plane. |
| Intersects(ref LineD) | |
| Intersects(ref LineD, out double) | |
| Intersects(Ray) | |
| Intersects(RayD) | Checks whether the current BoundingBox intersects a Ray. |
| Intersects(ref RayD, out double?) | Checks whether the current BoundingBox intersects a Ray. |
| Intersect(ref LineD, out LineD) | |
| Intersect(ref LineD, out double, out double) | |
| Intersect(ref RayD, out double, out double) | |
| Intersects(BoundingSphereD) | Checks whether the current BoundingBox intersects a BoundingSphere. |
| Intersects(ref BoundingSphereD, out bool) | Checks whether the current BoundingBox intersects a BoundingSphere. |
| Intersects(ref BoundingSphereD) | |
| Distance(Vector3D) | |
| DistanceSquared(Vector3D) | |
| DistanceSquared(ref Vector3D) | |
| Distance(ref BoundingBoxD) | |
| DistanceSquared(ref BoundingBoxD) | |
| Contains(BoundingBoxD) | Tests whether the BoundingBox contains another BoundingBox. |
| Contains(ref BoundingBoxD, out ContainmentType) | Tests whether the BoundingBox contains a BoundingBox. |
| Contains(BoundingFrustumD) | Tests whether the BoundingBox contains a BoundingFrustum. |
| Contains(Vector3D) | Tests whether the BoundingBox contains a point. |
| Contains(ref Vector3D, out ContainmentType) | Tests whether the BoundingBox contains a point. |
| Contains(BoundingSphereD) | Tests whether the BoundingBox contains a BoundingSphere. |
| Contains(ref BoundingSphereD, out ContainmentType) | Tests whether the BoundingBox contains a BoundingSphere. |
| Translate(MatrixD) | Translate |
| Translate(Vector3D) | Translate |
| TransformSlow(MatrixD) | Transform this AABB by matrix. |
| TransformSlow(ref MatrixD) | Transform this AABB by matrix. |
| TransformFast(MatrixD) | Transform this AABB by matrix. Matrix has to be only rotation and translation. |
| TransformFast(ref MatrixD) | Transform this AABB by matrix. Matrix has to be only rotation and translation. |
| TransformFast(ref MatrixD, ref BoundingBoxD) | Transform this AABB by matrix. Matrix has to be only rotation and translation. |
| Include(ref Vector3D) | return expanded aabb (aabb include point) |
| Include(Vector3D) | |
| Include(Vector3D, Vector3D, Vector3D) | |
| Include(ref Vector3D, ref Vector3D, ref Vector3D) | |
| Include(ref BoundingBoxD) | return expanded aabb (aabb include aabb) |
| Include(BoundingBoxD) | |
| Include(ref LineD) | |
| Include(BoundingSphereD) | |
| Include(ref BoundingSphereD) | |
| Include(ref BoundingFrustumD) | |
| CreateInvalid() | |
| ProjectedArea(Vector3D) | |
| Inflate(double) | |
| Inflate(Vector3D) | |
| GetInflated(double) | |
| GetInflated(Vector3) | |
| GetInflated(Vector3D) | |
| InflateToMinimum(Vector3D) | |
| InflateToMinimum(double) | |
| Round(int) | |
| Round() | |
| AssertIsValid() |
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!