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

VRageMath.BoundingBox2D

Malware edited this page Dec 25, 2018 · 52 revisions

Index

BoundingBox2D Struct

public struct BoundingBox2D: ValueType, IEquatable<T>

Namespace: VRageMath
Assembly: VRage.Math.dll

**Inheritance: **ValueType

Implements:

Example

Remarks

Fields

Member Description
Min The minimum point the BoundingBox2D contains.
Max The maximum point the BoundingBox2D contains.
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.
CreateMerged(BoundingBox2D, BoundingBox2D) Creates the smallest BoundingBox2D that contains the two specified BoundingBox2D instances.
CreateMerged(ref BoundingBox2D, ref BoundingBox2D, ref BoundingBox2D) Creates the smallest BoundingBox2D that contains the two specified BoundingBox2D instances.
CreateFromPoints(IEnumerable)
CreateFromHalfExtent(Vector2D, double)
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)
CreateInvalid()
Perimeter()
Area()
Inflate(double)
InflateToMinimum(Vector2D)
Scale(Vector2D)
Clone this wiki locally