Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

VRageMath.BoundingBoxD

Malware edited this page Dec 21, 2018 · 56 revisions

Index

BoundingBoxD Struct

Namespace: VRageMath
Assembly: VRage.Math.dll

Summary

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

Fields

Member Description
Vector3D Min The minimum point the BoundingBox contains.
Vector3D Max The maximum point the BoundingBox contains.
static ComparerType Comparer
static int CornerCount Specifies the total number of corners (8) in the BoundingBox.

Properties

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

Methods

Member Description
Vector3D[] GetCorners() Gets an array of points that make up the corners of the BoundingBox. ALLOCATION!
void GetCorners(Vector3D[] corners) Gets the array of points that make up the corners of the BoundingBox.
void GetCornersUnsafe(*Vector3D corners)
bool Equals(BoundingBoxD other) Determines whether two instances of BoundingBox are equal.
bool Equals(Object obj) Determines whether two instances of BoundingBox are equal.
int GetHashCode() Gets the hash code for this instance.
string ToString() Returns a String that represents the current BoundingBox.
static BoundingBoxD CreateMerged(BoundingBoxD original, BoundingBoxD additional) Creates the smallest BoundingBox that contains the two specified BoundingBox instances.
static void CreateMerged(ref BoundingBoxD original, ref BoundingBoxD additional, ref BoundingBoxD result) Creates the smallest BoundingBox that contains the two specified BoundingBox instances.
static BoundingBoxD CreateFromSphere(BoundingSphereD sphere) Creates the smallest BoundingBox that will contain the specified BoundingSphere.
static void CreateFromSphere(ref BoundingSphereD sphere, ref BoundingBoxD result) Creates the smallest BoundingBox that will contain the specified BoundingSphere.
static BoundingBoxD CreateFromPoints(IEnumerable<Vector3D> points) Creates the smallest BoundingBox that will contain a group of points.
BoundingBoxD Intersect(BoundingBoxD box) 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)
bool Intersects(BoundingBoxD box) Checks whether the current BoundingBox intersects another BoundingBox.
bool Intersects(ref BoundingBoxD box)
void Intersects(ref BoundingBoxD box, ref bool result) Checks whether the current BoundingBox intersects another BoundingBox.
void Intersects(ref BoundingBox box, ref bool result)
bool IntersectsTriangle(Vector3D v0, Vector3D v1, Vector3D v2)
bool IntersectsTriangle(ref Vector3D v0, ref Vector3D v1, ref Vector3D v2)
bool Intersects(BoundingFrustumD frustum) Checks whether the current BoundingBox intersects a BoundingFrustum.
PlaneIntersectionType Intersects(PlaneD plane) Checks whether the current BoundingBox intersects a Plane.
void Intersects(ref PlaneD plane, ref PlaneIntersectionType result) Checks whether the current BoundingBox intersects a Plane.
bool Intersects(ref LineD line)
bool Intersects(ref LineD line, ref double distance)
Nullable<double> Intersects(Ray ray)
Nullable<double> Intersects(RayD ray) Checks whether the current BoundingBox intersects a Ray.
void Intersects(ref RayD ray, ref Nullable<double> result) Checks whether the current BoundingBox intersects a Ray.
bool Intersect(ref LineD line, ref LineD intersectedLine)
bool Intersect(ref LineD line, ref double t1, ref double t2)
bool Intersect(ref RayD ray, ref double tmin, ref double tmax)
bool Intersects(BoundingSphereD sphere) Checks whether the current BoundingBox intersects a BoundingSphere.
void Intersects(ref BoundingSphereD sphere, ref bool result) Checks whether the current BoundingBox intersects a BoundingSphere.
bool Intersects(ref BoundingSphereD sphere)
double Distance(Vector3D point)
double DistanceSquared(Vector3D point)
double DistanceSquared(ref Vector3D point)
ContainmentType Contains(BoundingBoxD box) Tests whether the BoundingBox contains another BoundingBox.
void Contains(ref BoundingBoxD box, ref ContainmentType result) Tests whether the BoundingBox contains a BoundingBox.
ContainmentType Contains(BoundingFrustumD frustum) Tests whether the BoundingBox contains a BoundingFrustum.
ContainmentType Contains(Vector3D point) Tests whether the BoundingBox contains a point.
void Contains(ref Vector3D point, ref ContainmentType result) Tests whether the BoundingBox contains a point.
ContainmentType Contains(BoundingSphereD sphere) Tests whether the BoundingBox contains a BoundingSphere.
void Contains(ref BoundingSphereD sphere, ref ContainmentType result) Tests whether the BoundingBox contains a BoundingSphere.
BoundingBoxD Translate(MatrixD worldMatrix) Translate
BoundingBoxD Translate(Vector3D vctTranlsation) Translate
BoundingBoxD TransformSlow(MatrixD m) Transform this AABB by matrix.
BoundingBoxD TransformSlow(ref MatrixD worldMatrix) Transform this AABB by matrix.
BoundingBoxD TransformFast(MatrixD m) Transform this AABB by matrix. Matrix has to be only rotation and translation.
BoundingBoxD TransformFast(ref MatrixD m) Transform this AABB by matrix. Matrix has to be only rotation and translation.
void TransformFast(ref MatrixD m, ref BoundingBoxD bb) Transform this AABB by matrix. Matrix has to be only rotation and translation.
BoundingBoxD Include(ref Vector3D point) return expanded aabb (aabb include point)
BoundingBoxD Include(Vector3D point)
BoundingBoxD Include(Vector3D p0, Vector3D p1, Vector3D p2)
BoundingBoxD Include(ref Vector3D p0, ref Vector3D p1, ref Vector3D p2)
BoundingBoxD Include(ref BoundingBoxD box) return expanded aabb (aabb include aabb)
BoundingBoxD Include(BoundingBoxD box)
void Include(ref LineD line)
BoundingBoxD Include(BoundingSphereD sphere)
BoundingBoxD Include(ref BoundingSphereD sphere)
BoundingBoxD Include(ref BoundingFrustumD frustum)
static BoundingBoxD CreateInvalid()
double ProjectedArea(Vector3D viewDir)
BoundingBoxD Inflate(double size)
BoundingBoxD Inflate(Vector3 size)
BoundingBoxD GetInflated(double size)
BoundingBoxD GetInflated(Vector3 size)
void InflateToMinimum(Vector3D minimumSize)
void InflateToMinimum(double minimumSize)
void AssertIsValid()

Clone this wiki locally