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
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

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

Methods

Member Description
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&nbsp;CreateFromPoints(IEnumerable<Vector2D>&nbsp;points) Creates the smallest BoundingBox2D that will contain a group of points.
static BoundingBox2D&nbsp;CreateFromHalfExtent(Vector2D&nbsp;center,&nbsp;double&nbsp;halfExtent)
static BoundingBox2D&nbsp;CreateFromHalfExtent(Vector2D&nbsp;center,&nbsp;Vector2D&nbsp;halfExtent)
BoundingBox2D&nbsp;Intersect(BoundingBox2D&nbsp;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&nbsp;Intersects(BoundingBox2D&nbsp;box) Checks whether the current BoundingBox2D intersects another BoundingBox2D.
bool&nbsp;Intersects(ref&nbsp;BoundingBox2D&nbsp;box)
void&nbsp;Intersects(ref&nbsp;BoundingBox2D&nbsp;box,&nbsp;ref&nbsp;bool&nbsp;result) Checks whether the current BoundingBox2D intersects another BoundingBox2D.
double&nbsp;Distance(Vector2D&nbsp;point)
ContainmentType&nbsp;Contains(BoundingBox2D&nbsp;box) Tests whether the BoundingBox2D contains another BoundingBox2D.
void&nbsp;Contains(ref&nbsp;BoundingBox2D&nbsp;box,&nbsp;ref&nbsp;ContainmentType&nbsp;result) Tests whether the BoundingBox2D contains a BoundingBox2D.
ContainmentType&nbsp;Contains(Vector2D&nbsp;point) Tests whether the BoundingBox2D contains a point.
void&nbsp;Contains(ref&nbsp;Vector2D&nbsp;point,&nbsp;ref&nbsp;ContainmentType&nbsp;result) Tests whether the BoundingBox2D contains a point.
BoundingBox2D&nbsp;Translate(Vector2D&nbsp;vctTranlsation) Translate
BoundingBox2D&nbsp;Include(ref&nbsp;Vector2D&nbsp;point) return expanded aabb (abb include point)
BoundingBox2D&nbsp;GetIncluded(Vector2D&nbsp;point)
BoundingBox2D&nbsp;Include(Vector2D&nbsp;point)
BoundingBox2D&nbsp;Include(Vector2D&nbsp;p0,&nbsp;Vector2D&nbsp;p1,&nbsp;Vector2D&nbsp;p2)
BoundingBox2D&nbsp;Include(ref&nbsp;Vector2D&nbsp;p0,&nbsp;ref&nbsp;Vector2D&nbsp;p1,&nbsp;ref&nbsp;Vector2D&nbsp;p2)
BoundingBox2D&nbsp;Include(ref&nbsp;BoundingBox2D&nbsp;box) return expanded aabb (abb include point)
BoundingBox2D&nbsp;Include(BoundingBox2D&nbsp;box)
static BoundingBox2D&nbsp;CreateInvalid()
double&nbsp;Perimeter()
double&nbsp;Area()
void&nbsp;Inflate(double&nbsp;size)
void&nbsp;InflateToMinimum(Vector2D&nbsp;minimumSize)
void&nbsp;Scale(Vector2D&nbsp;scale)

Clone this wiki locally