Space Engineers
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
VRageMath.BoundingBoxD Struct Reference

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

Inheritance diagram for VRageMath.BoundingBoxD:

Classes

class  ComparerType
 

Public Member Functions

 BoundingBoxD (Vector3D min, Vector3D max)
 Creates an instance of BoundingBox. More...
 
Vector3D[] GetCorners ()
 Gets an array of points that make up the corners of the BoundingBox. ALLOCATION! More...
 
void GetCorners (Vector3D[] corners)
 Gets the array of points that make up the corners of the BoundingBox. More...
 
unsafe void GetCornersUnsafe (Vector3D *corners)
 Gets the array of points that make up the corners of the BoundingBox. More...
 
bool Equals (BoundingBoxD other)
 Determines whether two instances of BoundingBox are equal. More...
 
override bool Equals (object obj)
 Determines whether two instances of BoundingBox are equal. More...
 
override int GetHashCode ()
 Gets the hash code for this instance. More...
 
override string ToString ()
 Returns a String that represents the current BoundingBox. More...
 
BoundingBoxD Intersect (BoundingBoxD 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) More...
 
bool Intersects (BoundingBoxD box)
 Checks whether the current BoundingBox intersects another BoundingBox. More...
 
bool Intersects (ref BoundingBoxD box)
 
void Intersects (ref BoundingBoxD box, out bool result)
 Checks whether the current BoundingBox intersects another BoundingBox. More...
 
void Intersects (ref BoundingBox box, out bool result)
 
bool IntersectsTriangle (Vector3D v0, Vector3D v1, Vector3D v2)
 
bool IntersectsTriangle (ref Vector3D v0, ref Vector3D v1, ref Vector3D v2)
 
bool Intersects (BoundingFrustumD frustum)
 Checks whether the current BoundingBox intersects a BoundingFrustum. More...
 
PlaneIntersectionType Intersects (PlaneD plane)
 Checks whether the current BoundingBox intersects a Plane. More...
 
void Intersects (ref PlaneD plane, out PlaneIntersectionType result)
 Checks whether the current BoundingBox intersects a Plane. More...
 
bool Intersects (ref LineD line)
 
bool Intersects (ref LineD line, out double distance)
 
double Intersects (Ray ray)
 
double Intersects (RayD ray)
 Checks whether the current BoundingBox intersects a Ray. More...
 
void Intersects (ref RayD ray, out double?result)
 Checks whether the current BoundingBox intersects a Ray. More...
 
bool Intersect (ref LineD line, out LineD intersectedLine)
 
bool Intersect (ref LineD line, out double t1, out double t2)
 
bool Intersect (ref RayD ray, out double tmin, out double tmax)
 
bool Intersects (BoundingSphereD sphere)
 Checks whether the current BoundingBox intersects a BoundingSphere. More...
 
void Intersects (ref BoundingSphereD sphere, out bool result)
 Checks whether the current BoundingBox intersects a BoundingSphere. More...
 
bool Intersects (ref BoundingSphereD sphere)
 
double Distance (Vector3D point)
 
double DistanceSquared (Vector3D point)
 
ContainmentType Contains (BoundingBoxD box)
 Tests whether the BoundingBox contains another BoundingBox. More...
 
void Contains (ref BoundingBoxD box, out ContainmentType result)
 Tests whether the BoundingBox contains a BoundingBox. More...
 
ContainmentType Contains (BoundingFrustumD frustum)
 Tests whether the BoundingBox contains a BoundingFrustum. More...
 
ContainmentType Contains (Vector3D point)
 Tests whether the BoundingBox contains a point. More...
 
void Contains (ref Vector3D point, out ContainmentType result)
 Tests whether the BoundingBox contains a point. More...
 
ContainmentType Contains (BoundingSphereD sphere)
 Tests whether the BoundingBox contains a BoundingSphere. More...
 
void Contains (ref BoundingSphereD sphere, out ContainmentType result)
 Tests whether the BoundingBox contains a BoundingSphere. More...
 
