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&nbsp;CreateFromPoints(IEnumerable<Vector3>&nbsp;points) Creates the smallest BoundingBox that will contain a group of points.
static BoundingBox&nbsp;CreateFromHalfExtent(Vector3&nbsp;center,&nbsp;float&nbsp;halfExtent)
static BoundingBox&nbsp;CreateFromHalfExtent(Vector3&nbsp;center,&nbsp;Vector3&nbsp;halfExtent)
BoundingBox&nbsp;Intersect(BoundingBox&nbsp;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&nbsp;Intersects(BoundingBox&nbsp;box) Checks whether the current BoundingBox intersects another BoundingBox.
bool&nbsp;Intersects(ref&nbsp;BoundingBox&nbsp;box)
void&nbsp;Intersects(ref&nbsp;BoundingBox&nbsp;box,&nbsp;ref&nbsp;bool&nbsp;result) Checks whether the current BoundingBox intersects another BoundingBox.
bool&nbsp;IntersectsTriangle(Vector3&nbsp;v0,&nbsp;Vector3&nbsp;v1,&nbsp;Vector3&nbsp;v2)
bool&nbsp;IntersectsTriangle(ref&nbsp;Vector3&nbsp;v0,&nbsp;ref&nbsp;Vector3&nbsp;v1,&nbsp;ref&nbsp;Vector3&nbsp;v2)
bool&nbsp;Intersects(BoundingFrustum&nbsp;frustum) Checks whether the current BoundingBox intersects a BoundingFrustum.
PlaneIntersectionType&nbsp;Intersects(Plane&nbsp;plane) Checks whether the current BoundingBox intersects a Plane.
void&nbsp;Intersects(ref&nbsp;Plane&nbsp;plane,&nbsp;ref&nbsp;PlaneIntersectionType&nbsp;result) Checks whether the current BoundingBox intersects a Plane.
bool&nbsp;Intersects(Line&nbsp;line,&nbsp;ref&nbsp;float&nbsp;distance)
Nullable<float>&nbsp;Intersects(Ray&nbsp;ray) Checks whether the current BoundingBox intersects a Ray.
void&nbsp;Intersects(ref&nbsp;Ray&nbsp;ray,&nbsp;ref&nbsp;Nullable<float>&nbsp;result) Checks whether the current BoundingBox intersects a Ray.
bool&nbsp;Intersects(BoundingSphere&nbsp;sphere) Checks whether the current BoundingBox intersects a BoundingSphere.
void&nbsp;Intersects(ref&nbsp;BoundingSphere&nbsp;sphere,&nbsp;ref&nbsp;bool&nbsp;result) Checks whether the current BoundingBox intersects a BoundingSphere.
bool&nbsp;Intersects(ref&nbsp;BoundingSphere&nbsp;sphere)
bool&nbsp;Intersects(ref&nbsp;BoundingSphereD&nbsp;sphere)
float&nbsp;Distance(Vector3&nbsp;point)
float&nbsp;DistanceSquared(Vector3&nbsp;point)
ContainmentType&nbsp;Contains(BoundingBox&nbsp;box) Tests whether the BoundingBox contains another BoundingBox.
void&nbsp;Contains(ref&nbsp;BoundingBox&nbsp;box,&nbsp;ref&nbsp;ContainmentType&nbsp;result) Tests whether the BoundingBox contains a BoundingBox.
ContainmentType&nbsp;Contains(BoundingFrustum&nbsp;frustum) Tests whether the BoundingBox contains a BoundingFrustum.
ContainmentType&nbsp;Contains(Vector3&nbsp;point) Tests whether the BoundingBox contains a point.
ContainmentType&nbsp;Contains(Vector3D&nbsp;point)
void&nbsp;Contains(ref&nbsp;Vector3&nbsp;point,&nbsp;ref&nbsp;ContainmentType&nbsp;result) Tests whether the BoundingBox contains a point.
ContainmentType&nbsp;Contains(BoundingSphere&nbsp;sphere) Tests whether the BoundingBox contains a BoundingSphere.
void&nbsp;Contains(ref&nbsp;BoundingSphere&nbsp;sphere,&nbsp;ref&nbsp;ContainmentType&nbsp;result) Tests whether the BoundingBox contains a BoundingSphere.
BoundingBox&nbsp;Translate(Matrix&nbsp;worldMatrix) Translate
BoundingBox&nbsp;Translate(Vector3&nbsp;vctTranlsation) Translate
BoundingBox&nbsp;Transform(Matrix&nbsp;worldMatrix)
BoundingBoxD&nbsp;Transform(MatrixD&nbsp;worldMatrix)
BoundingBox&nbsp;Transform(ref&nbsp;Matrix&nbsp;m)
void&nbsp;Transform(ref&nbsp;Matrix&nbsp;m,&nbsp;ref&nbsp;BoundingBox&nbsp;bb)
BoundingBoxD&nbsp;Transform(ref&nbsp;MatrixD&nbsp;m)
void&nbsp;Transform(ref&nbsp;MatrixD&nbsp;m,&nbsp;ref&nbsp;BoundingBoxD&nbsp;bb)
BoundingBox&nbsp;Include(ref&nbsp;Vector3&nbsp;point) return expanded aabb (aabb include point)
BoundingBox&nbsp;GetIncluded(Vector3&nbsp;point)
BoundingBox&nbsp;Include(Vector3&nbsp;point)
BoundingBox&nbsp;Include(Vector3&nbsp;p0,&nbsp;Vector3&nbsp;p1,&nbsp;Vector3&nbsp;p2)
BoundingBox&nbsp;Include(ref&nbsp;Vector3&nbsp;p0,&nbsp;ref&nbsp;Vector3&nbsp;p1,&nbsp;ref&nbsp;Vector3&nbsp;p2)
BoundingBox&nbsp;Include(ref&nbsp;BoundingBox&nbsp;box) return expanded aabb (aabb include aabb)
BoundingBox&nbsp;Include(BoundingBox&nbsp;box)
void&nbsp;Include(ref&nbsp;Line&nbsp;line)
BoundingBox&nbsp;Include(BoundingSphere&nbsp;sphere)
BoundingBox&nbsp;Include(ref&nbsp;BoundingSphere&nbsp;sphere)
BoundingBox&nbsp;Include(ref&nbsp;BoundingFrustum&nbsp;frustum)
static BoundingBox&nbsp;CreateInvalid()
float&nbsp;SurfaceArea()
float&nbsp;Volume()
float&nbsp;ProjectedArea(Vector3&nbsp;viewDir)
void&nbsp;Inflate(float&nbsp;size)
void&nbsp;Inflate(Vector3&nbsp;size)
void&nbsp;InflateToMinimum(Vector3&nbsp;minimumSize)
void&nbsp;Scale(Vector3&nbsp;scale)

Clone this wiki locally