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
Vector3D Max
ComparerType Comparer
int CornerCount

Properties

Member Description
Vector3D Center
Vector3D HalfExtents
Vector3D Extents
Vector3D Size
MatrixD Matrix
double SurfaceArea
double Volume
double Perimeter
bool Valid

Methods

Member Description
Vector3D[] GetCorners()
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()
string ToString()
BoundingBoxD CreateMerged(BoundingBoxD original, BoundingBoxD additional)
void CreateMerged(ref BoundingBoxD original, ref BoundingBoxD additional, ref BoundingBoxD result)
BoundingBoxD CreateFromSphere(BoundingSphereD sphere) Creates the smallest BoundingBox that will contain the specified BoundingSphere.
void CreateFromSphere(ref BoundingSphereD sphere, ref BoundingBoxD result)
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)
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)
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)
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)
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)
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)
ContainmentType Contains(BoundingSphereD sphere) Tests whether the BoundingBox contains a BoundingSphere.
void Contains(ref BoundingSphereD sphere, ref ContainmentType result)
BoundingBoxD Translate(MatrixD worldMatrix) Translate
BoundingBoxD Translate(Vector3D vctTranlsation) Translate
BoundingBoxD TransformSlow(MatrixD m) Transform this AABB by matrix.
BoundingBoxD TransformSlow(ref MatrixD worldMatrix)
BoundingBoxD TransformFast(MatrixD m) Transform this AABB by matrix. Matrix has to be only rotation and translation.
BoundingBoxD TransformFast(ref MatrixD m)
void TransformFast(ref MatrixD m, ref BoundingBoxD bb)
BoundingBoxD Include(ref Vector3D 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)
BoundingBoxD Include(BoundingBoxD box)
void Include(ref LineD line)
BoundingBoxD Include(BoundingSphereD sphere)
BoundingBoxD Include(ref BoundingSphereD sphere)
BoundingBoxD Include(ref BoundingFrustumD frustum)
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