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

VRageMath.BoundingBox2I

Malware edited this page May 4, 2019 · 52 revisions

IndexNamespace Index

BoundingBox2I Struct

public struct BoundingBox2I: IEquatable<VRageMath.BoundingBox2I>

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

Namespace: VRageMath
Assembly: VRage.Math.dll

Implements:

Fields

Member Description
Min The minimum point the BoundingBox2I contains.
Max The maximum point the BoundingBox2I contains.
CornerCount Specifies the total number of corners (8) in the BoundingBox2I.

Properties

Member Description
Center Calculates center
HalfExtents
Extents
Width
Height
Size Size

Constructors

Member Description
BoundingBox2I(Vector2I, Vector2I)

Methods

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