Assembly: VRage.Math.dll

public struct BoundingBoxD: IEquatable<BoundingBoxD>

Defines an axis-aligned box-shaped 3D volume.

Fields

Member Description
static Comparer
static NUMBER_OF_CORNERS Number of corners of the BB
Max The maximum point the BoundingBox contains.
Min The minimum point the BoundingBox contains.

Properties

Member Description
Center Calculates center
Extents
HalfExtents
Matrix Matrix of AABB, respecting center and size
Perimeter return perimeter of edges
Size Size
SurfaceArea
Valid
Volume

Constructors

Member Description
BoundingBoxD(Vector3D, Vector3D)

Methods

Member Description
static CreateFromPoints(IEnumerable) Creates the smallest BoundingBox that will contain a group of points.
static CreateFromSphere(BoundingSphereD) Creates the smallest BoundingBox that will contain the specified BoundingSphere.
static CreateFromSphere(ref BoundingSphereD, out BoundingBoxD) Creates the smallest BoundingBox that will contain the specified BoundingSphere.
static CreateInvalid()
static CreateMerged(BoundingBoxD, BoundingBoxD) Creates the smallest BoundingBox that contains the two specified BoundingBox instances.
static CreateMerged(ref BoundingBoxD, ref BoundingBoxD, out BoundingBoxD) Creates the smallest BoundingBox that contains the two specified BoundingBox instances.
AssertIsValid()
Centerize(Vector3D)
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.
Distance(Vector3D)
Distance(ref BoundingBoxD)
DistanceSquared(Vector3D)
DistanceSquared(ref Vector3D)
DistanceSquared(ref BoundingBoxD)
Equals(BoundingBoxD) Determines whether two instances of BoundingBox are equal.
Equals(object) Determines whether two instances of BoundingBox are equal.
Equals(BoundingBoxD, double)
GetCorner(int) Gets corner of the BB by index
GetCornersUnsafe(*Vector3D)
GetHashCode() Gets the hash code for this instance.
GetInflated(double)
GetInflated(Vector3)
GetInflated(Vector3D)
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)
Inflate(double)
Inflate(Vector3D)
InflateToMinimum(Vector3D)
InflateToMinimum(double)
Intersect(BoundingBoxD) Returns bounding box which is intersection of this and box Result is invalid box when there's no intersection (Min > Max)
Intersect(ref LineD, out LineD)
Intersect(ref LineD, out double, out double)
Intersect(ref RayD, out double, out double)
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)
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.
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)
IntersectsTriangle(Vector3D, Vector3D, Vector3D)
IntersectsTriangle(ref Vector3D, ref Vector3D, ref Vector3D)
ProjectedArea(Vector3D)
Round(int)
Round()
ToString() Returns a String that represents the current BoundingBox.
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.
TransformSlow(MatrixD) Transform this AABB by matrix.
TransformSlow(ref MatrixD) Transform this AABB by matrix.
Translate(MatrixD) Translate
Translate(Vector3D) Translate
GetCorners() Obsolete: Use GetCornersUnsafe or GetCorner.

Gets an array of points that make up the corners of the BoundingBox. ALLOCATION!
GetCorners(Vector3D[]) Obsolete: Use GetCornersUnsafe or GetCorner.

Gets the array of points that make up the corners of the BoundingBox.

Implements: