-
Notifications
You must be signed in to change notification settings - Fork 123
VRageMath.BoundingBox2
← Index ← Namespace Index
public struct BoundingBox2: IEquatable<BoundingBox2>
Defines an axis-aligned box-shaped 3D volume.
Namespace: VRageMath
Assembly: VRage.Math.dll
Implements:
The maximum point the BoundingBox2 contains.
The minimum point the BoundingBox2 contains.
Calculates center
Size
BoundingBox2(Vector2 min, Vector2 max)
static BoundingBox2 CreateFromHalfExtent(Vector2 center, float halfExtent)
static BoundingBox2 CreateFromHalfExtent(Vector2 center, Vector2 halfExtent)
static BoundingBox2 CreateFromPoints(IEnumerable<Vector2> points)
Creates the smallest BoundingBox2 that will contain a group of points.
static BoundingBox2 CreateInvalid()
static BoundingBox2 CreateMerged(BoundingBox2 original, BoundingBox2 additional)
Creates the smallest BoundingBox2 that contains the two specified BoundingBox2 instances.
Creates the smallest BoundingBox2 that contains the two specified BoundingBox2 instances.
ContainmentType Contains(BoundingBox2 box)
Tests whether the BoundingBox2 contains another BoundingBox2.
void Contains(ref BoundingBox2 box, out ContainmentType result)
Tests whether the BoundingBox2 contains a BoundingBox2.
ContainmentType Contains(Vector2 point)
Tests whether the BoundingBox2 contains a point.
void Contains(ref Vector2 point, out ContainmentType result)
Tests whether the BoundingBox2 contains a point.
bool Equals(BoundingBox2 other)
Determines whether two instances of BoundingBox2 are equal.
Determines whether two instances of BoundingBox2 are equal.
Gets an array of points that make up the corners of the BoundingBox2.
void GetCorners(Vector2[] corners)
Gets the array of points that make up the corners of the BoundingBox2.
void GetCornersUnsafe(*Vector2 corners)
Gets the hash code for this instance.
BoundingBox2 GetIncluded(Vector2 point)
BoundingBox2 Include(ref Vector2 point)
return expanded aabb (abb include point)
BoundingBox2 Include(Vector2 point)
BoundingBox2 Include(Vector2 p0, Vector2 p1, Vector2 p2)
BoundingBox2 Include(ref Vector2 p0, ref Vector2 p1, ref Vector2 p2)
BoundingBox2 Include(ref BoundingBox2 box)
return expanded aabb (abb include point)
BoundingBox2 Include(BoundingBox2 box)
void InflateToMinimum(Vector2 minimumSize)
BoundingBox2 Intersect(BoundingBox2 box)
Returns bounding box which is intersection of this and box Result is invalid box when there's no intersection (Min > Max)
bool Intersects(BoundingBox2 box)
Checks whether the current BoundingBox2 intersects another BoundingBox2.
bool Intersects(ref BoundingBox2 box)
void Intersects(ref BoundingBox2 box, out bool result)
Checks whether the current BoundingBox2 intersects another BoundingBox2.
Returns a String that represents the current BoundingBox2.
BoundingBox2 Translate(Vector2 vctTranlsation)
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!