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

[`Vector2D Min`](VRageMath.Min) The minimum point the BoundingBox2D contains.
[`Vector2D Max`](VRageMath.Max) The maximum point the BoundingBox2D contains.
static [`int CornerCount`](VRageMath.CornerCount) Specifies the total number of corners (8) in the BoundingBox2D.
### Properties
[`Vector2D Center`](VRageMath.Center) Calculates center
[`Vector2D HalfExtents`](VRageMath.HalfExtents)
[`Vector2D Extents`](VRageMath.Extents)
[`double Width`](VRageMath.Width)
[`double Height`](VRageMath.Height)
[`Vector2D Size`](VRageMath.Size) Size
### Methods
[`Vector2D[] GetCorners()`](VRageMath.GetCorners) Gets an array of points that make up the corners of the BoundingBox2D.
[`void GetCorners(Vector2D[] corners)`](VRageMath.GetCorners) Gets the array of points that make up the corners of the BoundingBox2D.
[`void GetCornersUnsafe(*Vector2D corners)`](VRageMath.GetCornersUnsafe)
[`bool Equals(BoundingBox2D other)`](VRageMath.Equals) Determines whether two instances of BoundingBox2D are equal.
[`bool Equals(Object obj)`](VRageMath.Equals) Determines whether two instances of BoundingBox2D are equal.
[`int GetHashCode()`](VRageMath.GetHashCode) Gets the hash code for this instance.
[`string ToString()`](VRageMath.ToString) Returns a String that represents the current BoundingBox2D.
static [`BoundingBox2D CreateMerged(BoundingBox2D original, BoundingBox2D additional)`](VRageMath.CreateMerged) Creates the smallest BoundingBox2D that contains the two specified BoundingBox2D instances.
static [`void CreateMerged(ref BoundingBox2D original, ref BoundingBox2D additional, ref BoundingBox2D result)`](VRageMath.CreateMerged) Creates the smallest BoundingBox2D that contains the two specified BoundingBox2D instances.
static [`BoundingBox2D CreateFromPoints(IEnumerable points)`](VRageMath.CreateFromPoints) Creates the smallest BoundingBox2D that will contain a group of points.
static [`BoundingBox2D CreateFromHalfExtent(Vector2D center, double halfExtent)`](VRageMath.CreateFromHalfExtent)
static [`BoundingBox2D CreateFromHalfExtent(Vector2D center, Vector2D halfExtent)`](VRageMath.CreateFromHalfExtent)
[`BoundingBox2D Intersect(BoundingBox2D box)`](VRageMath.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)
[`bool Intersects(BoundingBox2D box)`](VRageMath.Intersects) Checks whether the current BoundingBox2D intersects another BoundingBox2D.
[`bool Intersects(ref BoundingBox2D box)`](VRageMath.Intersects)
[`void Intersects(ref BoundingBox2D box, ref bool result)`](VRageMath.Intersects) Checks whether the current BoundingBox2D intersects another BoundingBox2D.
[`double Distance(Vector2D point)`](VRageMath.Distance)
[`ContainmentType Contains(BoundingBox2D box)`](VRageMath.Contains) Tests whether the BoundingBox2D contains another BoundingBox2D.
[`void Contains(ref BoundingBox2D box, ref ContainmentType result)`](VRageMath.Contains) Tests whether the BoundingBox2D contains a BoundingBox2D.
[`ContainmentType Contains(Vector2D point)`](VRageMath.Contains) Tests whether the BoundingBox2D contains a point.
[`void Contains(ref Vector2D point, ref ContainmentType result)`](VRageMath.Contains) Tests whether the BoundingBox2D contains a point.
[`BoundingBox2D Translate(Vector2D vctTranlsation)`](VRageMath.Translate) Translate
[`BoundingBox2D Include(ref Vector2D point)`](VRageMath.Include) return expanded aabb (abb include point)
[`BoundingBox2D GetIncluded(Vector2D point)`](VRageMath.GetIncluded)
[`BoundingBox2D Include(Vector2D point)`](VRageMath.Include)
[`BoundingBox2D Include(Vector2D p0, Vector2D p1, Vector2D p2)`](VRageMath.Include)
[`BoundingBox2D Include(ref Vector2D p0, ref Vector2D p1, ref Vector2D p2)`](VRageMath.Include)
[`BoundingBox2D Include(ref BoundingBox2D box)`](VRageMath.Include) return expanded aabb (abb include point)
[`BoundingBox2D Include(BoundingBox2D box)`](VRageMath.Include)
static [`BoundingBox2D CreateInvalid()`](VRageMath.CreateInvalid)
[`double Perimeter()`](VRageMath.Perimeter)
[`double Area()`](VRageMath.Area)
[`void Inflate(double size)`](VRageMath.Inflate)
[`void InflateToMinimum(Vector2D minimumSize)`](VRageMath.InflateToMinimum)
[`void Scale(Vector2D scale)`](VRageMath.Scale)

Clone this wiki locally