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

_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
_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
_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 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 Intersects(Ray ray)_ Checks whether the current BoundingBox intersects a Ray.
_void Intersects(ref Ray ray, ref Nullable 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