Space Engineers
|
Defines an axis-aligned box-shaped 3D volume. More...
Public Member Functions | |
BoundingBox2D (Vector2D min, Vector2D max) | |
Creates an instance of BoundingBox2D. More... | |
Vector2D[] | GetCorners () |
Gets an array of points that make up the corners of the BoundingBox2D. More... | |
void | GetCorners (Vector2D[] corners) |
Gets the array of points that make up the corners of the BoundingBox2D. More... | |
unsafe void | GetCornersUnsafe (Vector2D *corners) |
Gets the array of points that make up the corners of the BoundingBox2D. More... | |
bool | Equals (BoundingBox2D other) |
Determines whether two instances of BoundingBox2D are equal. More... | |
override bool | Equals (object obj) |
Determines whether two instances of BoundingBox2D are equal. More... | |
override int | GetHashCode () |
Gets the hash code for this instance. More... | |
override string | ToString () |
Returns a String that represents the current BoundingBox2D. More... | |
BoundingBox2D | Intersect (BoundingBox2D 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 (BoundingBox2D box) |
Checks whether the current BoundingBox2D intersects another BoundingBox2D. More... | |
bool | Intersects (ref BoundingBox2D box) |
void | Intersects (ref BoundingBox2D box, out bool result) |
Checks whether the current BoundingBox2D intersects another BoundingBox2D. More... | |
double | Distance (Vector2D point) |
ContainmentType | Contains (BoundingBox2D box) |
Tests whether the BoundingBox2D contains another BoundingBox2D. More... | |
void | Contains (ref BoundingBox2D box, out ContainmentType result) |
Tests whether the BoundingBox2D contains a BoundingBox2D. More... | |
ContainmentType | Contains (Vector2D point) |
Tests whether the BoundingBox2D contains a point. More... | |
void | Contains (ref Vector2D point, out ContainmentType result) |
Tests whether the BoundingBox2D contains a point. More... | |
BoundingBox2D | Translate (Vector2D vctTranlsation) |
Translate More... | |
BoundingBox2D | Include (ref Vector2D point) |
return expanded aabb (abb include point) More... | |
BoundingBox2D | GetIncluded (Vector2D point) |
BoundingBox2D | Include (Vector2D point) |
BoundingBox2D | Include (Vector2D p0, Vector2D p1, Vector2D p2) |
BoundingBox2D | Include (ref Vector2D p0, ref Vector2D p1, ref Vector2D p2) |
BoundingBox2D | Include (ref BoundingBox2D box) |
return expanded aabb (abb include point) More... | |
BoundingBox2D | Include (BoundingBox2D box) |
double | Perimeter () |
double | Area () |
void | Inflate (double size) |
void | InflateToMinimum (Vector2D minimumSize) |
void | Scale (Vector2D scale) |
Static Public Member Functions | |
static bool | operator== (BoundingBox2D a, BoundingBox2D b) |
Determines whether two instances of BoundingBox2D are equal. More... | |
static bool | operator!= (BoundingBox2D a, BoundingBox2D b) |
Determines whether two instances of BoundingBox2D are not equal. More... | |
static BoundingBox2D | CreateMerged (BoundingBox2D original, BoundingBox2D additional) |
Creates the smallest BoundingBox2D that contains the two specified BoundingBox2D instances. More... | |
static void | CreateMerged (ref BoundingBox2D original, ref BoundingBox2D additional, out BoundingBox2D result) |
Creates the smallest BoundingBox2D that contains the two specified BoundingBox2D instances. More... | |
static BoundingBox2D | CreateFromPoints (IEnumerable< Vector2D > points) |
Creates the smallest BoundingBox2D that will contain a group of points. More... | |
static BoundingBox2D | CreateFromHalfExtent (Vector2D center, double halfExtent) |
static BoundingBox2D | CreateFromHalfExtent (Vector2D center, Vector2D halfExtent) |
static BoundingBox2D | CreateInvalid () |
Public Attributes | |
const int | CornerCount = 8 |
Specifies the total number of corners (8) in the BoundingBox2D. More... | |
Vector2D | Min |
The minimum point the BoundingBox2D contains. More... | |
Vector2D | Max |
The maximum point the BoundingBox2D contains. More... | |
Properties | |
Vector2D | Center [get] |
Calculates center More... | |
Vector2D | HalfExtents [get] |
Vector2D | Extents [get] |
double | Width [get] |
double | Height [get] |
Vector2D | Size [get] |
Size More... | |
Defines an axis-aligned box-shaped 3D volume.
Definition at line 11 of file BoundingBox2D.cs.
Creates an instance of BoundingBox2D.
min | The minimum point the BoundingBox2D includes. |
max | The maximum point the BoundingBox2D includes. |
Definition at line 32 of file BoundingBox2D.cs.
|
inline |
Definition at line 466 of file BoundingBox2D.cs.
|
inline |
Tests whether the BoundingBox2D contains another BoundingBox2D.
box | The BoundingBox2D to test for overlap. |
Definition at line 320 of file BoundingBox2D.cs.
|
inline |
Tests whether the BoundingBox2D contains a BoundingBox2D.
box | The BoundingBox2D to test for overlap. |
result | [OutAttribute] Enumeration indicating the extent of overlap. |
Definition at line 331 of file BoundingBox2D.cs.
|
inline |
Tests whether the BoundingBox2D contains a point.
point | The point to test for overlap. |
Definition at line 343 of file BoundingBox2D.cs.
|
inline |
Tests whether the BoundingBox2D contains a point.
point | The point to test for overlap. |
result | [OutAttribute] Enumeration indicating the extent of overlap. |
Definition at line 357 of file BoundingBox2D.cs.
|
inlinestatic |
Definition at line 231 of file BoundingBox2D.cs.
|
inlinestatic |
Definition at line 236 of file BoundingBox2D.cs.
|
inlinestatic |
Creates the smallest BoundingBox2D that will contain a group of points.
points | A list of points the BoundingBox2D should contain. |
Definition at line 211 of file BoundingBox2D.cs.
|
inlinestatic |
Definition at line 448 of file BoundingBox2D.cs.
|
inlinestatic |
Creates the smallest BoundingBox2D that contains the two specified BoundingBox2D instances.
original | One of the BoundingBox2Ds to contain. |
additional | One of the BoundingBox2Ds to contain. |
Definition at line 185 of file BoundingBox2D.cs.
|
inlinestatic |
Creates the smallest BoundingBox2D that contains the two specified BoundingBox2D instances.
original | One of the BoundingBox2D instances to contain. |
additional | One of the BoundingBox2D instances to contain. |
result | [OutAttribute] The created BoundingBox2D. |
Definition at line 197 of file BoundingBox2D.cs.
|
inline |
Definition at line 310 of file BoundingBox2D.cs.
|
inline |
Determines whether two instances of BoundingBox2D are equal.
other | The BoundingBox2D to compare with the current BoundingBox2D. |
Definition at line 145 of file BoundingBox2D.cs.
|
inline |
Determines whether two instances of BoundingBox2D are equal.
obj | The Object to compare with the current BoundingBox2D. |
Definition at line 157 of file BoundingBox2D.cs.
|
inline |
Gets an array of points that make up the corners of the BoundingBox2D.
Definition at line 78 of file BoundingBox2D.cs.
|
inline |
Gets the array of points that make up the corners of the BoundingBox2D.
corners | An existing array of at least 8 Vector2D points where the corners of the BoundingBox2D are written. |
Definition at line 97 of file BoundingBox2D.cs.
|
inline |
Gets the array of points that make up the corners of the BoundingBox2D.
corners | An existing array of at least 8 Vector2D points where the corners of the BoundingBox2D are written. |
Definition at line 121 of file BoundingBox2D.cs.
|
inline |
Gets the hash code for this instance.
Definition at line 168 of file BoundingBox2D.cs.
|
inline |
Definition at line 406 of file BoundingBox2D.cs.
|
inline |
return expanded aabb (abb include point)
point |
Definition at line 397 of file BoundingBox2D.cs.
|
inline |
Definition at line 413 of file BoundingBox2D.cs.
|
inline |
Definition at line 418 of file BoundingBox2D.cs.
|
inline |
Definition at line 423 of file BoundingBox2D.cs.
|
inline |
return expanded aabb (abb include point)
box |
Definition at line 437 of file BoundingBox2D.cs.
|
inline |
Definition at line 443 of file BoundingBox2D.cs.
|
inline |
Definition at line 472 of file BoundingBox2D.cs.
|
inline |
Definition at line 478 of file BoundingBox2D.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 246 of file BoundingBox2D.cs.
|
inline |
Checks whether the current BoundingBox2D intersects another BoundingBox2D.
box | The BoundingBox2D to check for intersection with. |
Definition at line 260 of file BoundingBox2D.cs.
|
inline |
Definition at line 265 of file BoundingBox2D.cs.
|
inline |
Checks whether the current BoundingBox2D intersects another BoundingBox2D.
box | The BoundingBox2D to check for intersection with. |
result | [OutAttribute] true if the BoundingBox2D instances intersect; false otherwise. |
Definition at line 274 of file BoundingBox2D.cs.
|
inlinestatic |
Determines whether two instances of BoundingBox2D 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 67 of file BoundingBox2D.cs.
|
inlinestatic |
Determines whether two instances of BoundingBox2D are equal.
a | BoundingBox2D to compare. |
b | BoundingBox2D to compare. |
Definition at line 58 of file BoundingBox2D.cs.
|
inline |
Definition at line 460 of file BoundingBox2D.cs.
|
inline |
Definition at line 512 of file BoundingBox2D.cs.
|
inline |
Returns a String that represents the current BoundingBox2D.
Definition at line 176 of file BoundingBox2D.cs.
|
inline |
const int VRageMath.BoundingBox2D.CornerCount = 8 |
Specifies the total number of corners (8) in the BoundingBox2D.
Definition at line 16 of file BoundingBox2D.cs.
Vector2D VRageMath.BoundingBox2D.Max |
The maximum point the BoundingBox2D contains.
Definition at line 26 of file BoundingBox2D.cs.
Vector2D VRageMath.BoundingBox2D.Min |
The minimum point the BoundingBox2D contains.
Definition at line 21 of file BoundingBox2D.cs.
|
get |
Calculates center
Definition at line 286 of file BoundingBox2D.cs.
|
get |
Definition at line 296 of file BoundingBox2D.cs.
|
get |
Definition at line 291 of file BoundingBox2D.cs.
|
get |
Definition at line 306 of file BoundingBox2D.cs.
|
get |
|
get |
Definition at line 301 of file BoundingBox2D.cs.