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); }
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); }