BoundingBoxD Translate (MatrixD worldMatrix)
 Translate More...
 
BoundingBoxD Translate (Vector3D vctTranlsation)
 Translate More...
 
unsafe BoundingBoxD TransformSlow (MatrixD m)
 Transform this AABB by matrix. More...
 
unsafe BoundingBoxD TransformSlow (ref MatrixD worldMatrix)
 Transform this AABB by matrix. More...
 
BoundingBoxD TransformFast (MatrixD m)
 Transform this AABB by matrix. Matrix has to be only rotation and translation. More...
 
BoundingBoxD TransformFast (ref MatrixD m)
 Transform this AABB by matrix. Matrix has to be only rotation and translation. More...
 
void TransformFast (ref MatrixD m, ref BoundingBoxD bb)
 Transform this AABB by matrix. Matrix has to be only rotation and translation. More...
 
BoundingBoxD Include (ref Vector3D point)
 return expanded aabb (aabb include point) More...
 
BoundingBoxD Include (Vector3D point)
 
BoundingBoxD Include (Vector3D p0, Vector3D p1, Vector3D p2)
 
BoundingBoxD Include (ref Vector3D p0, ref Vector3D p1, ref Vector3D p2)
 
BoundingBoxD Include (ref BoundingBoxD box)
 return expanded aabb (aabb include aabb) More...
 
BoundingBoxD Include (BoundingBoxD box)
 
void Include (ref LineD line)
 
BoundingBoxD Include (BoundingSphereD sphere)
 
BoundingBoxD Include (ref BoundingSphereD sphere)
 
unsafe BoundingBoxD Include (ref BoundingFrustumD frustum)
 
double ProjectedArea (Vector3D viewDir)
 
BoundingBoxD Inflate (double size)
 
BoundingBoxD Inflate (Vector3 size)
 
BoundingBoxD GetInflated (double size)
 
BoundingBoxD GetInflated (Vector3 size)
 
void InflateToMinimum (Vector3D minimumSize)
 
void InflateToMinimum (double minimumSize)
 
void AssertIsValid ()
 

Static Public Member Functions

static bool operator== (BoundingBoxD a, BoundingBoxD b)
 Determines whether two instances of BoundingBox are equal. More...
 
static bool operator!= (BoundingBoxD a, BoundingBoxD b)
 Determines whether two instances of BoundingBox are not equal. More...
 
static BoundingBoxD operator+ (BoundingBoxD a, Vector3D b)
 
static BoundingBoxD CreateMerged (BoundingBoxD original, BoundingBoxD additional)
 Creates the smallest BoundingBox that contains the two specified BoundingBox instances. More...
 
static void CreateMerged (ref BoundingBoxD original, ref BoundingBoxD additional, out BoundingBoxD result)
 Creates the smallest BoundingBox that contains the two specified BoundingBox instances. More...
 
static BoundingBoxD CreateFromSphere (BoundingSphereD sphere)
 Creates the smallest BoundingBox that will contain the specified BoundingSphere. More...
 
static void CreateFromSphere (ref BoundingSphereD sphere, out BoundingBoxD result)
 Creates the smallest BoundingBox that will contain the specified BoundingSphere. More...
 
static BoundingBoxD CreateFromPoints (IEnumerable< Vector3D > points)
 Creates the smallest BoundingBox that will contain a group of points. More...
 
static BoundingBoxD CreateInvalid ()
 
static operator BoundingBoxD (BoundingBox b)
 
static operator BoundingBox (BoundingBoxD b)
 

Public Attributes

const int CornerCount = 8
 Specifies the total number of corners (8) in the BoundingBox. More...
 
Vector3D Min
 The minimum point the BoundingBox contains. More...
 
Vector3D Max
 The maximum point the BoundingBox contains. More...
 

Static Public Attributes

static readonly ComparerType Comparer = new ComparerType()
 

Properties

Vector3D Center [get]
 Calculates center More...
 
Vector3D HalfExtents [get]
 
Vector3D Extents [get]
 
Vector3D Size [get]
 Size More...
 
