-
Notifications
You must be signed in to change notification settings - Fork 125
VRageMath.BoundingBox2D
← Index ← Namespace Index
public struct BoundingBox2D: IEquatable<BoundingBox2D>
Defines an axis-aligned box-shaped 2D volume.
Namespace: VRageMath
Assembly: VRage.Math.dll
Implements:
Specifies the total number of corners (8) in the BoundingBox2D.
The maximum point the BoundingBox2D contains.
The minimum point the BoundingBox2D contains.
Calculates center
Size
BoundingBox2D(Vector2D, Vector2D)
static BoundingBox2D CreateFromHalfExtent(Vector2D, double)
static BoundingBox2D CreateFromHalfExtent(Vector2D, Vector2D)
static BoundingBox2D CreateFromPoints(IEnumerable<Vector2D>)
Creates the smallest BoundingBox2D that will contain a group of points.
static BoundingBox2D CreateInvalid()
static BoundingBox2D CreateMerged(BoundingBox2D, BoundingBox2D)
Creates the smallest BoundingBox2D that contains the two specified BoundingBox2D instances.
static void CreateMerged(ref BoundingBox2D, ref BoundingBox2D, out BoundingBox2D)
Creates the smallest BoundingBox2D that contains the two specified BoundingBox2D instances.
ContainmentType Contains(BoundingBox2D)
Tests whether the BoundingBox2D contains another BoundingBox2D.
void Contains(ref BoundingBox2D, out ContainmentType)
Tests whether the BoundingBox2D contains a BoundingBox2D.
ContainmentType Contains(Vector2D)
Tests whether the BoundingBox2D contains a point.
void Contains(ref Vector2D, out ContainmentType)
Tests whether the BoundingBox2D contains a point.
Determines whether two instances of BoundingBox2D are equal.
Determines whether two instances of BoundingBox2D are equal.
Gets an array of points that make up the corners of the BoundingBox2D.
void GetCorners(Vector2D[])
Gets the array of points that make up the corners of the BoundingBox2D.
void GetCornersUnsafe(*Vector2D)
Gets the hash code for this instance.
BoundingBox2D GetIncluded(Vector2D)
BoundingBox2D Include(ref Vector2D)
return expanded aabb (abb include point)
BoundingBox2D Include(Vector2D)
BoundingBox2D Include(Vector2D, Vector2D, Vector2D)
BoundingBox2D Include(ref Vector2D, ref Vector2D, ref Vector2D)
BoundingBox2D Include(ref BoundingBox2D)
return expanded aabb (abb include point)
BoundingBox2D Include(BoundingBox2D)
void InflateToMinimum(Vector2D)
BoundingBox2D Intersect(BoundingBox2D)
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(BoundingBox2D)
Checks whether the current BoundingBox2D intersects another BoundingBox2D.
bool Intersects(ref BoundingBox2D)
void Intersects(ref BoundingBox2D, out bool)
Checks whether the current BoundingBox2D intersects another BoundingBox2D.
Returns a String that represents the current BoundingBox2D.
BoundingBox2D Translate(Vector2D)
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!