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

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

Properties

Member Description
VRageMath.Vector2D Center Calculates center
VRageMath.Vector2D HalfExtents
VRageMath.Vector2D Extents
double Width
double Height
VRageMath.Vector2D Size Size

Methods

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

Clone this wiki locally