-
Notifications
You must be signed in to change notification settings - Fork 124
VRageMath.Base27Directions
← Index ← Namespace Index
public class Base27Directions
Base 26 directions and Vector3.Zero Each component is only 0,-1 or 1;
Namespace: VRageMath
Assembly: VRage.Math.dll
static Vector3[] Directions
static Vector3I[] DirectionsInt
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
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 Vector3 GetVector(int direction)
static Vector3 GetVector(Direction dir)
static Vector3I GetVectorInt(int direction)
static Vector3I GetVectorInt(Direction dir)
static bool IsBaseDirection(ref Vector3 vec)
static bool IsBaseDirection(ref Vector3I vec)
static bool IsBaseDirection(Vector3 vec)
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!