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
Vector2D Min
Vector2D Max
int CornerCount

Properties

Member Description
Vector2D Center
Vector2D HalfExtents
Vector2D Extents
double Width
double Height
Vector2D Size

Methods

Member Description
Vector2D[] GetCorners()
void GetCorners(Vector2D[] corners) Gets the array of points that make up the corners of the BoundingBox2D.
void GetCornersUnsafe(*Vector2D corners)
bool Equals(BoundingBox2D other) Determines whether two instances of BoundingBox2D are equal.
bool Equals(Object obj) Determines whether two instances of BoundingBox2D are equal.
int GetHashCode()
string ToString()
BoundingBox2D CreateMerged(BoundingBox2D original, BoundingBox2D additional)
void CreateMerged(ref BoundingBox2D original, ref BoundingBox2D additional, ref BoundingBox2D result)
BoundingBox2D CreateFromPoints(IEnumerable<Vector2D> points) Creates the smallest BoundingBox2D that will contain a group of points.
BoundingBox2D CreateFromHalfExtent(Vector2D center, double halfExtent)
BoundingBox2D CreateFromHalfExtent(Vector2D center, Vector2D halfExtent)
BoundingBox2D Intersect(BoundingBox2D 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(BoundingBox2D box) Checks whether the current BoundingBox2D intersects another BoundingBox2D.
bool Intersects(ref BoundingBox2D box)
void Intersects(ref BoundingBox2D box, ref bool result)
double Distance(Vector2D point)
ContainmentType Contains(BoundingBox2D box) Tests whether the BoundingBox2D contains another BoundingBox2D.
void Contains(ref BoundingBox2D box, ref ContainmentType result)
ContainmentType Contains(Vector2D point) Tests whether the BoundingBox2D contains a point.
void Contains(ref Vector2D point, ref ContainmentType result)
BoundingBox2D Translate(Vector2D vctTranlsation) Translate
BoundingBox2D Include(ref Vector2D point)
BoundingBox2D GetIncluded(Vector2D point)
BoundingBox2D Include(Vector2D point)
BoundingBox2D Include(Vector2D p0, Vector2D p1, Vector2D p2)
BoundingBox2D Include(ref Vector2D p0, ref Vector2D p1, ref Vector2D p2)
BoundingBox2D Include(ref BoundingBox2D box)
BoundingBox2D Include(BoundingBox2D box)
BoundingBox2D CreateInvalid()
double Perimeter()
double Area()
void Inflate(double size)
void InflateToMinimum(Vector2D minimumSize)
void Scale(Vector2D scale)

Clone this wiki locally