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
VRageMath.Vector2 Min The minimum point the BoundingBox2 contains.
VRageMath.Vector2 Max The maximum point the BoundingBox2 contains.
static int CornerCount Specifies the total number of corners (8) in the BoundingBox2.

Properties

Member Description
VRageMath.Vector2 Center Calculates center
VRageMath.Vector2 HalfExtents
VRageMath.Vector2 Extents
float Width
float Height
VRageMath.Vector2 Size Size

Methods

Member Description
VRageMath.Vector2[] GetCorners() Gets an array of points that make up the corners of the BoundingBox2.
void GetCorners(VRageMath.Vector2[]) Gets the array of points that make up the corners of the BoundingBox2.
void GetCornersUnsafe(*VRageMath.Vector2)
bool Equals(VRageMath.BoundingBox2) Determines whether two instances of BoundingBox2 are equal.
bool Equals(System.Object) 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 VRageMath.BoundingBox2 CreateMerged(VRageMath.BoundingBox2, VRageMath.BoundingBox2) Creates the smallest BoundingBox2 that contains the two specified BoundingBox2 instances.
static void CreateMerged(ref VRageMath.BoundingBox2, ref VRageMath.BoundingBox2, ref VRageMath.BoundingBox2) Creates the smallest BoundingBox2 that contains the two specified BoundingBox2 instances.
static VRageMath.BoundingBox2 CreateFromPoints(IEnumerable<VRageMath.Vector2>) Creates the smallest BoundingBox2 that will contain a group of points.
static VRageMath.BoundingBox2 CreateFromHalfExtent(VRageMath.Vector2, float)
static VRageMath.BoundingBox2 CreateFromHalfExtent(VRageMath.Vector2, VRageMath.Vector2)
VRageMath.BoundingBox2 Intersect(VRageMath.BoundingBox2) 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(VRageMath.BoundingBox2) Checks whether the current BoundingBox2 intersects another BoundingBox2.
bool Intersects(ref VRageMath.BoundingBox2)
void Intersects(ref VRageMath.BoundingBox2, ref bool) Checks whether the current BoundingBox2 intersects another BoundingBox2.
float Distance(VRageMath.Vector2)
VRageMath.ContainmentType Contains(VRageMath.BoundingBox2) Tests whether the BoundingBox2 contains another BoundingBox2.
void Contains(ref VRageMath.BoundingBox2, ref VRageMath.ContainmentType) Tests whether the BoundingBox2 contains a BoundingBox2.
VRageMath.ContainmentType Contains(VRageMath.Vector2) Tests whether the BoundingBox2 contains a point.
void Contains(ref VRageMath.Vector2, ref VRageMath.ContainmentType) Tests whether the BoundingBox2 contains a point.
VRageMath.BoundingBox2 Translate(VRageMath.Vector2) Translate
VRageMath.BoundingBox2 Include(ref VRageMath.Vector2) return expanded aabb (abb include point)
VRageMath.BoundingBox2 GetIncluded(VRageMath.Vector2)
VRageMath.BoundingBox2 Include(VRageMath.Vector2)
VRageMath.BoundingBox2 Include(VRageMath.Vector2, VRageMath.Vector2, VRageMath.Vector2)
VRageMath.BoundingBox2 Include(ref VRageMath.Vector2, ref VRageMath.Vector2, ref VRageMath.Vector2)
VRageMath.BoundingBox2 Include(ref VRageMath.BoundingBox2) return expanded aabb (abb include point)
VRageMath.BoundingBox2 Include(VRageMath.BoundingBox2)
static VRageMath.BoundingBox2 CreateInvalid()
float Perimeter()
float Area()
void Inflate(float)
void InflateToMinimum(VRageMath.Vector2)
void Scale(VRageMath.Vector2)

Clone this wiki locally