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

VRageMath.BoundingBox2

Morten Aune Lyrstad edited this page Feb 3, 2022 · 52 revisions

IndexNamespace Index

BoundingBox2 Struct

public struct BoundingBox2: IEquatable<VRageMath.BoundingBox2>

Defines an axis-aligned box-shaped 3D volume.

Namespace: VRageMath
Assembly: VRage.Math.dll

Implements:

Fields

Member Description
Min The minimum point the BoundingBox2 contains.
Max The maximum point the BoundingBox2 contains.

Properties

Member Description
Center { get; } Calculates center
HalfExtents { get; }
Extents { get; }
Width { get; }
Height { get; }
Size { get; } Size

Constructors

Member Description
BoundingBox2(Vector2, Vector2)

Methods

Member Description
GetCorners() Gets an array of points that make up the corners of the BoundingBox2.
GetCorners(Vector2[]) Gets the array of points that make up the corners of the BoundingBox2.
GetCornersUnsafe(*Vector2)
Equals(BoundingBox2) Determines whether two instances of BoundingBox2 are equal.
Equals(object) Determines whether two instances of BoundingBox2 are equal.
GetHashCode() Gets the hash code for this instance.
ToString() Returns a String that represents the current BoundingBox2.
CreateMerged(BoundingBox2, BoundingBox2) Creates the smallest BoundingBox2 that contains the two specified BoundingBox2 instances.
CreateMerged(ref BoundingBox2, ref BoundingBox2, out BoundingBox2) Creates the smallest BoundingBox2 that contains the two specified BoundingBox2 instances.
CreateFromPoints(IEnumerable) Creates the smallest BoundingBox2 that will contain a group of points.
CreateFromHalfExtent(Vector2, float)
CreateFromHalfExtent(Vector2, Vector2)
Intersect(BoundingBox2) Returns bounding box which is intersection of this and box Result is invalid box when there's no intersection (Min > Max)
Intersects(BoundingBox2) Checks whether the current BoundingBox2 intersects another BoundingBox2.
Intersects(ref BoundingBox2)
Intersects(ref BoundingBox2, out bool) Checks whether the current BoundingBox2 intersects another BoundingBox2.
Distance(Vector2)
Contains(BoundingBox2) Tests whether the BoundingBox2 contains another BoundingBox2.
Contains(ref BoundingBox2, out ContainmentType) Tests whether the BoundingBox2 contains a BoundingBox2.
Contains(Vector2) Tests whether the BoundingBox2 contains a point.
Contains(ref Vector2, out ContainmentType) Tests whether the BoundingBox2 contains a point.
Translate(Vector2) Translate
Include(ref Vector2) return expanded aabb (abb include point)
GetIncluded(Vector2)
Include(Vector2)
Include(Vector2, Vector2, Vector2)
Include(ref Vector2, ref Vector2, ref Vector2)
Include(ref BoundingBox2) return expanded aabb (abb include point)
Include(BoundingBox2)
CreateInvalid()
Perimeter()
Area()
Inflate(float)
InflateToMinimum(Vector2)
Scale(Vector2)
Clone this wiki locally