Exemplo n.º 1
0
 public static Direction GetUp(ref Matrix rotation)
 {
     Debug.Assert(rotation.IsRotation());
     Vector3 rotatedUp;
     Vector3.TransformNormal(ref Vector3.Up, ref rotation, out rotatedUp);
     return GetDirection(ref rotatedUp);
 }
Exemplo n.º 2
0
 public static Direction GetForward(ref Matrix rotation)
 {
     Debug.Assert(rotation.IsRotation());
     Vector3 rotatedForward;
     Vector3.TransformNormal(ref Vector3.Forward, ref rotation, out rotatedForward);
     return GetDirection(ref rotatedForward);
 }