VRageMath
BoundingBox2
Assembly: VRage.Math.dll
public struct BoundingBox2: IEquatable<BoundingBox2>
Defines an axis-aligned box-shaped 3D volume.
Fields
| Member | Description |
|---|---|
| Max | The maximum point the BoundingBox2 contains. |
| Min | The minimum point the BoundingBox2 contains. |
Properties
| Member | Description |
|---|---|
| Center | Calculates center |
| Extents | |
| HalfExtents | |
| Height | |
| Size | Size |
| Width |
Constructors
| Member | Description |
|---|---|
| BoundingBox2(Vector2, Vector2) |
Methods
| Member | Description |
|---|---|
| static CreateFromHalfExtent(Vector2, float) | |
| static CreateFromHalfExtent(Vector2, Vector2) | |
| static CreateFromPoints(IEnumerable |
Creates the smallest BoundingBox2 that will contain a group of points. |
| static CreateInvalid() | |
| static CreateMerged(BoundingBox2, BoundingBox2) | Creates the smallest BoundingBox2 that contains the two specified BoundingBox2 instances. |
| static CreateMerged(ref BoundingBox2, ref BoundingBox2, out BoundingBox2) | Creates the smallest BoundingBox2 that contains the two specified BoundingBox2 instances. |
| Area() | |
| Contains(BoundingBox2) | Tests whether the BoundingBox2 contains another BoundingBox2. |
| Contains(ref BoundingBox2, out ContainmentType) | Tests whether the BoundingBox2 contains a BoundingBox2. |
| Contains(Vector2) | Tests whether the BoundingBox2 contains a point. |
| Contains(ref Vector2, out ContainmentType) | Tests whether the BoundingBox2 contains a point. |
| Distance(Vector2) | |
| Equals(BoundingBox2) | Determines whether two instances of BoundingBox2 are equal. |
| Equals(object) | Determines whether two instances of BoundingBox2 are equal. |
| 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) | |
| GetHashCode() | Gets the hash code for this instance. |
| GetIncluded(Vector2) | |
| Include(ref Vector2) | return expanded aabb (abb include point) |
| Include(Vector2) | |
| Include(Vector2, Vector2, Vector2) | |
| Include(ref Vector2, ref Vector2, ref Vector2) | |
| Include(ref BoundingBox2) | return expanded aabb (abb include point) |
| Include(BoundingBox2) | |
| Inflate(float) | |
| InflateToMinimum(Vector2) | |
| Intersect(BoundingBox2) | Returns bounding box which is intersection of this and box 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, out bool) | Checks whether the current BoundingBox2 intersects another BoundingBox2. |
| Perimeter() | |
| Scale(Vector2) | |
| ToString() | Returns a String that represents the current BoundingBox2. |
| Translate(Vector2) | Translate |
Implements: