Space Engineers
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
VRageMath.MyOrientedBoundingBoxD Struct Reference
Inheritance diagram for VRageMath.MyOrientedBoundingBoxD:

Public Member Functions

 MyOrientedBoundingBoxD (MatrixD matrix)
 Initializes a new instance of the MyOrientedBoundingBox. Scale of matrix is size of box More...
 
 MyOrientedBoundingBoxD (Vector3D center, Vector3D halfExtents, Quaternion orientation)
 
 MyOrientedBoundingBoxD (BoundingBoxD box, MatrixD transform)
 
MyOrientedBoundingBoxD Transform (Quaternion rotation, Vector3D translation)
 
MyOrientedBoundingBoxD Transform (float scale, Quaternion rotation, Vector3D translation)
 
void Transform (MatrixD matrix)
 
bool Equals (MyOrientedBoundingBox other)
 
override bool Equals (Object obj)
 
override int GetHashCode ()
 
override string ToString ()
 
bool Intersects (ref BoundingBox box)
 
bool Intersects (ref BoundingBoxD box)
 
ContainmentType Contains (ref BoundingBox box)
 
ContainmentType Contains (ref BoundingBoxD box)
 
bool Intersects (ref MyOrientedBoundingBoxD other)
 
ContainmentType Contains (ref MyOrientedBoundingBoxD other)
 
ContainmentType Contains (BoundingFrustumD frustum)
 
bool Intersects (BoundingFrustumD frustum)
 
ContainmentType Contains (ref BoundingSphereD sphere)
 
bool Intersects (ref BoundingSphereD sphere)
 
bool Contains (ref Vector3 point)
 
bool Contains (ref Vector3D point)
 
double Intersects (ref RayD ray)
 
double Intersects (ref LineD line)
 
PlaneIntersectionType Intersects (ref PlaneD plane)
 
void GetCorners (Vector3D[] corners, int startIndex)
 
BoundingFrustumD ConvertToFrustum ()
 
BoundingBoxD GetAABB ()
 

Static Public Member Functions

static bool GetNormalBetweenEdges (int axis, int edge0, int edge1, out Vector3 normal)
 Returns normal between two cube edge of same direction More...
 
static MyOrientedBoundingBoxD CreateFromBoundingBox (BoundingBoxD box)
 
static bool operator== (MyOrientedBoundingBoxD a, MyOrientedBoundingBoxD b)
 
static bool operator!= (MyOrientedBoundingBoxD a, MyOrientedBoundingBoxD b)
 
static ContainmentType Contains (ref BoundingBox boxA, ref MyOrientedBoundingBox oboxB)
 
static ContainmentType Contains (BoundingFrustumD frustum, ref MyOrientedBoundingBoxD obox)
 
static ContainmentType Contains (ref BoundingSphere sphere, ref MyOrientedBoundingBox box)
 
static ContainmentType ContainsRelativeBox (ref Vector3D hA, ref Vector3D hB, ref MatrixD mB)
 
static MyOrientedBoundingBoxD Create (BoundingBoxD boundingBox, MatrixD matrix)
 

Public Attributes

const int CornerCount = 8
 
const float RAY_EPSILON = 1e-20F
 
Vector3D Center
 
Vector3D HalfExtent
 
Quaternion Orientation
 

Static Public Attributes

static readonly int[] StartVertices
 
static readonly int[] EndVertices
 
static readonly int[] StartXVertices
 
static readonly int[] EndXVertices
 
static readonly int[] StartYVertices
 
static readonly int[] EndYVertices
 
static readonly int[] StartZVertices
 
static readonly int[] EndZVertices
 
static readonly Vector3[] XNeighbourVectorsBack
 
static readonly Vector3[] XNeighbourVectorsForw
 
static readonly Vector3[] YNeighbourVectorsBack
 
static readonly Vector3[] YNeighbourVectorsForw
 
static readonly Vector3[] ZNeighbourVectorsBack
 
static readonly Vector3[] ZNeighbourVectorsForw
 

Detailed Description

Definition at line 8 of file MyOrientedBoundingBoxD.cs.

Constructor & Destructor Documentation

VRageMath.MyOrientedBoundingBoxD.MyOrientedBoundingBoxD ( MatrixD  matrix)
inline

