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
Vector3 Max
ComparerType Comparer
int CornerCount

Properties

Member Description
BoxCornerEnumerator Corners
Vector3 Center
Vector3 HalfExtents
Vector3 Extents
float Width
float Height
float Depth
Vector3 Size
Matrix Matrix
float Perimeter

Methods

Member Description
Vector3[] GetCorners()
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()
string ToString()
BoundingBox CreateMerged(BoundingBox original, BoundingBox additional)
void CreateMerged(ref BoundingBox original, ref BoundingBox additional, ref BoundingBox result)
BoundingBox CreateFromSphere(BoundingSphere sphere) Creates the smallest BoundingBox that will contain the specified BoundingSphere.
void CreateFromSphere(ref BoundingSphere sphere, ref BoundingBox result)
BoundingBox CreateFromPoints(IEnumerable<Vector3> points) Creates the smallest BoundingBox that will contain a group of points.
BoundingBox CreateFromHalfExtent(Vector3 center, float halfExtent)
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)
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)
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)
bool Intersects(BoundingSphere sphere) Checks whether the current BoundingBox intersects a BoundingSphere.
void Intersects(ref BoundingSphere sphere, ref bool result)
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)
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)
ContainmentType Contains(BoundingSphere sphere) Tests whether the BoundingBox contains a BoundingSphere.
void Contains(ref BoundingSphere sphere, ref ContainmentType result)
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)
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)
BoundingBox Include(BoundingBox box)
void Include(ref Line line)
BoundingBox Include(BoundingSphere sphere)
BoundingBox Include(ref BoundingSphere sphere)
BoundingBox Include(ref BoundingFrustum frustum)
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