-
Notifications
You must be signed in to change notification settings - Fork 125
VRageMath.BoundingBox
← Index ← Namespace Index
public struct BoundingBox: IEquatable<BoundingBox>
Defines an axis-aligned box-shaped 3D volume.
Namespace: VRageMath
Assembly: VRage.Math.dll
Implements:
Specifies the total number of corners (8) in the BoundingBox.
The maximum point the BoundingBox contains.
The minimum point the BoundingBox contains.
Calculates center
BoxCornerEnumerator Corners { get; set; }
Matrix of AABB, respecting center and size
return perimeter of edges
Size
BoundingBox(Vector3 min, Vector3 max)
static BoundingBox CreateFromHalfExtent(Vector3 center, float halfExtent)
static BoundingBox CreateFromHalfExtent(Vector3 center, Vector3 halfExtent)
static BoundingBox CreateFromPoints(IEnumerable<Vector3> points)
Creates the smallest BoundingBox that will contain a group of points.
static BoundingBox CreateFromSphere(BoundingSphere sphere)
Creates the smallest BoundingBox that will contain the specified BoundingSphere.
static void CreateFromSphere(ref BoundingSphere sphere, out BoundingBox result)
Creates the smallest BoundingBox that will contain the specified BoundingSphere.
static BoundingBox CreateInvalid()
static BoundingBox CreateMerged(BoundingBox original, BoundingBox additional)
Creates the smallest BoundingBox that contains the two specified BoundingBox instances.
Creates the smallest BoundingBox that contains the two specified BoundingBox instances.
static bool IsBetween(float number, float min, float max)
ContainmentType Contains(BoundingBox box)
Tests whether the BoundingBox contains another BoundingBox.
void Contains(ref BoundingBox box, out 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, out 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, out ContainmentType result)
Tests whether the BoundingBox contains a BoundingSphere.
float DistanceSquared(Vector3 point)
bool Equals(BoundingBox other)
Determines whether two instances of BoundingBox are equal.
Determines whether two instances of BoundingBox are equal.
bool Equals(BoundingBox other, float epsilon)
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)
Gets the hash code for this instance.
BoundingBox GetIncluded(Vector3 point)
BoundingBox Include(ref Vector3 point)
return expanded aabb (aabb include 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)
BoundingBox Include(BoundingSphere sphere)
BoundingBox Include(ref BoundingSphere sphere)
BoundingBox Include(ref BoundingFrustum frustum)
void InflateToMinimum(Vector3 minimumSize)
BoundingBox Intersect(BoundingBox box)
Returns bounding box which is intersection of this and box 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, out bool result)
Checks whether the current BoundingBox intersects another BoundingBox.
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, out PlaneIntersectionType result)
Checks whether the current BoundingBox intersects a Plane.
bool Intersects(Line line, out float distance)
Checks whether the current BoundingBox intersects a Ray.
void Intersects(ref Ray ray, out float? 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, out bool result)
Checks whether the current BoundingBox intersects a BoundingSphere.
bool Intersects(ref BoundingSphere sphere)
bool Intersects(ref BoundingSphereD sphere)
bool IntersectsTriangle(Vector3 v0, Vector3 v1, Vector3 v2)
bool IntersectsTriangle(ref Vector3 v0, ref Vector3 v1, ref Vector3 v2)
float ProjectedArea(Vector3 viewDir)
BoundingBox Round(int decimals)
Returns a String that represents the current BoundingBox.
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 Translate(Matrix worldMatrix)
Translate
BoundingBox Translate(Vector3 vctTranlsation)
Translate
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!