Initializes a new instance of the MyOrientedBoundingBox. Scale of matrix is size of box

Definition at line 234 of file MyOrientedBoundingBoxD.cs.

VRageMath.MyOrientedBoundingBoxD.MyOrientedBoundingBoxD ( Vector3D  center,
Vector3D  halfExtents,
Quaternion  orientation 
)
inline

Definition at line 249 of file MyOrientedBoundingBoxD.cs.

VRageMath.MyOrientedBoundingBoxD.MyOrientedBoundingBoxD ( BoundingBoxD  box,
MatrixD  transform 
)
inline

Definition at line 259 of file MyOrientedBoundingBoxD.cs.

Member Function Documentation

ContainmentType VRageMath.MyOrientedBoundingBoxD.Contains ( ref BoundingBox  box)
inline

Definition at line 372 of file MyOrientedBoundingBoxD.cs.

ContainmentType VRageMath.MyOrientedBoundingBoxD.Contains ( ref BoundingBoxD  box)
inline

Definition at line 379 of file MyOrientedBoundingBoxD.cs.

static ContainmentType VRageMath.MyOrientedBoundingBoxD.Contains ( ref BoundingBox  boxA,
ref MyOrientedBoundingBox  oboxB 
)
inlinestatic

Definition at line 395 of file MyOrientedBoundingBoxD.cs.

ContainmentType VRageMath.MyOrientedBoundingBoxD.Contains ( ref MyOrientedBoundingBoxD  other)
inline

Definition at line 417 of file MyOrientedBoundingBoxD.cs.

ContainmentType VRageMath.MyOrientedBoundingBoxD.Contains ( BoundingFrustumD  frustum)
inline

Definition at line 437 of file MyOrientedBoundingBoxD.cs.

static ContainmentType VRageMath.MyOrientedBoundingBoxD.Contains ( BoundingFrustumD  frustum,
ref MyOrientedBoundingBoxD  obox 
)
inlinestatic

Definition at line 455 of file MyOrientedBoundingBoxD.cs.

ContainmentType VRageMath.MyOrientedBoundingBoxD.Contains ( ref BoundingSphereD  sphere)
inline

Definition at line 465 of file MyOrientedBoundingBoxD.cs.

static ContainmentType VRageMath.MyOrientedBoundingBoxD.Contains ( ref BoundingSphere  sphere,
ref MyOrientedBoundingBox  box 
)
inlinestatic

Definition at line 514 of file MyOrientedBoundingBoxD.cs.

bool VRageMath.MyOrientedBoundingBoxD.Contains ( ref Vector3  point)
inline

Definition at line 547 of file MyOrientedBoundingBoxD.cs.

bool VRageMath.MyOrientedBoundingBoxD.Contains ( ref Vector3D  point)
inline

Definition at line 559 of file MyOrientedBoundingBoxD.cs.

static ContainmentType VRageMath.MyOrientedBoundingBoxD.ContainsRelativeBox ( ref Vector3D  hA,
ref Vector3D  hB,
ref MatrixD  mB 
)
inlinestatic

Definition at line 802 of file MyOrientedBoundingBoxD.cs.

BoundingFrustumD VRageMath.MyOrientedBoundingBoxD.ConvertToFrustum ( )
inline

Definition at line 920 of file MyOrientedBoundingBoxD.cs.

static MyOrientedBoundingBoxD VRageMath.MyOrientedBoundingBoxD.Create ( BoundingBoxD  boundingBox,
MatrixD  matrix 
)
inlinestatic

Definition at line 946 of file MyOrientedBoundingBoxD.cs.

static MyOrientedBoundingBoxD VRageMath.MyOrientedBoundingBoxD.CreateFromBoundingBox ( BoundingBoxD  box)
inlinestatic

Definition at line 269 of file MyOrientedBoundingBoxD.cs.

bool VRageMath.MyOrientedBoundingBoxD.Equals ( MyOrientedBoundingBox  other)
inline

Definition at line 304 of file MyOrientedBoundingBoxD.cs.

override bool VRageMath.MyOrientedBoundingBoxD.Equals ( Object  obj)
inline

Definition at line 309 of file MyOrientedBoundingBoxD.cs.

