Space Engineers
|
Defines an axis-aligned box-shaped 3D volume. More...
Classes | |
class | ComparerType |
Public Member Functions | |
BoundingBox (Vector3 min, Vector3 max) | |
Creates an instance of BoundingBox. More... | |
BoundingBox (BoundingBoxD bbd) | |
Creates an instance of BoundingBox from BoundingBoxD (helper for transformed BBs) More... | |
BoundingBox (BoundingBoxI bbd) | |
Vector3[] | GetCorners () |
Gets an array of points that make up the corners of the BoundingBox. ALLOCATION! More... | |
void | GetCorners (Vector3[] corners) |
Gets the array of points that make up the corners of the BoundingBox. More... | |
unsafe void | GetCornersUnsafe (Vector3 *corners) |
Gets the array of points that make up the corners of the BoundingBox. More... | |
bool | Equals (BoundingBox other) |
Determines whether two instances of BoundingBox are equal. More... | |
override bool | Equals (object obj) |
Determines whether two instances of BoundingBox are equal. More... | |
override int | GetHashCode () |
Gets the hash code for this instance. More... | |
override string | ToString () |
Returns a String that represents the current BoundingBox. More... | |
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) More... | |
bool | Intersects (BoundingBox box) |
Checks whether the current BoundingBox intersects another BoundingBox. More... | |
bool | Intersects (ref BoundingBox box) |
void | Intersects (ref BoundingBox box, out bool result) |
Checks whether the current BoundingBox intersects another BoundingBox. More... | |
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. More... | |
PlaneIntersectionType | Intersects (Plane plane) |
Checks whether the current BoundingBox intersects a Plane. More... | |
void | Intersects (ref Plane plane, out PlaneIntersectionType result) |
Checks whether the current BoundingBox intersects a Plane. More... | |
bool | Intersects (Line line, out float distance) |
float | Intersects (Ray ray) |
Checks whether the current BoundingBox intersects a Ray. More... | |
void | Intersects (ref Ray ray, out float?result) |
Checks whether the current BoundingBox intersects a Ray. More... | |
bool | Intersects (BoundingSphere sphere) |
Checks whether the current BoundingBox intersects a BoundingSphere. More... | |
void | Intersects (ref BoundingSphere sphere, out bool result) |
Checks whether the current BoundingBox intersects a BoundingSphere. More... | |
bool | Intersects (ref BoundingSphere sphere) |
bool | Intersects (ref BoundingSphereD sphere) |
float | Distance (Vector3 point) |
ContainmentType | Contains (BoundingBox box) |
Tests whether the BoundingBox contains another BoundingBox. More... | |
void | Contains (ref BoundingBox box, out ContainmentType result) |
Tests whether the BoundingBox contains a BoundingBox. More... | |
ContainmentType | Contains (BoundingFrustum frustum) |
Tests whether the BoundingBox contains a BoundingFrustum. More... | |
ContainmentType | Contains (Vector3 point) |
Tests whether the BoundingBox contains a point. More... | |
ContainmentType | Contains (Vector3D point) |
void | Contains (ref Vector3 point, out ContainmentType result) |
Tests whether the BoundingBox contains a point. More... | |
ContainmentType | Contains (BoundingSphere sphere) |
Tests whether the BoundingBox contains a BoundingSphere. More... | |
void | Contains (ref BoundingSphere sphere, out ContainmentType result) |
Tests whether the BoundingBox contains a BoundingSphere. More... | |
BoundingBox | Translate (Matrix worldMatrix) |
Translate More... | |
BoundingBox | Translate (Vector3 vctTranlsation) |
Translate More... | |
unsafe BoundingBox | Transform (Matrix worldMatrix) |
unsafe 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) More... | |
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) More... | |
BoundingBox | Include (BoundingBox box) |
void | Include (ref Line line) |
BoundingBox | Include (BoundingSphere sphere) |
BoundingBox | Include (ref BoundingSphere sphere) |
unsafe BoundingBox | Include (ref BoundingFrustum frustum) |
float | SurfaceArea () |
float | Volume () |
float | ProjectedArea (Vector3 viewDir) |
void | Inflate (float size) |
void | Inflate (Vector3 size) |
void | InflateToMinimum (Vector3 minimumSize) |
void | Scale (Vector3 scale) |
Static Public Member Functions | |
static bool | operator== (BoundingBox a, BoundingBox b) |
Determines whether two instances of BoundingBox are equal. More... | |
static bool | operator!= (BoundingBox a, BoundingBox b) |
Determines whether two instances of BoundingBox are not equal. More... | |
static BoundingBox | CreateMerged (BoundingBox original, BoundingBox additional) |
Creates the smallest BoundingBox that contains the two specified BoundingBox instances. More... | |
static void | CreateMerged (ref BoundingBox original, ref BoundingBox additional, out BoundingBox result) |
Creates the smallest BoundingBox that contains the two specified BoundingBox instances. More... | |
static BoundingBox | CreateFromSphere (BoundingSphere sphere) |
Creates the smallest BoundingBox that will contain the specified BoundingSphere. More... | |
static void | CreateFromSphere (ref BoundingSphere sphere, out BoundingBox result) |
Creates the smallest BoundingBox that will contain the specified BoundingSphere. More... | |
static BoundingBox | CreateFromPoints (IEnumerable< Vector3 > points) |
Creates the smallest BoundingBox that will contain a group of points. More... | |
static BoundingBox | CreateFromHalfExtent (Vector3 center, float halfExtent) |
static BoundingBox | CreateFromHalfExtent (Vector3 center, Vector3 halfExtent) |
static BoundingBox | CreateInvalid () |
Public Attributes | |
const int | CornerCount = 8 |
Specifies the total number of corners (8) in the BoundingBox. More... | |
Vector3 | Min |
The minimum point the BoundingBox contains. More... | |
Vector3 | Max |
The maximum point the BoundingBox contains. More... | |
Static Public Attributes | |
static readonly ComparerType | Comparer = new ComparerType() |
Properties | |
BoxCornerEnumerator | Corners [get] |
Vector3 | Center [get] |
Calculates center More... | |
Vector3 | HalfExtents [get] |
Vector3 | Extents [get] |
float | Width [get] |
float | Height [get] |
float | Depth [get] |
Vector3 | Size [get] |
Size More... | |
Matrix | Matrix [get] |
Matrix of AABB, respection center and size More... | |
float | Perimeter [get] |
return perimeter of edges More... | |
Defines an axis-aligned box-shaped 3D volume.
Definition at line 11 of file BoundingBox.cs.
Creates an instance of BoundingBox.
min | The minimum point the BoundingBox includes. |
max | The maximum point the BoundingBox includes. |
Definition at line 32 of file BoundingBox.cs.
|
inline |
Creates an instance of BoundingBox from BoundingBoxD (helper for transformed BBs)
bbd |
Definition at line 42 of file BoundingBox.cs.
|
inline |
Definition at line 48 of file BoundingBox.cs.
|
inline |
Tests whether the BoundingBox contains another BoundingBox.
box | The BoundingBox to test for overlap. |
Definition at line 754 of file BoundingBox.cs.
|
inline |
Tests whether the BoundingBox contains a BoundingBox.
box | The BoundingBox to test for overlap. |
result | [OutAttribute] Enumeration indicating the extent of overlap. |
Definition at line 765 of file BoundingBox.cs.
|
inline |
Tests whether the BoundingBox contains a BoundingFrustum.
frustum | The BoundingFrustum to test for overlap. |
Definition at line 777 of file BoundingBox.cs.
|
inline |
Tests whether the BoundingBox contains a point.
point | The point to test for overlap. |
Definition at line 793 of file BoundingBox.cs.
|
inline |
Definition at line 798 of file BoundingBox.cs.
|
inline |
Tests whether the BoundingBox contains a point.
point | The point to test for overlap. |
result | [OutAttribute] Enumeration indicating the extent of overlap. |
Definition at line 807 of file BoundingBox.cs.
|
inline |
Tests whether the BoundingBox contains a BoundingSphere.
sphere | The BoundingSphere to test for overlap. |
Definition at line 816 of file BoundingBox.cs.
|
inline |
Tests whether the BoundingBox contains a BoundingSphere.
sphere | The BoundingSphere to test for overlap. |
result | [OutAttribute] Enumeration indicating the extent of overlap. |
Definition at line 832 of file BoundingBox.cs.
|
inlinestatic |
Definition at line 287 of file BoundingBox.cs.
|
inlinestatic |
Definition at line 292 of file BoundingBox.cs.
|
inlinestatic |
Creates the smallest BoundingBox that will contain a group of points.
points | A list of points the BoundingBox should contain. |
Definition at line 267 of file BoundingBox.cs.
|
inlinestatic |
Creates the smallest BoundingBox that will contain the specified BoundingSphere.
sphere | The BoundingSphere to contain. |
Definition at line 237 of file BoundingBox.cs.
|
inlinestatic |
Creates the smallest BoundingBox that will contain the specified BoundingSphere.
sphere | The BoundingSphere to contain. |
result | [OutAttribute] The created BoundingBox. |
Definition at line 253 of file BoundingBox.cs.
|
inlinestatic |
Definition at line 1078 of file BoundingBox.cs.
|
inlinestatic |
Creates the smallest BoundingBox that contains the two specified BoundingBox instances.
original | One of the BoundingBoxs to contain. |
additional | One of the BoundingBoxs to contain. |
Definition at line 211 of file BoundingBox.cs.
|
inlinestatic |
Creates the smallest BoundingBox that contains the two specified BoundingBox instances.
original | One of the BoundingBox instances to contain. |
additional | One of the BoundingBox instances to contain. |
result | [OutAttribute] The created BoundingBox. |
Definition at line 223 of file BoundingBox.cs.
|
inline |
Definition at line 741 of file BoundingBox.cs.
|
inline |
Determines whether two instances of BoundingBox are equal.
other | The BoundingBox to compare with the current BoundingBox. |
Definition at line 167 of file BoundingBox.cs.
|
inline |
Determines whether two instances of BoundingBox are equal.
obj | The Object to compare with the current BoundingBox. |
Definition at line 179 of file BoundingBox.cs.
|
inline |
Gets an array of points that make up the corners of the BoundingBox. ALLOCATION!
Definition at line 83 of file BoundingBox.cs.
|
inline |
Gets the array of points that make up the corners of the BoundingBox.
corners | An existing array of at least 8 Vector3 points where the corners of the BoundingBox are written. |
Definition at line 102 of file BoundingBox.cs.
|
inline |
Gets the array of points that make up the corners of the BoundingBox.
corners | An existing array of at least 8 Vector3 points where the corners of the BoundingBox are written. |
Definition at line 135 of file BoundingBox.cs.
|
inline |
Gets the hash code for this instance.
Definition at line 190 of file BoundingBox.cs.
|
inline |
Definition at line 991 of file BoundingBox.cs.
|
inline |
return expanded aabb (aabb include point)
point |
Definition at line 979 of file BoundingBox.cs.
|
inline |
Definition at line 998 of file BoundingBox.cs.
|
inline |
Definition at line 1003 of file BoundingBox.cs.
|
inline |
Definition at line 1008 of file BoundingBox.cs.
|
inline |
return expanded aabb (aabb include aabb)
box |
Definition at line 1022 of file BoundingBox.cs.
|
inline |
Definition at line 1028 of file BoundingBox.cs.
|
inline |
Definition at line 1033 of file BoundingBox.cs.
|
inline |
Definition at line 1040 of file BoundingBox.cs.
|
inline |
Definition at line 1045 of file BoundingBox.cs.
|
inline |
Definition at line 1060 of file BoundingBox.cs.
|
inline |
Definition at line 1125 of file BoundingBox.cs.
|
inline |
Definition at line 1131 of file BoundingBox.cs.
|
inline |
Definition at line 1137 of file BoundingBox.cs.
|
inline |
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)
Definition at line 302 of file BoundingBox.cs.
|
inline |
Checks whether the current BoundingBox intersects another BoundingBox.
box | The BoundingBox to check for intersection with. |
Definition at line 318 of file BoundingBox.cs.
|
inline |
Definition at line 323 of file BoundingBox.cs.
|
inline |
Checks whether the current BoundingBox intersects another BoundingBox.
box | The BoundingBox to check for intersection with. |
result | [OutAttribute] true if the BoundingBox instances intersect; false otherwise. |
Definition at line 332 of file BoundingBox.cs.
|
inline |
Checks whether the current BoundingBox intersects a BoundingFrustum.
frustum | The BoundingFrustum to check for intersection with. |
Definition at line 484 of file BoundingBox.cs.
|
inline |
Checks whether the current BoundingBox intersects a Plane.
plane | The Plane to check for intersection with. |
Definition at line 496 of file BoundingBox.cs.
|
inline |
Checks whether the current BoundingBox intersects a Plane.
plane | The Plane to check for intersection with. |
result | [OutAttribute] An enumeration indicating whether the BoundingBox intersects the Plane. |
Definition at line 515 of file BoundingBox.cs.
|
inline |
Definition at line 534 of file BoundingBox.cs.
|
inline |
Checks whether the current BoundingBox intersects a Ray.
ray | The Ray to check for intersection with. |
Definition at line 555 of file BoundingBox.cs.
|
inline |
Checks whether the current BoundingBox intersects a Ray.
ray | The Ray to check for intersection with. |
result | [OutAttribute] Distance at which the ray intersects the BoundingBox, or null if there is no intersection. |
Definition at line 629 of file BoundingBox.cs.
|
inline |
Checks whether the current BoundingBox intersects a BoundingSphere.
sphere | The BoundingSphere to check for intersection with. |
Definition at line 704 of file BoundingBox.cs.
|
inline |
Checks whether the current BoundingBox intersects a BoundingSphere.
sphere | The BoundingSphere to check for intersection with. |
result | [OutAttribute] true if the BoundingBox and BoundingSphere intersect; false otherwise. |
Definition at line 713 of file BoundingBox.cs.
|
inline |
Definition at line 722 of file BoundingBox.cs.
|
inline |
Definition at line 731 of file BoundingBox.cs.
Definition at line 340 of file BoundingBox.cs.
|
inline |
Definition at line 345 of file BoundingBox.cs.
|
inlinestatic |
Determines whether two instances of BoundingBox are not equal.
a | The object to the left of the inequality operator. |
b | The object to the right of the inequality operator. |
Definition at line 72 of file BoundingBox.cs.
|
inlinestatic |
Determines whether two instances of BoundingBox are equal.
a | BoundingBox to compare. |
b | BoundingBox to compare. |
Definition at line 63 of file BoundingBox.cs.
|
inline |
Definition at line 1102 of file BoundingBox.cs.
|
inline |
Definition at line 1175 of file BoundingBox.cs.
|
inline |
Definition at line 1090 of file BoundingBox.cs.
|
inline |
Returns a String that represents the current BoundingBox.
Definition at line 198 of file BoundingBox.cs.
|
inline |
Definition at line 906 of file BoundingBox.cs.
|
inline |
Definition at line 911 of file BoundingBox.cs.
|
inline |
Definition at line 916 of file BoundingBox.cs.
|
inline |
Definition at line 923 of file BoundingBox.cs.
|
inline |
Definition at line 945 of file BoundingBox.cs.
|
inline |
Definition at line 952 of file BoundingBox.cs.
|
inline |
|
inline |
|
inline |
Definition at line 1096 of file BoundingBox.cs.
|
static |
Definition at line 1171 of file BoundingBox.cs.
const int VRageMath.BoundingBox.CornerCount = 8 |
Specifies the total number of corners (8) in the BoundingBox.
Definition at line 16 of file BoundingBox.cs.
Vector3 VRageMath.BoundingBox.Max |
The maximum point the BoundingBox contains.
Definition at line 26 of file BoundingBox.cs.
Vector3 VRageMath.BoundingBox.Min |
The minimum point the BoundingBox contains.
Definition at line 21 of file BoundingBox.cs.
|
get |
Calculates center
Definition at line 451 of file BoundingBox.cs.
|
get |
Definition at line 55 of file BoundingBox.cs.
|
get |
Definition at line 476 of file BoundingBox.cs.
|
get |
Definition at line 461 of file BoundingBox.cs.
|
get |
Definition at line 456 of file BoundingBox.cs.
|
get |
Definition at line 471 of file BoundingBox.cs.
|
get |
Matrix of AABB, respection center and size
Definition at line 893 of file BoundingBox.cs.
|
get |
|
get |
|
get |
Definition at line 466 of file BoundingBox.cs.