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
VRageMath.Vector3 Min The minimum point the BoundingBox contains.
VRageMath.Vector3 Max The maximum point the BoundingBox contains.
static VRageMath.ComparerType Comparer
static int CornerCount Specifies the total number of corners (8) in the BoundingBox.

Properties

Member Description
VRageMath.BoxCornerEnumerator Corners
VRageMath.Vector3 Center Calculates center
VRageMath.Vector3 HalfExtents
VRageMath.Vector3 Extents
float Width
float Height
float Depth
VRageMath.Vector3 Size Size
VRageMath.Matrix Matrix Matrix of AABB, respection center and size
float Perimeter return perimeter of edges

Methods

Member Description
VRageMath.Vector3[] GetCorners() Gets an array of points that make up the corners of the BoundingBox. ALLOCATION!
void GetCorners(VRageMath.Vector3[]) Gets the array of points that make up the corners of the BoundingBox.
void GetCornersUnsafe(*VRageMath.Vector3)
bool Equals(VRageMath.BoundingBox) Determines whether two instances of BoundingBox are equal.
bool Equals(System.Object) 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 VRageMath.BoundingBox CreateMerged(VRageMath.BoundingBox, VRageMath.BoundingBox) Creates the smallest BoundingBox that contains the two specified BoundingBox instances.
static void CreateMerged(ref VRageMath.BoundingBox, ref VRageMath.BoundingBox, ref VRageMath.BoundingBox) Creates the smallest BoundingBox that contains the two specified BoundingBox instances.
static VRageMath.BoundingBox CreateFromSphere(VRageMath.BoundingSphere) Creates the smallest BoundingBox that will contain the specified BoundingSphere.
static void CreateFromSphere(ref VRageMath.BoundingSphere, ref VRageMath.BoundingBox) Creates the smallest BoundingBox that will contain the specified BoundingSphere.
static VRageMath.BoundingBox CreateFromPoints(IEnumerable<VRageMath.Vector3>) Creates the smallest BoundingBox that will contain a group of points.
static VRageMath.BoundingBox CreateFromHalfExtent(VRageMath.Vector3, float)
static VRageMath.BoundingBox CreateFromHalfExtent(VRageMath.Vector3, VRageMath.Vector3)
VRageMath.BoundingBox Intersect(VRageMath.BoundingBox) 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(VRageMath.BoundingBox) Checks whether the current BoundingBox intersects another BoundingBox.
bool Intersects(ref VRageMath.BoundingBox)
void Intersects(ref VRageMath.BoundingBox, ref bool) Checks whether the current BoundingBox intersects another BoundingBox.
bool IntersectsTriangle(VRageMath.Vector3, VRageMath.Vector3, VRageMath.Vector3)
bool IntersectsTriangle(ref VRageMath.Vector3, ref VRageMath.Vector3, ref VRageMath.Vector3)
bool Intersects(VRageMath.BoundingFrustum) Checks whether the current BoundingBox intersects a BoundingFrustum.
VRageMath.PlaneIntersectionType Intersects(VRageMath.Plane) Checks whether the current BoundingBox intersects a Plane.
void Intersects(ref VRageMath.Plane, ref VRageMath.PlaneIntersectionType) Checks whether the current BoundingBox intersects a Plane.
bool Intersects(VRageMath.Line, ref float)
Nullable<System.Single> Intersects(VRageMath.Ray) Checks whether the current BoundingBox intersects a Ray.
void Intersects(ref VRageMath.Ray, ref Nullable<System.Single>) Checks whether the current BoundingBox intersects a Ray.
bool Intersects(VRageMath.BoundingSphere) Checks whether the current BoundingBox intersects a BoundingSphere.
void Intersects(ref VRageMath.BoundingSphere, ref bool) Checks whether the current BoundingBox intersects a BoundingSphere.
bool Intersects(ref VRageMath.BoundingSphere)
bool Intersects(ref VRageMath.BoundingSphereD)
float Distance(VRageMath.Vector3)
float DistanceSquared(VRageMath.Vector3)
VRageMath.ContainmentType Contains(VRageMath.BoundingBox) Tests whether the BoundingBox contains another BoundingBox.
void Contains(ref VRageMath.BoundingBox, ref VRageMath.ContainmentType) Tests whether the BoundingBox contains a BoundingBox.
VRageMath.ContainmentType Contains(VRageMath.BoundingFrustum) Tests whether the BoundingBox contains a BoundingFrustum.
VRageMath.ContainmentType Contains(VRageMath.Vector3) Tests whether the BoundingBox contains a point.
VRageMath.ContainmentType Contains(VRageMath.Vector3D)
void Contains(ref VRageMath.Vector3, ref VRageMath.ContainmentType) Tests whether the BoundingBox contains a point.
VRageMath.ContainmentType Contains(VRageMath.BoundingSphere) Tests whether the BoundingBox contains a BoundingSphere.
void Contains(ref VRageMath.BoundingSphere, ref VRageMath.ContainmentType) Tests whether the BoundingBox contains a BoundingSphere.
VRageMath.BoundingBox Translate(VRageMath.Matrix) Translate
VRageMath.BoundingBox Translate(VRageMath.Vector3) Translate
VRageMath.BoundingBox Transform(VRageMath.Matrix)
VRageMath.BoundingBoxD Transform(VRageMath.MatrixD)
VRageMath.BoundingBox Transform(ref VRageMath.Matrix)
void Transform(ref VRageMath.Matrix, ref VRageMath.BoundingBox)
VRageMath.BoundingBoxD Transform(ref VRageMath.MatrixD)
void Transform(ref VRageMath.MatrixD, ref VRageMath.BoundingBoxD)
VRageMath.BoundingBox Include(ref VRageMath.Vector3) return expanded aabb (aabb include point)
VRageMath.BoundingBox GetIncluded(VRageMath.Vector3)
VRageMath.BoundingBox Include(VRageMath.Vector3)
VRageMath.BoundingBox Include(VRageMath.Vector3, VRageMath.Vector3, VRageMath.Vector3)
VRageMath.BoundingBox Include(ref VRageMath.Vector3, ref VRageMath.Vector3, ref VRageMath.Vector3)
VRageMath.BoundingBox Include(ref VRageMath.BoundingBox) return expanded aabb (aabb include aabb)
VRageMath.BoundingBox Include(VRageMath.BoundingBox)
void Include(ref VRageMath.Line)
VRageMath.BoundingBox Include(VRageMath.BoundingSphere)
VRageMath.BoundingBox Include(ref VRageMath.BoundingSphere)
VRageMath.BoundingBox Include(ref VRageMath.BoundingFrustum)
static VRageMath.BoundingBox CreateInvalid()
float SurfaceArea()
float Volume()
float ProjectedArea(VRageMath.Vector3)
void Inflate(float)
void Inflate(VRageMath.Vector3)
void InflateToMinimum(VRageMath.Vector3)
void Scale(VRageMath.Vector3)

Clone this wiki locally