Space Engineers
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
VRageMath.Base6Directions Class Reference

Public Types

enum  Direction : byte {
  Direction.Forward = 0, Direction.Backward = 1, Direction.Left = 2, Direction.Right = 3,
  Direction.Up = 4, Direction.Down = 5
}
 
enum  DirectionFlags : byte {
  DirectionFlags.Forward = 1 << (int)Direction.Forward, DirectionFlags.Backward = 1 << (int)Direction.Backward, DirectionFlags.Left = 1 << (int)Direction.Left, DirectionFlags.Right = 1 << (int)Direction.Right,
  DirectionFlags.Up = 1 << (int)Direction.Up, DirectionFlags.Down = 1 << (int)Direction.Down, DirectionFlags.All = Forward | Backward | Left | Right | Up | Down
}
 
enum  Axis : byte { Axis.ForwardBackward = 0, Axis.LeftRight = 1, Axis.UpDown = 2 }
 

Static Public Member Functions

static bool IsBaseDirection (ref Vector3 vec)
 
static bool IsBaseDirection (Vector3 vec)
 
static bool IsBaseDirection (ref Vector3I vec)
 
static Vector3 GetVector (int direction)
 
static Vector3 GetVector (Direction dir)
 
static Vector3I GetIntVector (int direction)
 
static Vector3I GetIntVector (Direction dir)
 
static void GetVector (Direction dir, out Vector3 result)
 
static DirectionFlags GetDirectionFlag (Direction dir)
 
static Direction GetPerpendicular (Direction dir)
 
static Direction GetDirection (Vector3 vec)
 
static Direction GetDirection (ref Vector3 vec)
 
static Direction GetDirection (Vector3I vec)
 
static Direction GetDirection (ref Vector3I vec)
 
static Direction GetClosestDirection (Vector3 vec)
 
static Direction GetClosestDirection (ref Vector3 vec)
 
static Direction GetDirectionInAxis (Vector3 vec, Axis axis)
 
static Direction GetDirectionInAxis (ref Vector3 vec, Axis axis)
 
static Direction GetForward (Quaternion rot)
 
static Direction GetForward (ref Quaternion rot)
 
static Direction GetForward (ref Matrix rotation)
 
static Direction GetUp (Quaternion rot)
 
static Direction GetUp (ref Quaternion rot)
 
static Direction GetUp (ref Matrix rotation)
 
static Axis GetAxis (Direction direction)
 
static Direction GetBaseAxisDirection (Axis axis)
 
static Direction GetFlippedDirection (Direction toFlip)
 
static Direction GetCross (Direction dir1, Direction dir2)
 
static Direction GetLeft (Direction up, Direction forward)
 
static Direction GetOppositeDirection (Direction dir)
 
static Quaternion GetOrientation (Direction forward, Direction up)
 
static bool IsValidBlockOrientation (Direction forward, Direction up)
 

Static Public Attributes

static readonly Direction[] EnumDirections
 
static readonly Vector3[] Directions
 
static readonly Vector3I[] IntDirections
 

Detailed Description

Definition at line 10 of file Base6Directions.cs.

Member Enumeration Documentation

Enumerator
ForwardBackward 
LeftRight 
UpDown 

Definition at line 38 of file Base6Directions.cs.

Enumerator
Forward 
Backward 
Left 
Right 
Up 
Down 

Definition at line 16 of file Base6Directions.cs.

Enumerator
Forward 
Backward 
Left 
Right 
Up 
Down 
All 

Definition at line 27 of file Base6Directions.cs.

Member Function Documentation

static Axis VRageMath.Base6Directions.GetAxis ( Direction  direction)
inlinestatic

Definition at line 260 of file Base6Directions.cs.

static Direction VRageMath.Base6Directions.GetBaseAxisDirection ( Axis  axis)
inlinestatic

Definition at line 265 of file Base6Directions.cs.

static Direction VRageMath.Base6Directions.GetClosestDirection ( Vector3  vec)
inlinestatic

Definition at line 187 of file Base6Directions.cs.

static Direction VRageMath.Base6Directions.GetClosestDirection ( ref Vector3  vec)
inlinestatic

Definition at line 192 of file Base6Directions.cs.

static Direction VRageMath.Base6Directions.GetCross ( Direction  dir1,
Direction  dir2 
)
inlinestatic

Definition at line 275 of file Base6Directions.cs.

static Direction VRageMath.Base6Directions.GetDirection ( Vector3  vec)
inlinestatic

Definition at line 157 of file Base6Directions.cs.

static Direction VRageMath.Base6Directions.GetDirection ( ref Vector3  vec)
inlinestatic

Definition at line 162 of file Base6Directions.cs.

static Direction VRageMath.Base6Directions.GetDirection ( Vector3I  vec)
inlinestatic

Definition at line 172 of file Base6Directions.cs.

