Beispiel #1
0
        public static Vector4 PackOrthoMatrix(ref Matrix matrix)
        {
            int direction = (int)Base6Directions.GetDirection(matrix.Forward);
            int num2      = (int)Base6Directions.GetDirection(matrix.Up);

            return(new Vector4(matrix.Translation, (float)((direction * 6) + num2)));
        }
Beispiel #2
0
        public static Vector4 PackOrthoMatrix(Vector3 position, Vector3 forward, Vector3 up)
        {
            int direction = (int)Base6Directions.GetDirection(forward);
            int num2      = (int)Base6Directions.GetDirection(up);

            return(new Vector4(position, (float)((direction * 6) + num2)));
        }
Beispiel #3
0
        public static Vector4D PackOrthoMatrix(ref MatrixD matrix)
        {
            int direction = (int)Base6Directions.GetDirection((Vector3)matrix.Forward);
            int num2      = (int)Base6Directions.GetDirection((Vector3)matrix.Up);

            return(new Vector4D(matrix.Translation, (double)((direction * 6) + num2)));
        }
Beispiel #4
0
        public static Vector4D PackOrthoMatrix(Vector3D position, Vector3D forward, Vector3D up)
        {
            int direction = (int)Base6Directions.GetDirection((Vector3)forward);
            int num2      = (int)Base6Directions.GetDirection((Vector3)up);

            return(new Vector4D(position, (double)((direction * 6) + num2)));
        }
 public MatrixI(ref Vector3I position, ref Vector3 forward, ref Vector3 up) :
     this(ref position, Base6Directions.GetDirection(ref forward), Base6Directions.GetDirection(ref up))
 {
 }