MatrixD Matrix [get]
 Matrix of AABB, respection center and size More...
 
double SurfaceArea [get]
 
double Volume [get]
 
double Perimeter [get]
 return perimeter of edges More...
 
bool Valid [get]
 

Detailed Description

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

Definition at line 13 of file BoundingBoxD.cs.

Constructor & Destructor Documentation

VRageMath.BoundingBoxD.BoundingBoxD ( Vector3D  min,
Vector3D  max 
)
inline

Creates an instance of BoundingBox.

Parameters
minThe minimum point the BoundingBox includes.
maxThe maximum point the BoundingBox includes.

Definition at line 34 of file BoundingBoxD.cs.

Member Function Documentation

void VRageMath.BoundingBoxD.AssertIsValid ( )
inline

Definition at line 1291 of file BoundingBoxD.cs.

ContainmentType VRageMath.BoundingBoxD.Contains ( BoundingBoxD  box)
inline

Tests whether the BoundingBox contains another BoundingBox.

Parameters
boxThe BoundingBox to test for overlap.

Definition at line 806 of file BoundingBoxD.cs.

void VRageMath.BoundingBoxD.Contains ( ref BoundingBoxD  box,
out ContainmentType  result 
)
inline

Tests whether the BoundingBox contains a BoundingBox.

Parameters
boxThe BoundingBox to test for overlap.
result[OutAttribute] Enumeration indicating the extent of overlap.

Definition at line 817 of file BoundingBoxD.cs.

ContainmentType VRageMath.BoundingBoxD.Contains ( BoundingFrustumD  frustum)
inline

Tests whether the BoundingBox contains a BoundingFrustum.

Parameters
frustumThe BoundingFrustum to test for overlap.

Definition at line 829 of file BoundingBoxD.cs.

ContainmentType VRageMath.BoundingBoxD.Contains ( Vector3D  point)
inline

Tests whether the BoundingBox contains a point.

Parameters
pointThe point to test for overlap.

Definition at line 845 of file BoundingBoxD.cs.

void VRageMath.BoundingBoxD.Contains ( ref Vector3D  point,
out ContainmentType  result 
)
inline

Tests whether the BoundingBox contains a point.

Parameters
pointThe point to test for overlap.
result[OutAttribute] Enumeration indicating the extent of overlap.

Definition at line 854 of file BoundingBoxD.cs.

ContainmentType VRageMath.BoundingBoxD.Contains ( BoundingSphereD  sphere)
inline

Tests whether the BoundingBox contains a BoundingSphere.

Parameters
sphereThe BoundingSphere to test for overlap.

Definition at line 863 of file BoundingBoxD.cs.

void VRageMath.BoundingBoxD.Contains ( ref BoundingSphereD  sphere,
out ContainmentType  result 
)
inline

Tests whether the BoundingBox contains a BoundingSphere.

Parameters
sphereThe BoundingSphere to test for overlap.
result[OutAttribute] Enumeration indicating the extent of overlap.

Definition at line 879 of file BoundingBoxD.cs.

static BoundingBoxD VRageMath.BoundingBoxD.CreateFromPoints ( IEnumerable< Vector3D points)
inlinestatic

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

Parameters
pointsA list of points the BoundingBox should contain.

Definition at line 256 of file BoundingBoxD.cs.

static BoundingBoxD VRageMath.BoundingBoxD.CreateFromSphere ( BoundingSphereD  sphere)
inlinestatic

Creates the smallest BoundingBox that will contain the specified BoundingSphere.

Parameters
sphereThe BoundingSphere to contain.

Definition at line 226 of file BoundingBoxD.cs.

static void VRageMath.BoundingBoxD.CreateFromSphere ( ref BoundingSphereD  sphere,
out BoundingBoxD  result 
)
inlinestatic

Creates the smallest BoundingBox that will contain the specified BoundingSphere.

Parameters
sphereThe BoundingSphere to contain.
result[OutAttribute] The created BoundingBox.

Definition at line 242 of file BoundingBoxD.cs.