static Direction VRageMath.Base6Directions.GetDirection ( ref Vector3I  vec)
inlinestatic

Definition at line 177 of file Base6Directions.cs.

static DirectionFlags VRageMath.Base6Directions.GetDirectionFlag ( Direction  dir)
inlinestatic

Definition at line 146 of file Base6Directions.cs.

static Direction VRageMath.Base6Directions.GetDirectionInAxis ( Vector3  vec,
Axis  axis 
)
inlinestatic

Definition at line 200 of file Base6Directions.cs.

static Direction VRageMath.Base6Directions.GetDirectionInAxis ( ref Vector3  vec,
Axis  axis 
)
inlinestatic

Definition at line 205 of file Base6Directions.cs.

static Direction VRageMath.Base6Directions.GetFlippedDirection ( Direction  toFlip)
inlinestatic

Definition at line 270 of file Base6Directions.cs.

static Direction VRageMath.Base6Directions.GetForward ( Quaternion  rot)
inlinestatic

Definition at line 216 of file Base6Directions.cs.

static Direction VRageMath.Base6Directions.GetForward ( ref Quaternion  rot)
inlinestatic

Definition at line 223 of file Base6Directions.cs.

static Direction VRageMath.Base6Directions.GetForward ( ref Matrix  rotation)
inlinestatic

Definition at line 230 of file Base6Directions.cs.

static Vector3I VRageMath.Base6Directions.GetIntVector ( int  direction)
inlinestatic

Definition at line 128 of file Base6Directions.cs.

static Vector3I VRageMath.Base6Directions.GetIntVector ( Direction  dir)
inlinestatic

Definition at line 134 of file Base6Directions.cs.

static Direction VRageMath.Base6Directions.GetLeft ( Direction  up,
Direction  forward 
)
inlinestatic

Definition at line 280 of file Base6Directions.cs.

static Direction VRageMath.Base6Directions.GetOppositeDirection ( Direction  dir)
inlinestatic

Definition at line 285 of file Base6Directions.cs.

static Quaternion VRageMath.Base6Directions.GetOrientation ( Direction  forward,
Direction  up 
)
inlinestatic

Definition at line 305 of file Base6Directions.cs.

static Direction VRageMath.Base6Directions.GetPerpendicular ( Direction  dir)
inlinestatic

Definition at line 151 of file Base6Directions.cs.

static Direction VRageMath.Base6Directions.GetUp ( Quaternion  rot)
inlinestatic

Definition at line 238 of file Base6Directions.cs.

static Direction VRageMath.Base6Directions.GetUp ( ref Quaternion  rot)
inlinestatic

Definition at line 245 of file Base6Directions.cs.

static Direction VRageMath.Base6Directions.GetUp ( ref Matrix  rotation)
inlinestatic

Definition at line 252 of file Base6Directions.cs.

static Vector3 VRageMath.Base6Directions.GetVector ( int  direction)
inlinestatic

Definition at line 117 of file Base6Directions.cs.

static Vector3 VRageMath.Base6Directions.GetVector ( Direction  dir)
inlinestatic

Definition at line 123 of file Base6Directions.cs.

static void VRageMath.Base6Directions.GetVector ( Direction  dir,
out Vector3  result 
)
inlinestatic

Definition at line 140 of file Base6Directions.cs.

static bool VRageMath.Base6Directions.IsBaseDirection ( ref Vector3  vec)
inlinestatic

Definition at line 102 of file Base6Directions.cs.

static bool VRageMath.Base6Directions.IsBaseDirection ( Vector3  vec)
inlinestatic

Definition at line 107 of file Base6Directions.cs.

static bool VRageMath.Base6Directions.IsBaseDirection ( ref Vector3I  vec)
inlinestatic

Definition at line 112 of file Base6Directions.cs.

static bool VRageMath.Base6Directions.IsValidBlockOrientation ( Direction  forward,
Direction  up 
)
inlinestatic

Definition at line 312 of file Base6Directions.cs.

Member Data Documentation

readonly Vector3 [] VRageMath.Base6Directions.Directions
static
Initial value:
=
{
Vector3.Forward,
Vector3.Backward,
Vector3.Left,
Vector3.Right,
Vector3.Up,
Vector3.Down,
}

Definition at line 56 of file Base6Directions.cs.

readonly Direction [] VRageMath.Base6Directions.EnumDirections
static
Initial value:
=
{
Direction.Forward,
Direction.Backward,
Direction.Left,
Direction.Right,
Direction.Down,
}

Definition at line 46 of file Base6Directions.cs.

readonly Vector3I [] VRageMath.Base6Directions.IntDirections
static
Initial value:
=
{
Vector3I.Forward,
Vector3I.Backward,
Vector3I.Left,
Vector3I.Right,
Vector3I.Up,
Vector3I.Down,
}

Definition at line 66 of file Base6Directions.cs.


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