Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

VRageMath.BoundingBoxD

Malware edited this page Feb 28, 2019 · 55 revisions

IndexNamespace Index

BoundingBoxD Struct

public struct BoundingBoxD: IEquatable<T>

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

Namespace: VRageMath
Assembly: VRage.Math.dll

Implements:

Fields

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.

Properties

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

Constructors

Member Description
BoundingBoxD(Vector3D, Vector3D)

Methods

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)
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 Nullable)
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()
Clone this wiki locally