Space Engineers
|
Defines an axis-aligned box-shaped 3D volume. More...
Classes | |
class | ComparerType |
Public Member Functions | |
BoundingBoxD (Vector3D min, Vector3D max) | |
Creates an instance of BoundingBox. More... | |
Vector3D[] | GetCorners () |
Gets an array of points that make up the corners of the BoundingBox. ALLOCATION! More... | |
void | GetCorners (Vector3D[] corners) |
Gets the array of points that make up the corners of the BoundingBox. More... | |
unsafe void | GetCornersUnsafe (Vector3D *corners) |
Gets the array of points that make up the corners of the BoundingBox. More... | |
bool | Equals (BoundingBoxD 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... | |
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) More... | |
bool | Intersects (BoundingBoxD box) |
Checks whether the current BoundingBox intersects another BoundingBox. More... | |
bool | Intersects (ref BoundingBoxD box) |
void | Intersects (ref BoundingBoxD box, out bool result) |
Checks whether the current BoundingBox intersects another BoundingBox. More... | |
void | Intersects (ref BoundingBox box, out 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. More... | |
PlaneIntersectionType | Intersects (PlaneD plane) |
Checks whether the current BoundingBox intersects a Plane. More... | |
void | Intersects (ref PlaneD plane, out PlaneIntersectionType result) |
Checks whether the current BoundingBox intersects a Plane. More... | |
bool | Intersects (ref LineD line) |
bool | Intersects (ref LineD line, out double distance) |
double | Intersects (Ray ray) |
double | Intersects (RayD ray) |
Checks whether the current BoundingBox intersects a Ray. More... | |
void | Intersects (ref RayD ray, out double?result) |
Checks whether the current BoundingBox intersects a Ray. More... | |
bool | Intersect (ref LineD line, out LineD intersectedLine) |
bool | Intersect (ref LineD line, out double t1, out double t2) |
bool | Intersect (ref RayD ray, out double tmin, out double tmax) |
bool | Intersects (BoundingSphereD sphere) |
Checks whether the current BoundingBox intersects a BoundingSphere. More... | |
void | Intersects (ref BoundingSphereD sphere, out bool result) |
Checks whether the current BoundingBox intersects a BoundingSphere. More... | |
bool | Intersects (ref BoundingSphereD sphere) |
double | Distance (Vector3D point) |
double | DistanceSquared (Vector3D point) |
ContainmentType | Contains (BoundingBoxD box) |
Tests whether the BoundingBox contains another BoundingBox. More... | |
void | Contains (ref BoundingBoxD box, out ContainmentType result) |
Tests whether the BoundingBox contains a BoundingBox. More... | |
ContainmentType | Contains (BoundingFrustumD frustum) |
Tests whether the BoundingBox contains a BoundingFrustum. More... | |
ContainmentType | Contains (Vector3D point) |
Tests whether the BoundingBox contains a point. More... | |
void | Contains (ref Vector3D point, out ContainmentType result) |
Tests whether the BoundingBox contains a point. More... | |
ContainmentType | Contains (BoundingSphereD sphere) |
Tests whether the BoundingBox contains a BoundingSphere. More... | |
void | Contains (ref BoundingSphereD sphere, out ContainmentType result) |
Tests whether the BoundingBox contains a BoundingSphere. More... | |
BoundingBoxD | Translate (MatrixD worldMatrix) |
Translate More... | |
BoundingBoxD | Translate (Vector3D vctTranlsation) |
Translate More... | |
unsafe BoundingBoxD | TransformSlow (MatrixD m) |
Transform this AABB by matrix. More... | |
unsafe BoundingBoxD | TransformSlow (ref MatrixD worldMatrix) |
Transform this AABB by matrix. More... | |
BoundingBoxD | TransformFast (MatrixD m) |
Transform this AABB by matrix. Matrix has to be only rotation and translation. More... | |
BoundingBoxD | TransformFast (ref MatrixD m) |
Transform this AABB by matrix. Matrix has to be only rotation and translation. More... | |
void | TransformFast (ref MatrixD m, ref BoundingBoxD bb) |
Transform this AABB by matrix. Matrix has to be only rotation and translation. More... | |
BoundingBoxD | Include (ref Vector3D point) |
return expanded aabb (aabb include point) More... | |
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) More... | |
BoundingBoxD | Include (BoundingBoxD box) |
void | Include (ref LineD line) |
BoundingBoxD | Include (BoundingSphereD sphere) |
BoundingBoxD | Include (ref BoundingSphereD sphere) |
unsafe BoundingBoxD | Include (ref BoundingFrustumD frustum) |
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 () |
Static Public Member Functions | |
static bool | operator== (BoundingBoxD a, BoundingBoxD b) |
Determines whether two instances of BoundingBox are equal. More... | |
static bool | operator!= (BoundingBoxD a, BoundingBoxD b) |
Determines whether two instances of BoundingBox are not equal. More... | |
static BoundingBoxD | operator+ (BoundingBoxD a, Vector3D b) |
static BoundingBoxD | CreateMerged (BoundingBoxD original, BoundingBoxD additional) |
Creates the smallest BoundingBox that contains the two specified BoundingBox instances. More... | |
static void | CreateMerged (ref BoundingBoxD original, ref BoundingBoxD additional, out BoundingBoxD result) |
Creates the smallest BoundingBox that contains the two specified BoundingBox instances. More... | |
static BoundingBoxD | CreateFromSphere (BoundingSphereD sphere) |
Creates the smallest BoundingBox that will contain the specified BoundingSphere. More... | |
static void | CreateFromSphere (ref BoundingSphereD sphere, out BoundingBoxD result) |
Creates the smallest BoundingBox that will contain the specified BoundingSphere. More... | |
static BoundingBoxD | CreateFromPoints (IEnumerable< Vector3D > points) |
Creates the smallest BoundingBox that will contain a group of points. More... | |
static BoundingBoxD | CreateInvalid () |
static | operator BoundingBoxD (BoundingBox b) |
static | operator BoundingBox (BoundingBoxD b) |
Public Attributes | |
const int | CornerCount = 8 |
Specifies the total number of corners (8) in the BoundingBox. More... | |
Vector3D | Min |
The minimum point the BoundingBox contains. More... | |
Vector3D | Max |
The maximum point the BoundingBox contains. More... | |
Static Public Attributes | |
static readonly ComparerType | Comparer = new ComparerType() |
Properties | |
Vector3D | Center [get] |
Calculates center More... | |
Vector3D | HalfExtents [get] |
Vector3D | Extents [get] |
Vector3D | Size [get] |
Size More... | |
MatrixD | Matrix [get] |
Matrix of AABB, respection center and size More... | |
double | SurfaceArea [get] |
double | Volume [get] |
double | Perimeter [get] |
return perimeter of edges More... | |
bool | Valid [get] |
Defines an axis-aligned box-shaped 3D volume.
Definition at line 13 of file BoundingBoxD.cs.
Creates an instance of BoundingBox.
min | The minimum point the BoundingBox includes. |
max | The maximum point the BoundingBox includes. |
Definition at line 34 of file BoundingBoxD.cs.
|
inline |
Definition at line 1291 of file BoundingBoxD.cs.
|
inline |
Tests whether the BoundingBox contains another BoundingBox.
box | The BoundingBox to test for overlap. |
Definition at line 806 of file BoundingBoxD.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 817 of file BoundingBoxD.cs.
|
inline |
Tests whether the BoundingBox contains a BoundingFrustum.
frustum | The BoundingFrustum to test for overlap. |
Definition at line 829 of file BoundingBoxD.cs.
|
inline |
Tests whether the BoundingBox contains a point.
point | The point to test for overlap. |
Definition at line 845 of file BoundingBoxD.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 854 of file BoundingBoxD.cs.
|
inline |
Tests whether the BoundingBox contains a BoundingSphere.
sphere | The BoundingSphere to test for overlap. |
Definition at line 863 of file BoundingBoxD.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 879 of file BoundingBoxD.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 256 of file BoundingBoxD.cs.
|
inlinestatic |
Creates the smallest BoundingBox that will contain the specified BoundingSphere.
sphere | The BoundingSphere to contain. |
Definition at line 226 of file BoundingBoxD.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 242 of file BoundingBoxD.cs.
|
inlinestatic |
Definition at line 1139 of file BoundingBoxD.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 200 of file BoundingBoxD.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 212 of file BoundingBoxD.cs.
|
inline |
Definition at line 784 of file BoundingBoxD.cs.
|
inline |
Definition at line 793 of file BoundingBoxD.cs.
|
inline |
Determines whether two instances of BoundingBox are equal.
other | The BoundingBox to compare with the current BoundingBox. |
Definition at line 156 of file BoundingBoxD.cs.
|
inline |
Determines whether two instances of BoundingBox are equal.
obj | The Object to compare with the current BoundingBox. |
Definition at line 168 of file BoundingBoxD.cs.
|
inline |
Gets an array of points that make up the corners of the BoundingBox. ALLOCATION!
Definition at line 73 of file BoundingBoxD.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 92 of file BoundingBoxD.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 125 of file BoundingBoxD.cs.
|
inline |
Gets the hash code for this instance.
Definition at line 179 of file BoundingBoxD.cs.
|
inline |
Definition at line 1207 of file BoundingBoxD.cs.
|
inline |
Definition at line 1214 of file BoundingBoxD.cs.
|
inline |
return expanded aabb (aabb include point)
point |
Definition at line 1047 of file BoundingBoxD.cs.
|
inline |
Definition at line 1059 of file BoundingBoxD.cs.
|
inline |
Definition at line 1064 of file BoundingBoxD.cs.
|
inline |
Definition at line 1069 of file BoundingBoxD.cs.
|
inline |
return expanded aabb (aabb include aabb)
box |
Definition at line 1083 of file BoundingBoxD.cs.
|
inline |
Definition at line 1089 of file BoundingBoxD.cs.
|
inline |
Definition at line 1094 of file BoundingBoxD.cs.
|
inline |
Definition at line 1101 of file BoundingBoxD.cs.
|
inline |
Definition at line 1106 of file BoundingBoxD.cs.
|
inline |
Definition at line 1121 of file BoundingBoxD.cs.
|
inline |
Definition at line 1193 of file BoundingBoxD.cs.
|
inline |
Definition at line 1200 of file BoundingBoxD.cs.
|
inline |
Definition at line 1250 of file BoundingBoxD.cs.
|
inline |
Definition at line 1270 of file BoundingBoxD.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 281 of file BoundingBoxD.cs.
Definition at line 692 of file BoundingBoxD.cs.
|
inline |
Definition at line 714 of file BoundingBoxD.cs.
|
inline |
Definition at line 720 of file BoundingBoxD.cs.
|
inline |
Checks whether the current BoundingBox intersects another BoundingBox.
box | The BoundingBox to check for intersection with. |
Definition at line 297 of file BoundingBoxD.cs.
|
inline |
Definition at line 302 of file BoundingBoxD.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 311 of file BoundingBoxD.cs.
|
inline |
Definition at line 318 of file BoundingBoxD.cs.
|
inline |
Checks whether the current BoundingBox intersects a BoundingFrustum.
frustum | The BoundingFrustum to check for intersection with. |
Definition at line 455 of file BoundingBoxD.cs.
|
inline |
Checks whether the current BoundingBox intersects a Plane.
plane | The Plane to check for intersection with. |
Definition at line 467 of file BoundingBoxD.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 486 of file BoundingBoxD.cs.
|
inline |
Definition at line 505 of file BoundingBoxD.cs.
|
inline |
Definition at line 520 of file BoundingBoxD.cs.
|
inline |
Definition at line 538 of file BoundingBoxD.cs.
|
inline |
Checks whether the current BoundingBox intersects a Ray.
ray | The Ray to check for intersection with. |
Definition at line 547 of file BoundingBoxD.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 621 of file BoundingBoxD.cs.
|
inline |
Checks whether the current BoundingBox intersects a BoundingSphere.
sphere | The BoundingSphere to check for intersection with. |
Definition at line 757 of file BoundingBoxD.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 766 of file BoundingBoxD.cs.
|
inline |
Definition at line 775 of file BoundingBoxD.cs.
Definition at line 326 of file BoundingBoxD.cs.
|
inline |
Definition at line 331 of file BoundingBoxD.cs.
|
inlineexplicitstatic |
Definition at line 1226 of file BoundingBoxD.cs.
|
inlineexplicitstatic |
Definition at line 1221 of file BoundingBoxD.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 53 of file BoundingBoxD.cs.
|
inlinestatic |
Definition at line 61 of file BoundingBoxD.cs.
|
inlinestatic |
Determines whether two instances of BoundingBox are equal.
a | BoundingBox to compare. |
b | BoundingBox to compare. |
Definition at line 44 of file BoundingBoxD.cs.
|
inline |
Definition at line 1162 of file BoundingBoxD.cs.
|
inline |
Returns a String that represents the current BoundingBox.
Definition at line 187 of file BoundingBoxD.cs.
|
inline |
Transform this AABB by matrix. Matrix has to be only rotation and translation.
m | transformation matrix |
Definition at line 990 of file BoundingBoxD.cs.
|
inline |
Transform this AABB by matrix. Matrix has to be only rotation and translation.
m | transformation matrix |
Definition at line 1002 of file BoundingBoxD.cs.
|
inline |
Transform this AABB by matrix. Matrix has to be only rotation and translation.
m | transformation matrix |
bb | output transformed aabb |
Definition at line 1014 of file BoundingBoxD.cs.
|
inline |
Transform this AABB by matrix.
m | transformation matrix |
Definition at line 958 of file BoundingBoxD.cs.
|
inline |
Transform this AABB by matrix.
m | transformation matrix |
Definition at line 968 of file BoundingBoxD.cs.
|
inline |
|
inline |
|
static |
Definition at line 1246 of file BoundingBoxD.cs.
const int VRageMath.BoundingBoxD.CornerCount = 8 |
Specifies the total number of corners (8) in the BoundingBox.
Definition at line 18 of file BoundingBoxD.cs.
Vector3D VRageMath.BoundingBoxD.Max |
The maximum point the BoundingBox contains.
Definition at line 28 of file BoundingBoxD.cs.
Vector3D VRageMath.BoundingBoxD.Min |
The minimum point the BoundingBox contains.
Definition at line 23 of file BoundingBoxD.cs.
|
get |
Calculates center
Definition at line 437 of file BoundingBoxD.cs.
|
get |
Definition at line 447 of file BoundingBoxD.cs.
|
get |
Definition at line 442 of file BoundingBoxD.cs.
|
get |
Matrix of AABB, respection center and size
Definition at line 940 of file BoundingBoxD.cs.
|
get |
|
get |
|
get |
Definition at line 1145 of file BoundingBoxD.cs.
|
get |
Definition at line 1186 of file BoundingBoxD.cs.
|
get |
Definition at line 1154 of file BoundingBoxD.cs.