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

VRageMath.BoundingBox2D

Malware edited this page Dec 21, 2018 · 53 revisions

Index

BoundingBox2D Struct

Namespace: VRageMath
Assembly: VRage.Math.dll

Summary

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

Fields

_Vector2D Min_ The minimum point the BoundingBox2D contains.
_Vector2D Max_ The maximum point the BoundingBox2D contains.
static _int CornerCount_ Specifies the total number of corners (8) in the BoundingBox2D.
### Properties
_Vector2D Center_ Calculates center
_Vector2D HalfExtents_
_Vector2D Extents_
_double Width_
_double Height_
_Vector2D Size_ Size
### Methods
_Vector2D[] GetCorners()_ Gets an array of points that make up the corners of the BoundingBox2D.
_void GetCorners(Vector2D[] corners)_ Gets the array of points that make up the corners of the BoundingBox2D.
_void GetCornersUnsafe(*Vector2D corners)_
_bool Equals(BoundingBox2D other)_ Determines whether two instances of BoundingBox2D are equal.
_bool Equals(Object obj)_ Determines whether two instances of BoundingBox2D are equal.
_int GetHashCode()_ Gets the hash code for this instance.
_string ToString()_ Returns a String that represents the current BoundingBox2D.
static _BoundingBox2D CreateMerged(BoundingBox2D original, BoundingBox2D additional)_ Creates the smallest BoundingBox2D that contains the two specified BoundingBox2D instances.
static _void CreateMerged(ref BoundingBox2D original, ref BoundingBox2D additional, ref BoundingBox2D result)_ Creates the smallest BoundingBox2D that contains the two specified BoundingBox2D instances.
static _BoundingBox2D CreateFromPoints(IEnumerable points)_ Creates the smallest BoundingBox2D that will contain a group of points.
static _BoundingBox2D CreateFromHalfExtent(Vector2D center, double halfExtent)_
static _BoundingBox2D CreateFromHalfExtent(Vector2D center, Vector2D halfExtent)_
_BoundingBox2D Intersect(BoundingBox2D 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(BoundingBox2D box)_ Checks whether the current BoundingBox2D intersects another BoundingBox2D.
_bool Intersects(ref BoundingBox2D box)_
_void Intersects(ref BoundingBox2D box, ref bool result)_ Checks whether the current BoundingBox2D intersects another BoundingBox2D.
_double Distance(Vector2D point)_
_ContainmentType Contains(BoundingBox2D box)_ Tests whether the BoundingBox2D contains another BoundingBox2D.
_void Contains(ref BoundingBox2D box, ref ContainmentType result)_ Tests whether the BoundingBox2D contains a BoundingBox2D.
_ContainmentType Contains(Vector2D point)_ Tests whether the BoundingBox2D contains a point.
_void Contains(ref Vector2D point, ref ContainmentType result)_ Tests whether the BoundingBox2D contains a point.
_BoundingBox2D Translate(Vector2D vctTranlsation)_ Translate
_BoundingBox2D Include(ref Vector2D point)_ return expanded aabb (abb include point)
_BoundingBox2D GetIncluded(Vector2D point)_
_BoundingBox2D Include(Vector2D point)_
_BoundingBox2D Include(Vector2D p0, Vector2D p1, Vector2D p2)_
_BoundingBox2D Include(ref Vector2D p0, ref Vector2D p1, ref Vector2D p2)_
_BoundingBox2D Include(ref BoundingBox2D box)_ return expanded aabb (abb include point)
_BoundingBox2D Include(BoundingBox2D box)_
static _BoundingBox2D CreateInvalid()_
_double Perimeter()_
_double Area()_
_void Inflate(double size)_
_void InflateToMinimum(Vector2D minimumSize)_
_void Scale(Vector2D scale)_

Clone this wiki locally