Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

VRageMath.BoundingBox

Morten Aune Lyrstad edited this page Mar 20, 2020 · 55 revisions

IndexNamespace Index

BoundingBox Struct

public struct BoundingBox: IEquatable<VRageMath.BoundingBox>

Defines an axis-aligned box-shaped 3D volume.

Namespace: VRageMath
Assembly: VRage.Math.dll

Implements:

Fields

Member Description
Min The minimum point the BoundingBox contains.
Max The maximum point the BoundingBox contains.
Invalid
Comparer
CornerCount Specifies the total number of corners (8) in the BoundingBox.

Properties

Member Description
Corners { get; set; }
Center { get; } Calculates center
HalfExtents { get; }
Extents { get; }
Width { get; }
Height { get; }
Depth { get; }
Size { get; } Size
Matrix { get; } Matrix of AABB, respection center and size
Perimeter { get; } return perimeter of edges

Constructors

Member Description
BoundingBox(Vector3, Vector3)
BoundingBox(BoundingBoxD)
BoundingBox(BoundingBoxI)

Methods

Member Description
GetCorners() Gets an array of points that make up the corners of the BoundingBox. ALLOCATION!
GetCorners(Vector3[]) Gets the array of points that make up the corners of the BoundingBox.
GetCornersUnsafe(*Vector3)
Equals(BoundingBox) Determines whether two instances of BoundingBox are equal.
Equals(object) Determines whether two instances of BoundingBox are equal.
Equals(BoundingBox, float)
GetHashCode() Gets the hash code for this instance.
ToString() Returns a String that represents the current BoundingBox.
CreateMerged(BoundingBox, BoundingBox) Creates the smallest BoundingBox that contains the two specified BoundingBox instances.
CreateMerged(ref BoundingBox, ref BoundingBox, out BoundingBox) Creates the smallest BoundingBox that contains the two specified BoundingBox instances.
CreateFromSphere(BoundingSphere) Creates the smallest BoundingBox that will contain the specified BoundingSphere.
CreateFromSphere(ref BoundingSphere, out BoundingBox) Creates the smallest BoundingBox that will contain the specified BoundingSphere.
CreateFromPoints(IEnumerable) Creates the smallest BoundingBox that will contain a group of points.
CreateFromHalfExtent(Vector3, float)
CreateFromHalfExtent(Vector3, Vector3)
Intersect(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)
Intersects(BoundingBox) Checks whether the current BoundingBox intersects another BoundingBox.
Intersects(ref BoundingBox)
Intersects(ref BoundingBox, out bool) Checks whether the current BoundingBox intersects another BoundingBox.
IntersectsTriangle(Vector3, Vector3, Vector3)
IntersectsTriangle(ref Vector3, ref Vector3, ref Vector3)
Intersects(BoundingFrustum) Checks whether the current BoundingBox intersects a BoundingFrustum.
Intersects(Plane) Checks whether the current BoundingBox intersects a Plane.
Intersects(ref Plane, out PlaneIntersectionType) Checks whether the current BoundingBox intersects a Plane.
Intersects(Line, out float)
Intersects(Ray) Checks whether the current BoundingBox intersects a Ray.
Intersects(ref Ray, out float?) Checks whether the current BoundingBox intersects a Ray.
Intersects(BoundingSphere) Checks whether the current BoundingBox intersects a BoundingSphere.
Intersects(ref BoundingSphere, out bool) Checks whether the current BoundingBox intersects a BoundingSphere.
Intersects(ref BoundingSphere)
Intersects(ref BoundingSphereD)
Distance(Vector3)
DistanceSquared(Vector3)
Contains(BoundingBox) Tests whether the BoundingBox contains another BoundingBox.
Contains(ref BoundingBox, out ContainmentType) Tests whether the BoundingBox contains a BoundingBox.
Contains(BoundingFrustum) Tests whether the BoundingBox contains a BoundingFrustum.
Contains(Vector3) Tests whether the BoundingBox contains a point.
Contains(Vector3D)
Contains(ref Vector3, out ContainmentType) Tests whether the BoundingBox contains a point.
Contains(BoundingSphere) Tests whether the BoundingBox contains a BoundingSphere.
Contains(ref BoundingSphere, out ContainmentType) Tests whether the BoundingBox contains a BoundingSphere.
Translate(Matrix) Translate
Translate(Vector3) Translate
Transform(Matrix)
Transform(MatrixD)
Transform(ref Matrix)
Transform(ref Matrix, ref BoundingBox)
Transform(ref MatrixD)
Transform(ref MatrixD, ref BoundingBoxD)
Include(ref Vector3) return expanded aabb (aabb include point)
GetIncluded(Vector3)
Include(Vector3)
Include(Vector3, Vector3, Vector3)
Include(ref Vector3, ref Vector3, ref Vector3)
Include(ref BoundingBox) return expanded aabb (aabb include aabb)
Include(BoundingBox)
Include(ref Line)
Include(BoundingSphere)
Include(ref BoundingSphere)
Include(ref BoundingFrustum)
CreateInvalid()
SurfaceArea()
Volume()
ProjectedArea(Vector3)
Inflate(float)
Inflate(Vector3)
InflateToMinimum(Vector3)
Scale(Vector3)
Round(int)
Round()
Clone this wiki locally