static BoundingBoxD VRageMath.BoundingBoxD.CreateInvalid ( )
inlinestatic

Definition at line 1139 of file BoundingBoxD.cs.

static BoundingBoxD VRageMath.BoundingBoxD.CreateMerged ( BoundingBoxD  original,
BoundingBoxD  additional 
)
inlinestatic

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

Parameters
originalOne of the BoundingBoxs to contain.
additionalOne of the BoundingBoxs to contain.

Definition at line 200 of file BoundingBoxD.cs.

static void VRageMath.BoundingBoxD.CreateMerged ( ref BoundingBoxD  original,
ref BoundingBoxD  additional,
out BoundingBoxD  result 
)
inlinestatic

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

Parameters
originalOne of the BoundingBox instances to contain.
additionalOne of the BoundingBox instances to contain.
result[OutAttribute] The created BoundingBox.

Definition at line 212 of file BoundingBoxD.cs.

double VRageMath.BoundingBoxD.Distance ( Vector3D  point)
inline

Definition at line 784 of file BoundingBoxD.cs.

double VRageMath.BoundingBoxD.DistanceSquared ( Vector3D  point)
inline

Definition at line 793 of file BoundingBoxD.cs.

bool VRageMath.BoundingBoxD.Equals ( BoundingBoxD  other)
inline

Determines whether two instances of BoundingBox are equal.

Parameters
otherThe BoundingBox to compare with the current BoundingBox.

Definition at line 156 of file BoundingBoxD.cs.

override bool VRageMath.BoundingBoxD.Equals ( object  obj)
inline

Determines whether two instances of BoundingBox are equal.

Parameters
objThe Object to compare with the current BoundingBox.

Definition at line 168 of file BoundingBoxD.cs.

Vector3D [] VRageMath.BoundingBoxD.GetCorners ( )
inline

Gets an array of points that make up the corners of the BoundingBox. ALLOCATION!

Definition at line 73 of file BoundingBoxD.cs.

void VRageMath.BoundingBoxD.GetCorners ( Vector3D[]  corners)
inline

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

Parameters
cornersAn existing array of at least 8 Vector3 points where the corners of the BoundingBox are written.

Definition at line 92 of file BoundingBoxD.cs.

unsafe void VRageMath.BoundingBoxD.GetCornersUnsafe ( Vector3D corners)
inline

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

Parameters
cornersAn existing array of at least 8 Vector3 points where the corners of the BoundingBox are written.

Definition at line 125 of file BoundingBoxD.cs.

override int VRageMath.BoundingBoxD.GetHashCode ( )
inline

Gets the hash code for this instance.

Definition at line 179 of file BoundingBoxD.cs.

BoundingBoxD VRageMath.BoundingBoxD.GetInflated ( double  size)
inline

Definition at line 1207 of file BoundingBoxD.cs.

BoundingBoxD VRageMath.BoundingBoxD.GetInflated ( Vector3  size)
inline

Definition at line 1214 of file BoundingBoxD.cs.

BoundingBoxD VRageMath.BoundingBoxD.Include ( ref Vector3D  point)
inline

return expanded aabb (aabb include point)

Parameters
point
Returns

Definition at line 1047 of file BoundingBoxD.cs.

BoundingBoxD VRageMath.BoundingBoxD.Include ( Vector3D  point)
inline

Definition at line 1059 of file BoundingBoxD.cs.

BoundingBoxD VRageMath.BoundingBoxD.Include ( Vector3D  p0,
Vector3D  p1,
Vector3D  p2 
)
inline

Definition at line 1064 of file BoundingBoxD.cs.

BoundingBoxD VRageMath.BoundingBoxD.Include ( ref Vector3D  p0,
ref Vector3D  p1,
ref Vector3D  p2 
)
inline

Definition at line 1069 of file BoundingBoxD.cs.

BoundingBoxD VRageMath.BoundingBoxD.Include ( ref BoundingBoxD  box)
inline

return expanded aabb (aabb include aabb)

Parameters
box
Returns

Definition at line 1083 of file BoundingBoxD.cs.

