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
Min The minimum point the BoundingBox2D contains.
Max The maximum point the BoundingBox2D contains.
static CornerCount Specifies the total number of corners (8) in the BoundingBox2D.

Properties

Member Description
Center Calculates center
HalfExtents
Extents
Width
Height
Size Size

Methods

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

Clone this wiki locally