Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

VRageMath.BoundingBox2

Malware edited this page Dec 21, 2018 · 53 revisions

Index #BoundingBox2 Struct Namespace: VRageMath
Assembly: VRage.Math.dll
##Summary Defines an axis-aligned box-shaped 3D volume. ###Fields

Member Description
Vector2 Min
Vector2 Max
int CornerCount
###Properties
Member Description
--- ---
Vector2 Center
Vector2 HalfExtents
Vector2 Extents
float Width
float Height
Vector2 Size
###Methods
Member Description
--- ---
Vector2[] GetCorners()
void GetCorners(Vector2[] corners) Gets the array of points that make up the corners of the BoundingBox2.
void GetCornersUnsafe(*Vector2 corners)
bool Equals(BoundingBox2 other) Determines whether two instances of BoundingBox2 are equal.
bool Equals(Object obj) Determines whether two instances of BoundingBox2 are equal.
int GetHashCode()
string ToString()
BoundingBox2 CreateMerged(BoundingBox2 original, BoundingBox2 additional)
void CreateMerged(ref BoundingBox2 original, ref BoundingBox2 additional, ref BoundingBox2 result)
BoundingBox2 CreateFromPoints(IEnumerable<Vector2> points) Creates the smallest BoundingBox2 that will contain a group of points.
BoundingBox2 CreateFromHalfExtent(Vector2 center, float halfExtent)
BoundingBox2 CreateFromHalfExtent(Vector2 center, Vector2 halfExtent)
BoundingBox2 Intersect(BoundingBox2 box) 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(BoundingBox2 box) Checks whether the current BoundingBox2 intersects another BoundingBox2.
bool Intersects(ref BoundingBox2 box)
void Intersects(ref BoundingBox2 box, ref bool result)
float Distance(Vector2 point)
ContainmentType Contains(BoundingBox2 box) Tests whether the BoundingBox2 contains another BoundingBox2.
void Contains(ref BoundingBox2 box, ref ContainmentType result)
ContainmentType Contains(Vector2 point) Tests whether the BoundingBox2 contains a point.
void Contains(ref Vector2 point, ref ContainmentType result)
BoundingBox2 Translate(Vector2 vctTranlsation) Translate
BoundingBox2 Include(ref Vector2 point)
BoundingBox2 GetIncluded(Vector2 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)
BoundingBox2 Include(BoundingBox2 box)
BoundingBox2 CreateInvalid()
float Perimeter()
float Area()
void Inflate(float size)
void InflateToMinimum(Vector2 minimumSize)
void Scale(Vector2 scale)

Clone this wiki locally