BoundingBoxD VRageMath.BoundingBoxD.Include ( BoundingBoxD  box)
inline

Definition at line 1089 of file BoundingBoxD.cs.

void VRageMath.BoundingBoxD.Include ( ref LineD  line)
inline

Definition at line 1094 of file BoundingBoxD.cs.

BoundingBoxD VRageMath.BoundingBoxD.Include ( BoundingSphereD  sphere)
inline

Definition at line 1101 of file BoundingBoxD.cs.

BoundingBoxD VRageMath.BoundingBoxD.Include ( ref BoundingSphereD  sphere)
inline

Definition at line 1106 of file BoundingBoxD.cs.

unsafe BoundingBoxD VRageMath.BoundingBoxD.Include ( ref BoundingFrustumD  frustum)
inline

Definition at line 1121 of file BoundingBoxD.cs.

BoundingBoxD VRageMath.BoundingBoxD.Inflate ( double  size)
inline

Definition at line 1193 of file BoundingBoxD.cs.

BoundingBoxD VRageMath.BoundingBoxD.Inflate ( Vector3  size)
inline

Definition at line 1200 of file BoundingBoxD.cs.

void VRageMath.BoundingBoxD.InflateToMinimum ( Vector3D  minimumSize)
inline

Definition at line 1250 of file BoundingBoxD.cs.

void VRageMath.BoundingBoxD.InflateToMinimum ( double  minimumSize)
inline

Definition at line 1270 of file BoundingBoxD.cs.

BoundingBoxD VRageMath.BoundingBoxD.Intersect ( BoundingBoxD  box)
inline

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)

Definition at line 281 of file BoundingBoxD.cs.

bool VRageMath.BoundingBoxD.Intersect ( ref LineD  line,
out LineD  intersectedLine 
)
inline

Definition at line 692 of file BoundingBoxD.cs.

bool VRageMath.BoundingBoxD.Intersect ( ref LineD  line,
out double  t1,
out double  t2 
)
inline

Definition at line 714 of file BoundingBoxD.cs.

bool VRageMath.BoundingBoxD.Intersect ( ref RayD  ray,
out double  tmin,
out double  tmax 
)
inline

Definition at line 720 of file BoundingBoxD.cs.

bool VRageMath.BoundingBoxD.Intersects ( BoundingBoxD  box)
inline

Checks whether the current BoundingBox intersects another BoundingBox.

Parameters
boxThe BoundingBox to check for intersection with.

Definition at line 297 of file BoundingBoxD.cs.

bool VRageMath.BoundingBoxD.Intersects ( ref BoundingBoxD  box)
inline

Definition at line 302 of file BoundingBoxD.cs.

void VRageMath.BoundingBoxD.Intersects ( ref BoundingBoxD  box,
out bool  result 
)
inline

Checks whether the current BoundingBox intersects another BoundingBox.

Parameters
boxThe BoundingBox to check for intersection with.
result[OutAttribute] true if the BoundingBox instances intersect; false otherwise.

Definition at line 311 of file BoundingBoxD.cs.

void VRageMath.BoundingBoxD.Intersects ( ref BoundingBox  box,
out bool  result 
)
inline

Definition at line 318 of file BoundingBoxD.cs.

bool VRageMath.BoundingBoxD.Intersects ( BoundingFrustumD  frustum)
inline

Checks whether the current BoundingBox intersects a BoundingFrustum.

Parameters
frustumThe BoundingFrustum to check for intersection with.

Definition at line 455 of file BoundingBoxD.cs.

PlaneIntersectionType VRageMath.BoundingBoxD.Intersects ( PlaneD  plane)
inline

Checks whether the current BoundingBox intersects a Plane.

Parameters
planeThe Plane to check for intersection with.

Definition at line 467 of file BoundingBoxD.cs.

void VRageMath.BoundingBoxD.Intersects ( ref PlaneD  plane,
out PlaneIntersectionType  result 
)
inline

Checks whether the current BoundingBox intersects a Plane.

