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

Base 26 directions and Vector3.Zero Each component is only 0,-1 or 1; More...

Public Types

enum  Direction : byte {
  Direction.Forward = 1, Direction.Backward = 2, Direction.Left = 4, Direction.Right = 8,
  Direction.Up = 16, Direction.Down = 32
}
 

Static Public Member Functions

static bool IsBaseDirection (ref Vector3 vec)
 
static bool IsBaseDirection (ref Vector3I vec)
 
static bool IsBaseDirection (Vector3 vec)
 
static Vector3 GetVector (int direction)
 
static Vector3I GetVectorInt (int direction)
 
static Vector3 GetVector (Direction dir)
 
static Vector3I GetVectorInt (Direction dir)
 
static Direction GetDirection (Vector3 vec)
 Vector must be normalized, allowed values for components are: 0, 1, -1, 0.707, -0.707, 0.577, -0.577 More...
 
static Direction GetDirection (Vector3I vec)
 
static Direction GetDirection (ref Vector3 vec)
 
static Direction GetDirection (ref Vector3I vec)
 
static Direction GetForward (ref Quaternion rot)
 
static Direction GetUp (ref Quaternion rot)
 

Static Public Attributes

static readonly Vector3[] Directions
 
static readonly Vector3I[] DirectionsInt
 

Detailed Description

Base 26 directions and Vector3.Zero Each component is only 0,-1 or 1;

Definition at line 13 of file Base27Directions.cs.

Member Enumeration Documentation

Enumerator
Forward 
Backward 
Left 
Right 
Up 
Down 

Definition at line 16 of file Base27Directions.cs.

Member Function Documentation

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

Vector must be normalized, allowed values for components are: 0, 1, -1, 0.707, -0.707, 0.577, -0.577

Definition at line 208 of file Base27Directions.cs.

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

Definition at line 213 of file Base27Directions.cs.

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

Definition at line 218 of file Base27Directions.cs.

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

Definition at line 228 of file Base27Directions.cs.

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

Definition at line 238 of file Base27Directions.cs.

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

Definition at line 245 of file Base27Directions.cs.

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

Definition at line 185 of file Base27Directions.cs.

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

Definition at line 195 of file Base27Directions.cs.

static Vector3I VRageMath.Base27Directions.GetVectorInt ( int  direction)
inlinestatic

Definition at line 190 of file Base27Directions.cs.

static Vector3I VRageMath.Base27Directions.GetVectorInt ( Direction  dir)
inlinestatic

Definition at line 200 of file Base27Directions.cs.

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

Definition at line 168 of file Base27Directions.cs.

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

Definition at line 173 of file Base27Directions.cs.

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

Definition at line 180 of file Base27Directions.cs.

Member Data Documentation

readonly Vector3 [] VRageMath.Base27Directions.Directions
static

Definition at line 26 of file Base27Directions.cs.

readonly Vector3I [] VRageMath.Base27Directions.DirectionsInt
static

Definition at line 94 of file Base27Directions.cs.


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