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

VRageMath.BoundingBoxD

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

IndexNamespace Index

BoundingBoxD Struct

public struct BoundingBoxD: IEquatable<BoundingBoxD>

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

Namespace: VRageMath
Assembly: VRage.Math.dll

Implements:

Fields

Member Description
\static ComparerType Comparer
\Vector3D Max The maximum point the BoundingBox contains.
\Vector3D Min The minimum point the BoundingBox contains.

Properties

Member Description
\Vector3D Center { get; } Calculates center
\Vector3D Extents { get; }
\Vector3D HalfExtents { get; }
\MatrixD Matrix { get; } Matrix of AABB, respecting center and size
\double Perimeter { get; } return perimeter of edges
\Vector3D Size { get; } Size
\double SurfaceArea { get; }
\bool Valid { get; }
\double Volume { get; }

Constructors

Member Description
\BoundingBoxD(Vector3D, Vector3D)

Methods

Member Description
\static BoundingBoxD CreateFromPoints(IEnumerable\) Creates the smallest BoundingBox that will contain a group of points.
\static BoundingBoxD CreateFromSphere(BoundingSphereD) Creates the smallest BoundingBox that will contain the specified BoundingSphere.
\static void CreateFromSphere(ref BoundingSphereD, out BoundingBoxD) Creates the smallest BoundingBox that will contain the specified BoundingSphere.
\static BoundingBoxD CreateInvalid()
\static BoundingBoxD CreateMerged(BoundingBoxD, BoundingBoxD) Creates the smallest BoundingBox that contains the two specified BoundingBox instances.
\static void CreateMerged(ref BoundingBoxD, ref BoundingBoxD, out BoundingBoxD) Creates the smallest BoundingBox that contains the two specified BoundingBox instances.
\void AssertIsValid()
\void Centerize(Vector3D)
\ContainmentType Contains(BoundingBoxD) Tests whether the BoundingBox contains another BoundingBox.
\void Contains(ref BoundingBoxD, out ContainmentType) Tests whether the BoundingBox contains a BoundingBox.
\ContainmentType Contains(BoundingFrustumD) Tests whether the BoundingBox contains a BoundingFrustum.
\ContainmentType Contains(Vector3D) Tests whether the BoundingBox contains a point.
\void Contains(ref Vector3D, out ContainmentType) Tests whether the BoundingBox contains a point.
\ContainmentType Contains(BoundingSphereD) Tests whether the BoundingBox contains a BoundingSphere.
\void Contains(ref BoundingSphereD, out ContainmentType) Tests whether the BoundingBox contains a BoundingSphere.
\double Distance(Vector3D)
\double Distance(ref BoundingBoxD)
\double DistanceSquared(Vector3D)
\double DistanceSquared(ref Vector3D)
\double DistanceSquared(ref BoundingBoxD)
\bool Equals(BoundingBoxD) Determines whether two instances of BoundingBox are equal.
\bool Equals(object) Determines whether two instances of BoundingBox are equal.
\bool Equals(BoundingBoxD, double)
\Vector3D\[] GetCorners() Gets an array of points that make up the corners of the BoundingBox. ALLOCATION!
\void GetCorners(Vector3D\[]) Gets the array of points that make up the corners of the BoundingBox.
\void GetCornersUnsafe(*Vector3D)
\int GetHashCode() Gets the hash code for this instance.
\BoundingBoxD GetInflated(double)
\BoundingBoxD GetInflated(Vector3)
\BoundingBoxD GetInflated(Vector3D)
\BoundingBoxD Include(ref Vector3D) return expanded aabb (aabb include point)
\BoundingBoxD Include(Vector3D)
\BoundingBoxD Include(Vector3D, Vector3D, Vector3D)
\BoundingBoxD Include(ref Vector3D, ref Vector3D, ref Vector3D)
\BoundingBoxD Include(ref BoundingBoxD) return expanded aabb (aabb include aabb)
\BoundingBoxD Include(BoundingBoxD)
\void Include(ref LineD)
\BoundingBoxD Include(BoundingSphereD)
\BoundingBoxD Include(ref BoundingSphereD)
\BoundingBoxD Include(ref BoundingFrustumD)
\BoundingBoxD Inflate(double)
\BoundingBoxD Inflate(Vector3D)
\void InflateToMinimum(Vector3D)
\void InflateToMinimum(double)
\BoundingBoxD Intersect(BoundingBoxD) Returns bounding box which is intersection of this and box Result is invalid box when there's no intersection (Min > Max)
\bool Intersect(ref LineD, out LineD)
\bool Intersect(ref LineD, out double, out double)
\bool Intersect(ref RayD, out double, out double)
\bool Intersects(BoundingBoxD) Checks whether the current BoundingBox intersects another BoundingBox.
\bool Intersects(ref BoundingBoxD)
\void Intersects(ref BoundingBoxD, out bool) Checks whether the current BoundingBox intersects another BoundingBox.
\void Intersects(ref BoundingBox, out bool)
\bool Intersects(BoundingFrustumD) Checks whether the current BoundingBox intersects a BoundingFrustum.
\PlaneIntersectionType Intersects(PlaneD) Checks whether the current BoundingBox intersects a Plane.
\void Intersects(ref PlaneD, out PlaneIntersectionType) Checks whether the current BoundingBox intersects a Plane.
\bool Intersects(ref LineD)
\bool Intersects(ref LineD, out double)
\double? Intersects(Ray)
\double? Intersects(RayD) Checks whether the current BoundingBox intersects a Ray.
\void Intersects(ref RayD, out double?) Checks whether the current BoundingBox intersects a Ray.
\bool Intersects(BoundingSphereD) Checks whether the current BoundingBox intersects a BoundingSphere.
\void Intersects(ref BoundingSphereD, out bool) Checks whether the current BoundingBox intersects a BoundingSphere.
\bool Intersects(ref BoundingSphereD)
\bool IntersectsTriangle(Vector3D, Vector3D, Vector3D)
\bool IntersectsTriangle(ref Vector3D, ref Vector3D, ref Vector3D)
\double ProjectedArea(Vector3D)
\BoundingBoxD Round(int)
\BoundingBoxI Round()
\string ToString() Returns a String that represents the current BoundingBox.
\BoundingBoxD TransformFast(MatrixD) Transform this AABB by matrix. Matrix has to be only rotation and translation.
\BoundingBoxD TransformFast(ref MatrixD) Transform this AABB by matrix. Matrix has to be only rotation and translation.
\void TransformFast(ref MatrixD, ref BoundingBoxD) Transform this AABB by matrix. Matrix has to be only rotation and translation.
\BoundingBoxD TransformSlow(MatrixD) Transform this AABB by matrix.
\BoundingBoxD TransformSlow(ref MatrixD) Transform this AABB by matrix.
\BoundingBoxD Translate(MatrixD) Translate
\BoundingBoxD Translate(Vector3D) Translate
Clone this wiki locally