Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

VRageMath.BoundingBox2

Malware edited this page Dec 25, 2018 · 52 revisions

Index

BoundingBox2 Struct

private public sealed BoundingBox2
```csharp

**Namespace:** [VRageMath](VRageMath)  
**Assembly:** VRage.Math.dll

### Example

### Remarks

###### Fields

|Member|Description|
|---|---|
|[Min](VRageMath.BoundingBox2.Min)|The minimum point the BoundingBox2 contains.|
|[Max](VRageMath.BoundingBox2.Max)|The maximum point the BoundingBox2 contains.|
|[CornerCount](VRageMath.BoundingBox2.CornerCount)|Specifies the total number of corners (8) in the BoundingBox2.|

###### Properties

|Member|Description|
|---|---|
|[Center](VRageMath.BoundingBox2.Center)|Calculates center|
|[HalfExtents](VRageMath.BoundingBox2.HalfExtents)||
|[Extents](VRageMath.BoundingBox2.Extents)||
|[Width](VRageMath.BoundingBox2.Width)||
|[Height](VRageMath.BoundingBox2.Height)||
|[Size](VRageMath.BoundingBox2.Size)|Size|

###### Methods

|Member|Description|
|---|---|
|[GetCorners()](VRageMath.BoundingBox2.GetCorners)|Gets an array of points that make up the corners of the BoundingBox2.|
|[GetCorners(Vector2[])](VRageMath.BoundingBox2.GetCorners)|Gets the array of points that make up the corners of the BoundingBox2.|
|[GetCornersUnsafe(*Vector2)](VRageMath.BoundingBox2.GetCornersUnsafe)||
|[Equals(BoundingBox2)](VRageMath.BoundingBox2.Equals)|Determines whether two instances of BoundingBox2 are equal.|
|[Equals(object)](VRageMath.BoundingBox2.Equals)|Determines whether two instances of BoundingBox2 are equal.|
|[GetHashCode()](VRageMath.BoundingBox2.GetHashCode)|Gets the hash code for this instance.|
|[ToString()](VRageMath.BoundingBox2.ToString)|Returns a String that represents the current BoundingBox2.|
|[CreateMerged(BoundingBox2, BoundingBox2)](VRageMath.BoundingBox2.CreateMerged)|Creates the smallest BoundingBox2 that contains the two specified BoundingBox2 instances.|
|[CreateMerged(ref BoundingBox2, ref BoundingBox2, ref BoundingBox2)](VRageMath.BoundingBox2.CreateMerged)|Creates the smallest BoundingBox2 that contains the two specified BoundingBox2 instances.|
|[CreateFromPoints(IEnumerable)](VRageMath.BoundingBox2.CreateFromPoints)||
|[CreateFromHalfExtent(Vector2, float)](VRageMath.BoundingBox2.CreateFromHalfExtent)||
|[CreateFromHalfExtent(Vector2, Vector2)](VRageMath.BoundingBox2.CreateFromHalfExtent)||
|[Intersect(BoundingBox2)](VRageMath.BoundingBox2.Intersect)|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)|
|[Intersects(BoundingBox2)](VRageMath.BoundingBox2.Intersects)|Checks whether the current BoundingBox2 intersects another BoundingBox2.|
|[Intersects(ref BoundingBox2)](VRageMath.BoundingBox2.Intersects)||
|[Intersects(ref BoundingBox2, ref bool)](VRageMath.BoundingBox2.Intersects)|Checks whether the current BoundingBox2 intersects another BoundingBox2.|
|[Distance(Vector2)](VRageMath.BoundingBox2.Distance)||
|[Contains(BoundingBox2)](VRageMath.BoundingBox2.Contains)|Tests whether the BoundingBox2 contains another BoundingBox2.|
|[Contains(ref BoundingBox2, ref ContainmentType)](VRageMath.BoundingBox2.Contains)|Tests whether the BoundingBox2 contains a BoundingBox2.|
|[Contains(Vector2)](VRageMath.BoundingBox2.Contains)|Tests whether the BoundingBox2 contains a point.|
|[Contains(ref Vector2, ref ContainmentType)](VRageMath.BoundingBox2.Contains)|Tests whether the BoundingBox2 contains a point.|
|[Translate(Vector2)](VRageMath.BoundingBox2.Translate)|Translate|
|[Include(ref Vector2)](VRageMath.BoundingBox2.Include)|return expanded aabb (abb include point)|
|[GetIncluded(Vector2)](VRageMath.BoundingBox2.GetIncluded)||
|[Include(Vector2)](VRageMath.BoundingBox2.Include)||
|[Include(Vector2, Vector2, Vector2)](VRageMath.BoundingBox2.Include)||
|[Include(ref Vector2, ref Vector2, ref Vector2)](VRageMath.BoundingBox2.Include)||
|[Include(ref BoundingBox2)](VRageMath.BoundingBox2.Include)|return expanded aabb (abb include point)|
|[Include(BoundingBox2)](VRageMath.BoundingBox2.Include)||
|[CreateInvalid()](VRageMath.BoundingBox2.CreateInvalid)||
|[Perimeter()](VRageMath.BoundingBox2.Perimeter)||
|[Area()](VRageMath.BoundingBox2.Area)||
|[Inflate(float)](VRageMath.BoundingBox2.Inflate)||
|[InflateToMinimum(Vector2)](VRageMath.BoundingBox2.InflateToMinimum)||
|[Scale(Vector2)](VRageMath.BoundingBox2.Scale)||
Clone this wiki locally