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

_Vector2 Min_ The minimum point the BoundingBox2 contains.
_Vector2 Max_ The maximum point the BoundingBox2 contains.
static _int CornerCount_ Specifies the total number of corners (8) in the BoundingBox2.
### Properties
_Vector2 Center_ Calculates center
_Vector2 HalfExtents_
_Vector2 Extents_
_float Width_
_float Height_
_Vector2 Size_ Size
### Methods
_Vector2[] GetCorners()_ 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)_
_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()_ Gets the hash code for this instance.
_string ToString()_ Returns a String that represents the current BoundingBox2.
static _BoundingBox2 CreateMerged(BoundingBox2 original, BoundingBox2 additional)_ Creates the smallest BoundingBox2 that contains the two specified BoundingBox2 instances.
static _void CreateMerged(ref BoundingBox2 original, ref BoundingBox2 additional, ref BoundingBox2 result)_ Creates the smallest BoundingBox2 that contains the two specified BoundingBox2 instances.
static _BoundingBox2 CreateFromPoints(IEnumerable points)_ Creates the smallest BoundingBox2 that will contain a group of points.
static _BoundingBox2 CreateFromHalfExtent(Vector2 center, float halfExtent)_
static _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)_ Checks whether the current BoundingBox2 intersects another BoundingBox2.
_float Distance(Vector2 point)_
_ContainmentType Contains(BoundingBox2 box)_ Tests whether the BoundingBox2 contains another BoundingBox2.
_void Contains(ref BoundingBox2 box, ref 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, ref ContainmentType result)_ Tests whether the BoundingBox2 contains a point.
_BoundingBox2 Translate(Vector2 vctTranlsation)_ Translate
_BoundingBox2 Include(ref Vector2 point)_ return expanded aabb (abb include 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)_ return expanded aabb (abb include point)
_BoundingBox2 Include(BoundingBox2 box)_
static _BoundingBox2 CreateInvalid()_
_float Perimeter()_
_float Area()_
_void Inflate(float size)_
_void InflateToMinimum(Vector2 minimumSize)_
_void Scale(Vector2 scale)_

Clone this wiki locally