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

VRageMath.BoundingBox2I

Morten Aune Lyrstad edited this page Apr 16, 2022 · 52 revisions

IndexNamespace Index

BoundingBox2I Struct

public struct BoundingBox2I: IEquatable<BoundingBox2I>

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

Namespace: VRageMath
Assembly: VRage.Math.dll

Implements:

Fields

Vector2I Max

The maximum point the BoundingBox2I contains.

Vector2I Min

The minimum point the BoundingBox2I contains.

Properties

Vector2I Center { get; }

Calculates center

Vector2I Extents { get; }

Vector2I HalfExtents { get; }

float Height { get; }

Vector2I Size { get; }

Size

float Width { get; }

Constructors

BoundingBox2I(Vector2I min, Vector2I max)

Methods

static BoundingBox2I CreateFromHalfExtent(Vector2I center, int halfExtent)

static BoundingBox2I CreateFromHalfExtent(Vector2I center, Vector2I halfExtent)

static BoundingBox2I CreateFromPoints(IEnumerable<Vector2I> points)

Creates the smallest BoundingBox2I that will contain a group of points.

static BoundingBox2I CreateInvalid()

static BoundingBox2I CreateMerged(BoundingBox2I original, BoundingBox2I additional)

Creates the smallest BoundingBox2I that contains the two specified BoundingBox2I instances.

static void CreateMerged(ref BoundingBox2I original, ref BoundingBox2I additional, out BoundingBox2I result)

Creates the smallest BoundingBox2I that contains the two specified BoundingBox2I instances.

float Area()

ContainmentType Contains(BoundingBox2I box)

Tests whether the BoundingBox2I contains another BoundingBox2I.

void Contains(ref BoundingBox2I box, out ContainmentType result)

Tests whether the BoundingBox2I contains a BoundingBox2I.

ContainmentType Contains(Vector2I point)

Tests whether the BoundingBox2I contains a point.

void Contains(ref Vector2I point, out ContainmentType result)

Tests whether the BoundingBox2I contains a point.

bool Equals(BoundingBox2I other)

Determines whether two instances of BoundingBox2I are equal.

bool Equals(object obj)

Determines whether two instances of BoundingBox2I are equal.

Vector2I&#91] GetCorners()

Gets an array of points that make up the corners of the BoundingBox2I.

void GetCorners(Vector2I&#91] corners)

Gets the array of points that make up the corners of the BoundingBox2I.

void GetCornersUnsafe(*Vector2I corners)

int GetHashCode()

Gets the hash code for this instance.

BoundingBox2I GetIncluded(Vector2I point)

BoundingBox2I Include(ref Vector2I point)

return expanded aabb (abb include point)

BoundingBox2I Include(Vector2I point)

BoundingBox2I Include(Vector2I p0, Vector2I p1, Vector2I p2)

BoundingBox2I Include(ref Vector2I p0, ref Vector2I p1, ref Vector2I p2)

BoundingBox2I Include(ref BoundingBox2I box)

return expanded aabb (abb include point)

BoundingBox2I Include(BoundingBox2I box)

void Inflate(int size)

void InflateToMinimum(Vector2I minimumSize)

BoundingBox2I Intersect(BoundingBox2I box)

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(BoundingBox2I box)

Checks whether the current BoundingBox2I intersects another BoundingBox2I.

bool Intersects(ref BoundingBox2I box)

void Intersects(ref BoundingBox2I box, out bool result)

Checks whether the current BoundingBox2I intersects another BoundingBox2I.

float Perimeter()

void Scale(Vector2I scale)

string ToString()

Returns a String that represents the current BoundingBox2I.

BoundingBox2I Translate(Vector2I vctTranlsation)

Translate

Clone this wiki locally