Parameters
planeThe Plane to check for intersection with.
result[OutAttribute] An enumeration indicating whether the BoundingBox intersects the Plane.

Definition at line 486 of file BoundingBoxD.cs.

bool VRageMath.BoundingBoxD.Intersects ( ref LineD  line)
inline

Definition at line 505 of file BoundingBoxD.cs.

bool VRageMath.BoundingBoxD.Intersects ( ref LineD  line,
out double  distance 
)
inline

Definition at line 520 of file BoundingBoxD.cs.

double VRageMath.BoundingBoxD.Intersects ( Ray  ray)
inline

Definition at line 538 of file BoundingBoxD.cs.

double VRageMath.BoundingBoxD.Intersects ( RayD  ray)
inline

Checks whether the current BoundingBox intersects a Ray.

Parameters
rayThe Ray to check for intersection with.

Definition at line 547 of file BoundingBoxD.cs.

void VRageMath.BoundingBoxD.Intersects ( ref RayD  ray,
out double?  result 
)
inline

Checks whether the current BoundingBox intersects a Ray.

Parameters
rayThe Ray to check for intersection with.
result[OutAttribute] Distance at which the ray intersects the BoundingBox, or null if there is no intersection.

Definition at line 621 of file BoundingBoxD.cs.

bool VRageMath.BoundingBoxD.Intersects ( BoundingSphereD  sphere)
inline

Checks whether the current BoundingBox intersects a BoundingSphere.

Parameters
sphereThe BoundingSphere to check for intersection with.

Definition at line 757 of file BoundingBoxD.cs.

void VRageMath.BoundingBoxD.Intersects ( ref BoundingSphereD  sphere,
out bool  result 
)
inline

Checks whether the current BoundingBox intersects a BoundingSphere.

Parameters
sphereThe BoundingSphere to check for intersection with.
result[OutAttribute] true if the BoundingBox and BoundingSphere intersect; false otherwise.

Definition at line 766 of file BoundingBoxD.cs.

bool VRageMath.BoundingBoxD.Intersects ( ref BoundingSphereD  sphere)
inline

Definition at line 775 of file BoundingBoxD.cs.

bool VRageMath.BoundingBoxD.IntersectsTriangle ( Vector3D  v0,
Vector3D  v1,
Vector3D  v2 
)
inline

Definition at line 326 of file BoundingBoxD.cs.

bool VRageMath.BoundingBoxD.IntersectsTriangle ( ref Vector3D  v0,
ref Vector3D  v1,
ref Vector3D  v2 
)
inline

Definition at line 331 of file BoundingBoxD.cs.

static VRageMath.BoundingBoxD.operator BoundingBox ( BoundingBoxD  b)
inlineexplicitstatic

Definition at line 1226 of file BoundingBoxD.cs.

static VRageMath.BoundingBoxD.operator BoundingBoxD ( BoundingBox  b)
inlineexplicitstatic

Definition at line 1221 of file BoundingBoxD.cs.

static bool VRageMath.BoundingBoxD.operator!= ( BoundingBoxD  a,
BoundingBoxD  b 
)
inlinestatic

Determines whether two instances of BoundingBox are not equal.

Parameters
aThe object to the left of the inequality operator.
bThe object to the right of the inequality operator.

Definition at line 53 of file BoundingBoxD.cs.

static BoundingBoxD VRageMath.BoundingBoxD.operator+ ( BoundingBoxD  a,
Vector3D  b 
)
inlinestatic

Definition at line 61 of file BoundingBoxD.cs.

static bool VRageMath.BoundingBoxD.operator== ( BoundingBoxD  a,
BoundingBoxD  b 
)
inlinestatic

Determines whether two instances of BoundingBox are equal.

Parameters
aBoundingBox to compare.
bBoundingBox to compare.

Definition at line 44 of file BoundingBoxD.cs.

double VRageMath.BoundingBoxD.ProjectedArea ( Vector3D  viewDir)
inline

Definition at line 1162 of file BoundingBoxD.cs.

