Assembly: VRage.Math.dll

public struct BoundingBox2D: IEquatable<BoundingBox2D>

Defines an axis-aligned box-shaped 2D volume.

Fields

Member Description
static CornerCount Specifies the total number of corners (8) in the BoundingBox2D.
Max The maximum point the BoundingBox2D contains.
Min The minimum point the BoundingBox2D contains.

Properties

Member Description
Center Calculates center
Extents
HalfExtents
Height
Size Size
Width

Constructors

Member Description
BoundingBox2D(Vector2D, Vector2D)

Methods

Member Description
static CreateFromHalfExtent(Vector2D, double)
static CreateFromHalfExtent(Vector2D, Vector2D)
static CreateFromPoints(IEnumerable) Creates the smallest BoundingBox2D that will contain a group of points.
static CreateInvalid()
static CreateMerged(BoundingBox2D, BoundingBox2D) Creates the smallest BoundingBox2D that contains the two specified BoundingBox2D instances.
static CreateMerged(ref BoundingBox2D, ref BoundingBox2D, out BoundingBox2D) Creates the smallest BoundingBox2D that contains the two specified BoundingBox2D instances.
Area()
Contains(BoundingBox2D) Tests whether the BoundingBox2D contains another BoundingBox2D.
Contains(ref BoundingBox2D, out ContainmentType) Tests whether the BoundingBox2D contains a BoundingBox2D.
Contains(Vector2D) Tests whether the BoundingBox2D contains a point.
Contains(ref Vector2D, out ContainmentType) Tests whether the BoundingBox2D contains a point.
Distance(Vector2D)
Equals(BoundingBox2D) Determines whether two instances of BoundingBox2D are equal.
Equals(object) Determines whether two instances of BoundingBox2D are equal.
GetCorners() Gets an array of points that make up the corners of the BoundingBox2D.
GetCorners(Vector2D[]) Gets the array of points that make up the corners of the BoundingBox2D.
GetCornersUnsafe(*Vector2D)
GetHashCode() Gets the hash code for this instance.
GetIncluded(Vector2D)
Include(ref Vector2D) return expanded aabb (abb include point)
Include(Vector2D)
Include(Vector2D, Vector2D, Vector2D)
Include(ref Vector2D, ref Vector2D, ref Vector2D)
Include(ref BoundingBox2D) return expanded aabb (abb include point)
Include(BoundingBox2D)
Inflate(double)
InflateToMinimum(Vector2D)
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)
Intersects(BoundingBox2D) Checks whether the current BoundingBox2D intersects another BoundingBox2D.
Intersects(ref BoundingBox2D)
Intersects(ref BoundingBox2D, out bool) Checks whether the current BoundingBox2D intersects another BoundingBox2D.
Perimeter()
Scale(Vector2D)
ToString() Returns a String that represents the current BoundingBox2D.
Translate(Vector2D) Translate

Implements: