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

VRageMath.BoundingBox

Malware edited this page Dec 21, 2018 · 56 revisions

Index

BoundingBox Struct

Namespace: VRageMath
Assembly: VRage.Math.dll

Summary

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

Fields

Member Description
Vector3 Min The minimum point the BoundingBox contains.
Vector3 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
BoxCornerEnumerator Corners
Vector3 Center Calculates center
Vector3 HalfExtents
Vector3 Extents
float Width
float Height
float Depth
Vector3 Size Size
Matrix Matrix Matrix of AABB, respection center and size
float Perimeter return perimeter of edges

Methods

Member Description
Vector3[] GetCorners() Gets an array of points that make up the corners of the BoundingBox. ALLOCATION!
void GetCorners(Vector3[] corners) Gets the array of points that make up the corners of the BoundingBox.
void GetCornersUnsafe(*Vector3 corners)
bool Equals(BoundingBox 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 BoundingBox CreateMerged(BoundingBox original, BoundingBox additional) Creates the smallest BoundingBox that contains the two specified BoundingBox instances.
static void CreateMerged(ref BoundingBox original, ref BoundingBox additional, ref BoundingBox result) Creates the smallest BoundingBox that contains the two specified BoundingBox instances.
static BoundingBox CreateFromSphere(BoundingSphere sphere) Creates the smallest BoundingBox that will contain the specified BoundingSphere.
static void CreateFromSphere(ref BoundingSphere sphere, ref BoundingBox result) Creates the smallest BoundingBox that will contain the specified BoundingSphere.
static BoundingBox CreateFromPoints(IEnumerable<Vector3> points) Creates the smallest BoundingBox that will contain a group of points.
static BoundingBox CreateFromHalfExtent(Vector3 center, float halfExtent)
static BoundingBox CreateFromHalfExtent(Vector3 center, Vector3 halfExtent)
BoundingBox Intersect(BoundingBox 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(BoundingBox box) Checks whether the current BoundingBox intersects another BoundingBox.
bool Intersects(ref BoundingBox box)
void Intersects(ref BoundingBox box, ref bool result) Checks whether the current BoundingBox intersects another BoundingBox.
bool IntersectsTriangle(Vector3 v0, Vector3 v1, Vector3 v2)
bool IntersectsTriangle(ref Vector3 v0, ref Vector3 v1, ref Vector3 v2)
bool Intersects(BoundingFrustum frustum) Checks whether the current BoundingBox intersects a BoundingFrustum.
PlaneIntersectionType Intersects(Plane plane) Checks whether the current BoundingBox intersects a Plane.
void Intersects(ref Plane plane, ref PlaneIntersectionType result) Checks whether the current BoundingBox intersects a Plane.
bool Intersects(Line line, ref float distance)
Nullable<float> Intersects(Ray ray) Checks whether the current BoundingBox intersects a Ray.
void Intersects(ref Ray ray, ref Nullable<float> result) Checks whether the current BoundingBox intersects a Ray.
bool Intersects(BoundingSphere sphere) Checks whether the current BoundingBox intersects a BoundingSphere.
void Intersects(ref BoundingSphere sphere, ref bool result) Checks whether the current BoundingBox intersects a BoundingSphere.
bool Intersects(ref BoundingSphere sphere)
bool Intersects(ref BoundingSphereD sphere)
float Distance(Vector3 point)
float DistanceSquared(Vector3 point)
ContainmentType Contains(BoundingBox box) Tests whether the BoundingBox contains another BoundingBox.
void Contains(ref BoundingBox box, ref ContainmentType result) Tests whether the BoundingBox contains a BoundingBox.
ContainmentType Contains(BoundingFrustum frustum) Tests whether the BoundingBox contains a BoundingFrustum.
ContainmentType Contains(Vector3 point) Tests whether the BoundingBox contains a point.
ContainmentType Contains(Vector3D point)
void Contains(ref Vector3 point, ref ContainmentType result) Tests whether the BoundingBox contains a point.
ContainmentType Contains(BoundingSphere sphere) Tests whether the BoundingBox contains a BoundingSphere.
void Contains(ref BoundingSphere sphere, ref ContainmentType result) Tests whether the BoundingBox contains a BoundingSphere.
BoundingBox Translate(Matrix worldMatrix) Translate
BoundingBox Translate(Vector3 vctTranlsation) Translate
BoundingBox Transform(Matrix worldMatrix)
BoundingBoxD Transform(MatrixD worldMatrix)
BoundingBox Transform(ref Matrix m)
void Transform(ref Matrix m, ref BoundingBox bb)
BoundingBoxD Transform(ref MatrixD m)
void Transform(ref MatrixD m, ref BoundingBoxD bb)
BoundingBox Include(ref Vector3 point) return expanded aabb (aabb include point)
BoundingBox GetIncluded(Vector3 point)
BoundingBox Include(Vector3 point)
BoundingBox Include(Vector3 p0, Vector3 p1, Vector3 p2)
BoundingBox Include(ref Vector3 p0, ref Vector3 p1, ref Vector3 p2)
BoundingBox Include(ref BoundingBox box) return expanded aabb (aabb include aabb)
BoundingBox Include(BoundingBox box)
void Include(ref Line line)
BoundingBox Include(BoundingSphere sphere)
BoundingBox Include(ref BoundingSphere sphere)
BoundingBox Include(ref BoundingFrustum frustum)
static BoundingBox CreateInvalid()
float SurfaceArea()
float Volume()
float ProjectedArea(Vector3 viewDir)
void Inflate(float size)
void Inflate(Vector3 size)
void InflateToMinimum(Vector3 minimumSize)
void Scale(Vector3 scale)

Clone this wiki locally