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

_Vector3D Min_ The minimum point the BoundingBox contains.
_Vector3D Max_ The maximum point the BoundingBox contains.
static _ComparerType Comparer_
static _int CornerCount_ Specifies the total number of corners (8) in the BoundingBox.
### Properties
_Vector3D Center_ Calculates center
_Vector3D HalfExtents_
_Vector3D Extents_
_Vector3D Size_ Size
_MatrixD Matrix_ Matrix of AABB, respection center and size
_double SurfaceArea_
_double Volume_
_double Perimeter_ return perimeter of edges
_bool Valid_
### Methods
_Vector3D[] GetCorners()_ Gets an array of points that make up the corners of the BoundingBox. ALLOCATION!
_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()_ Gets the hash code for this instance.
_string ToString()_ Returns a String that represents the current BoundingBox.
static _BoundingBoxD CreateMerged(BoundingBoxD original, BoundingBoxD additional)_ Creates the smallest BoundingBox that contains the two specified BoundingBox instances.
static _void CreateMerged(ref BoundingBoxD original, ref BoundingBoxD additional, ref BoundingBoxD result)_ Creates the smallest BoundingBox that contains the two specified BoundingBox instances.
static _BoundingBoxD CreateFromSphere(BoundingSphereD sphere)_ Creates the smallest BoundingBox that will contain the specified BoundingSphere.
static _void CreateFromSphere(ref BoundingSphereD sphere, ref BoundingBoxD result)_ Creates the smallest BoundingBox that will contain the specified BoundingSphere.
static _BoundingBoxD CreateFromPoints(IEnumerable 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)_ Checks whether the current BoundingBox intersects another BoundingBox.
_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)_ Checks whether the current BoundingBox intersects a Plane.
_bool Intersects(ref LineD line)_
_bool Intersects(ref LineD line, ref double distance)_
_Nullable Intersects(Ray ray)_
_Nullable Intersects(RayD ray)_ Checks whether the current BoundingBox intersects a Ray.
_void Intersects(ref RayD ray, ref Nullable result)_ Checks whether the current BoundingBox intersects a Ray.
_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)_ Checks whether the current BoundingBox intersects a BoundingSphere.
_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)_ Tests whether the BoundingBox contains a BoundingBox.
_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)_ Tests whether the BoundingBox contains a point.
_ContainmentType Contains(BoundingSphereD sphere)_ Tests whether the BoundingBox contains a BoundingSphere.
_void Contains(ref BoundingSphereD sphere, ref ContainmentType result)_ Tests whether the BoundingBox contains a BoundingSphere.
_BoundingBoxD Translate(MatrixD worldMatrix)_ Translate
_BoundingBoxD Translate(Vector3D vctTranlsation)_ Translate
_BoundingBoxD TransformSlow(MatrixD m)_ Transform this AABB by matrix.
_BoundingBoxD TransformSlow(ref MatrixD worldMatrix)_ Transform this AABB by matrix.
_BoundingBoxD TransformFast(MatrixD m)_ Transform this AABB by matrix. Matrix has to be only rotation and translation.
_BoundingBoxD TransformFast(ref MatrixD m)_ Transform this AABB by matrix. Matrix has to be only rotation and translation.
_void TransformFast(ref MatrixD m, ref BoundingBoxD bb)_ Transform this AABB by matrix. Matrix has to be only rotation and translation.
_BoundingBoxD Include(ref Vector3D point)_ return expanded aabb (aabb include 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)_ return expanded aabb (aabb include aabb)
_BoundingBoxD Include(BoundingBoxD box)_
_void Include(ref LineD line)_
_BoundingBoxD Include(BoundingSphereD sphere)_
_BoundingBoxD Include(ref BoundingSphereD sphere)_
_BoundingBoxD Include(ref BoundingFrustumD frustum)_
static _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