BoundingBoxD VRageMath.MyOrientedBoundingBoxD.GetAABB ( )
inline

Definition at line 938 of file MyOrientedBoundingBoxD.cs.

void VRageMath.MyOrientedBoundingBoxD.GetCorners ( Vector3D[]  corners,
int  startIndex 
)
inline

Definition at line 779 of file MyOrientedBoundingBoxD.cs.

override int VRageMath.MyOrientedBoundingBoxD.GetHashCode ( )
inline

Definition at line 322 of file MyOrientedBoundingBoxD.cs.

static bool VRageMath.MyOrientedBoundingBoxD.GetNormalBetweenEdges ( int  axis,
int  edge0,
int  edge1,
out Vector3  normal 
)
inlinestatic

Returns normal between two cube edge of same direction

Parameters
axisEdge direction axis (0 = X, 1 = Y, 2 = Z)
edge0
edge1
normal
Returns
false if edges are not neighbors

Definition at line 153 of file MyOrientedBoundingBoxD.cs.

bool VRageMath.MyOrientedBoundingBoxD.Intersects ( ref BoundingBox  box)
inline

Definition at line 349 of file MyOrientedBoundingBoxD.cs.

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

Definition at line 360 of file MyOrientedBoundingBoxD.cs.

bool VRageMath.MyOrientedBoundingBoxD.Intersects ( ref MyOrientedBoundingBoxD  other)
inline

Definition at line 410 of file MyOrientedBoundingBoxD.cs.

bool VRageMath.MyOrientedBoundingBoxD.Intersects ( BoundingFrustumD  frustum)
inline

Definition at line 448 of file MyOrientedBoundingBoxD.cs.

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

Definition at line 493 of file MyOrientedBoundingBoxD.cs.

double VRageMath.MyOrientedBoundingBoxD.Intersects ( ref RayD  ray)
inline

Definition at line 574 of file MyOrientedBoundingBoxD.cs.

double VRageMath.MyOrientedBoundingBoxD.Intersects ( ref LineD  line)
inline

Definition at line 679 of file MyOrientedBoundingBoxD.cs.

PlaneIntersectionType VRageMath.MyOrientedBoundingBoxD.Intersects ( ref PlaneD  plane)
inline

Definition at line 718 of file MyOrientedBoundingBoxD.cs.

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

Definition at line 332 of file MyOrientedBoundingBoxD.cs.

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

Definition at line 327 of file MyOrientedBoundingBoxD.cs.

override string VRageMath.MyOrientedBoundingBoxD.ToString ( )
inline

Definition at line 337 of file MyOrientedBoundingBoxD.cs.

MyOrientedBoundingBoxD VRageMath.MyOrientedBoundingBoxD.Transform ( Quaternion  rotation,
Vector3D  translation 
)
inline

Definition at line 278 of file MyOrientedBoundingBoxD.cs.

MyOrientedBoundingBoxD VRageMath.MyOrientedBoundingBoxD.Transform ( float  scale,
Quaternion  rotation,
Vector3D  translation 
)
inline

Definition at line 287 of file MyOrientedBoundingBoxD.cs.

void VRageMath.MyOrientedBoundingBoxD.Transform ( MatrixD  matrix)
inline

Definition at line 294 of file MyOrientedBoundingBoxD.cs.

Member Data Documentation

Vector3D VRageMath.MyOrientedBoundingBoxD.Center

Definition at line 223 of file MyOrientedBoundingBoxD.cs.

const int VRageMath.MyOrientedBoundingBoxD.CornerCount = 8

Definition at line 11 of file MyOrientedBoundingBoxD.cs.

readonly int [] VRageMath.MyOrientedBoundingBoxD.EndVertices
static
Initial value:
= new int[]
{
1,
5,
4,
0,
2,
6,
7,
3,
3,
2,
6,
7,
}

Definition at line 33 of file MyOrientedBoundingBoxD.cs.

readonly int [] VRageMath.MyOrientedBoundingBoxD.EndXVertices
static
Initial value:
= new int[]
{
1,
5,
6,
2,
}

Definition at line 57 of file MyOrientedBoundingBoxD.cs.

