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.BoundingBox2I
Morten Aune Lyrstad edited this page Apr 16, 2022
·
53 revisions
← Index ← Namespace Index
public struct BoundingBox2I: IEquatable<BoundingBox2I>Defines an axis-aligned box-shaped 3D volume.
Namespace: VRageMath
Assembly: VRage.Math.dll
Implements:
| Member | Description |
|---|---|
| Vector2I Max | The maximum point the BoundingBox2I contains. |
| Vector2I Min | The minimum point the BoundingBox2I contains. |
| Member | Description |
|---|---|
| Vector2I Center { get; } | Calculates center |
| Vector2I Extents { get; } | |
| Vector2I HalfExtents { get; } | |
| float Height { get; } | |
| Vector2I Size { get; } | Size |
| float Width { get; } |
| Member | Description |
|---|---|
| BoundingBox2I(Vector2I, Vector2I) |
| Member | Description |
|---|---|
| static BoundingBox2I CreateFromHalfExtent(Vector2I, int) | |
| static BoundingBox2I CreateFromHalfExtent(Vector2I, Vector2I) | |
| static BoundingBox2I CreateFromPoints(IEnumerable) | Creates the smallest BoundingBox2I that will contain a group of points. |
| static BoundingBox2I CreateInvalid() | |
| static BoundingBox2I CreateMerged(BoundingBox2I, BoundingBox2I) | Creates the smallest BoundingBox2I that contains the two specified BoundingBox2I instances. |
| static void CreateMerged(ref BoundingBox2I, ref BoundingBox2I, out BoundingBox2I) | Creates the smallest BoundingBox2I that contains the two specified BoundingBox2I instances. |
| float Area() | |
| ContainmentType Contains(BoundingBox2I) | Tests whether the BoundingBox2I contains another BoundingBox2I. |
| void Contains(ref BoundingBox2I, out ContainmentType) | Tests whether the BoundingBox2I contains a BoundingBox2I. |
| ContainmentType Contains(Vector2I) | Tests whether the BoundingBox2I contains a point. |
| void Contains(ref Vector2I, out ContainmentType) | Tests whether the BoundingBox2I contains a point. |
| bool Equals(BoundingBox2I) | Determines whether two instances of BoundingBox2I are equal. |
| bool Equals(object) | Determines whether two instances of BoundingBox2I are equal. |
| Vector2I[] GetCorners() | Gets an array of points that make up the corners of the BoundingBox2I. |
| void GetCorners(Vector2I[]) | Gets the array of points that make up the corners of the BoundingBox2I. |
| void GetCornersUnsafe(*Vector2I) | |
| int GetHashCode() | Gets the hash code for this instance. |
| BoundingBox2I GetIncluded(Vector2I) | |
| BoundingBox2I Include(ref Vector2I) | return expanded aabb (abb include point) |
| BoundingBox2I Include(Vector2I) | |
| BoundingBox2I Include(Vector2I, Vector2I, Vector2I) | |
| BoundingBox2I Include(ref Vector2I, ref Vector2I, ref Vector2I) | |
| BoundingBox2I Include(ref BoundingBox2I) | return expanded aabb (abb include point) |
| BoundingBox2I Include(BoundingBox2I) | |
| void Inflate(int) | |
| void InflateToMinimum(Vector2I) | |
| BoundingBox2I Intersect(BoundingBox2I) | 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) |
| bool Intersects(BoundingBox2I) | Checks whether the current BoundingBox2I intersects another BoundingBox2I. |
| bool Intersects(ref BoundingBox2I) | |
| void Intersects(ref BoundingBox2I, out bool) | Checks whether the current BoundingBox2I intersects another BoundingBox2I. |
| float Perimeter() | |
| void Scale(Vector2I) | |
| string ToString() | Returns a String that represents the current BoundingBox2I. |
| BoundingBox2I Translate(Vector2I) | Translate |
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!