This repository was archived by the owner on Dec 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
VRageMath.BoundingBox2
Malware edited this page Dec 21, 2018
·
53 revisions
← Index
Namespace: VRageMath
Assembly: VRage.Math.dll
Defines an axis-aligned box-shaped 3D volume.
| Member | Description |
|---|---|
Min |
The minimum point the BoundingBox2 contains. |
Max |
The maximum point the BoundingBox2 contains. |
static CornerCount
|
Specifies the total number of corners (8) in the BoundingBox2. |
| Member | Description |
|---|---|
Center |
Calculates center |
HalfExtents |
|
Extents |
|
Width |
|
Height |
|
Size |
Size |
| Member | Description |
|---|---|
GetCorners() |
Gets an array of points that make up the corners of the BoundingBox2. |
GetCorners(Vector2[]) |
Gets the array of points that make up the corners of the BoundingBox2. |
GetCornersUnsafe(*Vector2) |
|
Equals(BoundingBox2) |
Determines whether two instances of BoundingBox2 are equal. |
Equals(Object) |
Determines whether two instances of BoundingBox2 are equal. |
GetHashCode() |
Gets the hash code for this instance. |
ToString() |
Returns a String that represents the current BoundingBox2. |
static CreateMerged(BoundingBox2, BoundingBox2)
|
Creates the smallest BoundingBox2 that contains the two specified BoundingBox2 instances. |
static CreateMerged(ref BoundingBox2, ref BoundingBox2, ref BoundingBox2)
|
Creates the smallest BoundingBox2 that contains the two specified BoundingBox2 instances. |
static CreateFromPoints(IEnumerable<Vector2>)
|
Creates the smallest BoundingBox2 that will contain a group of points. |
static CreateFromHalfExtent(Vector2, float)
|
|
static CreateFromHalfExtent(Vector2, Vector2)
|
|
Intersect(BoundingBox2) |
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(BoundingBox2) |
Checks whether the current BoundingBox2 intersects another BoundingBox2. |
Intersects(ref BoundingBox2) |
|
Intersects(ref BoundingBox2, ref bool) |
Checks whether the current BoundingBox2 intersects another BoundingBox2. |
Distance(Vector2) |
|
Contains(BoundingBox2) |
Tests whether the BoundingBox2 contains another BoundingBox2. |
Contains(ref BoundingBox2, ref ContainmentType) |
Tests whether the BoundingBox2 contains a BoundingBox2. |
Contains(Vector2) |
Tests whether the BoundingBox2 contains a point. |
Contains(ref Vector2, ref ContainmentType) |
Tests whether the BoundingBox2 contains a point. |
Translate(Vector2) |
Translate |
Include(ref Vector2) |
return expanded aabb (abb include point) |
GetIncluded(Vector2) |
|
Include(Vector2) |
|
Include(Vector2, Vector2, Vector2) |
|
Include(ref Vector2, ref Vector2, ref Vector2) |
|
Include(ref BoundingBox2) |
return expanded aabb (abb include point) |
Include(BoundingBox2) |
|
static CreateInvalid()
|
|
Perimeter() |
|
Area() |
|
Inflate(float) |
|
InflateToMinimum(Vector2) |
|
Scale(Vector2) |
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!