readonly int [] VRageMath.MyOrientedBoundingBoxD.EndYVertices
static
Initial value:
= new int[]
{
3,
2,
6,
7,
}

Definition at line 73 of file MyOrientedBoundingBoxD.cs.

readonly int [] VRageMath.MyOrientedBoundingBoxD.EndZVertices
static
Initial value:
= new int[]
{
4,
7,
6,
5,
}

Definition at line 89 of file MyOrientedBoundingBoxD.cs.

Vector3D VRageMath.MyOrientedBoundingBoxD.HalfExtent

Definition at line 224 of file MyOrientedBoundingBoxD.cs.

Quaternion VRageMath.MyOrientedBoundingBoxD.Orientation

Definition at line 225 of file MyOrientedBoundingBoxD.cs.

const float VRageMath.MyOrientedBoundingBoxD.RAY_EPSILON = 1e-20F

Definition at line 14 of file MyOrientedBoundingBoxD.cs.

readonly int [] VRageMath.MyOrientedBoundingBoxD.StartVertices
static
Initial value:
= new int[]
{
0,
1,
5,
4,
3,
2,
6,
7,
0,
1,
5,
4,
}

Definition at line 17 of file MyOrientedBoundingBoxD.cs.

readonly int [] VRageMath.MyOrientedBoundingBoxD.StartXVertices
static
Initial value:
= new int[]
{
0,
4,
7,
3,
}

Definition at line 49 of file MyOrientedBoundingBoxD.cs.

readonly int [] VRageMath.MyOrientedBoundingBoxD.StartYVertices
static
Initial value:
= new int[]
{
0,
1,
5,
4,
}

Definition at line 65 of file MyOrientedBoundingBoxD.cs.

readonly int [] VRageMath.MyOrientedBoundingBoxD.StartZVertices
static
Initial value:
= new int[]
{
0,
3,
2,
1,
}

Definition at line 81 of file MyOrientedBoundingBoxD.cs.

readonly Vector3 [] VRageMath.MyOrientedBoundingBoxD.XNeighbourVectorsBack
static
Initial value:
= new Vector3[]
{
new Vector3(0, 0, 1),
new Vector3(0, 1, 0),
new Vector3(0, 0, -1),
new Vector3(0, -1, 0),
}

Definition at line 97 of file MyOrientedBoundingBoxD.cs.

readonly Vector3 [] VRageMath.MyOrientedBoundingBoxD.XNeighbourVectorsForw
static
Initial value:
= new Vector3[]
{
new Vector3(0, 0, -1),
new Vector3(0, -1, 0),
new Vector3(0, 0, 1),
new Vector3(0, 1, 0),
}

Definition at line 105 of file MyOrientedBoundingBoxD.cs.

readonly Vector3 [] VRageMath.MyOrientedBoundingBoxD.YNeighbourVectorsBack
static
Initial value:
= new Vector3[]
{
new Vector3(1, 0, 0),
new Vector3(0, 0, 1),
new Vector3(-1, 0, 0),
new Vector3(0, 0, -1),
}

Definition at line 113 of file MyOrientedBoundingBoxD.cs.

readonly Vector3 [] VRageMath.MyOrientedBoundingBoxD.YNeighbourVectorsForw
static
Initial value:
= new Vector3[]
{
new Vector3(-1, 0, 0),
new Vector3(0, 0, -1),
new Vector3(1, 0, 0),
new Vector3(0, 0, 1),
}

Definition at line 121 of file MyOrientedBoundingBoxD.cs.

readonly Vector3 [] VRageMath.MyOrientedBoundingBoxD.ZNeighbourVectorsBack
static
Initial value:
= new Vector3[]
{
new Vector3(0, 1, 0),
new Vector3(1, 0, 0),
new Vector3(0, -1, 0),
new Vector3(-1, 0, 0),
}

Definition at line 129 of file MyOrientedBoundingBoxD.cs.

readonly Vector3 [] VRageMath.MyOrientedBoundingBoxD.ZNeighbourVectorsForw
static
Initial value:
= new Vector3[]
{
new Vector3(0, -1, 0),
new Vector3(-1, 0, 0),
new Vector3(0, 1, 0),
new Vector3(1, 0, 0),
}

Definition at line 137 of file MyOrientedBoundingBoxD.cs.


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