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

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

Methods

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

Clone this wiki locally