override string VRageMath.BoundingBoxD.ToString ( )
inline

Returns a String that represents the current BoundingBox.

Definition at line 187 of file BoundingBoxD.cs.

BoundingBoxD VRageMath.BoundingBoxD.TransformFast ( MatrixD  m)
inline

Transform this AABB by matrix. Matrix has to be only rotation and translation.

Parameters
mtransformation matrix
Returns
transformed aabb

Definition at line 990 of file BoundingBoxD.cs.

BoundingBoxD VRageMath.BoundingBoxD.TransformFast ( ref MatrixD  m)
inline

Transform this AABB by matrix. Matrix has to be only rotation and translation.

Parameters
mtransformation matrix
Returns
transformed aabb

Definition at line 1002 of file BoundingBoxD.cs.

void VRageMath.BoundingBoxD.TransformFast ( ref MatrixD  m,
ref BoundingBoxD  bb 
)
inline

Transform this AABB by matrix. Matrix has to be only rotation and translation.

Parameters
mtransformation matrix
bboutput transformed aabb

Definition at line 1014 of file BoundingBoxD.cs.

unsafe BoundingBoxD VRageMath.BoundingBoxD.TransformSlow ( MatrixD  m)
inline

Transform this AABB by matrix.

Parameters
mtransformation matrix
Returns
transformed aabb

Definition at line 958 of file BoundingBoxD.cs.

unsafe BoundingBoxD VRageMath.BoundingBoxD.TransformSlow ( ref MatrixD  worldMatrix)
inline

Transform this AABB by matrix.

Parameters
mtransformation matrix
Returns
transformed aabb

Definition at line 968 of file BoundingBoxD.cs.

BoundingBoxD VRageMath.BoundingBoxD.Translate ( MatrixD  worldMatrix)
inline

Translate

Parameters
worldMatrix
Returns

Definition at line 904 of file BoundingBoxD.cs.

BoundingBoxD VRageMath.BoundingBoxD.Translate ( Vector3D  vctTranlsation)
inline

Translate

Parameters
vctTranlsation
Returns

Definition at line 917 of file BoundingBoxD.cs.

Member Data Documentation

readonly ComparerType VRageMath.BoundingBoxD.Comparer = new ComparerType()
static

Definition at line 1246 of file BoundingBoxD.cs.

const int VRageMath.BoundingBoxD.CornerCount = 8

Specifies the total number of corners (8) in the BoundingBox.

Definition at line 18 of file BoundingBoxD.cs.

Vector3D VRageMath.BoundingBoxD.Max

The maximum point the BoundingBox contains.

Definition at line 28 of file BoundingBoxD.cs.

Vector3D VRageMath.BoundingBoxD.Min

The minimum point the BoundingBox contains.

Definition at line 23 of file BoundingBoxD.cs.

Property Documentation

Vector3D VRageMath.BoundingBoxD.Center
get

Calculates center

Definition at line 437 of file BoundingBoxD.cs.

Vector3D VRageMath.BoundingBoxD.Extents
get

Definition at line 447 of file BoundingBoxD.cs.

Vector3D VRageMath.BoundingBoxD.HalfExtents
get

Definition at line 442 of file BoundingBoxD.cs.

MatrixD VRageMath.BoundingBoxD.Matrix
get

Matrix of AABB, respection center and size

Definition at line 940 of file BoundingBoxD.cs.

double VRageMath.BoundingBoxD.Perimeter
get

return perimeter of edges

Returns

Definition at line 1174 of file BoundingBoxD.cs.

Vector3D VRageMath.BoundingBoxD.Size
get

Size

Returns

Definition at line 929 of file BoundingBoxD.cs.

double VRageMath.BoundingBoxD.SurfaceArea
get

Definition at line 1145 of file BoundingBoxD.cs.

bool VRageMath.BoundingBoxD.Valid
get

Definition at line 1186 of file BoundingBoxD.cs.

double VRageMath.BoundingBoxD.Volume
get

Definition at line 1154 of file BoundingBoxD.cs.


The documentation for this struct was generated from the following file: