public static AngularValues FromRadians(PitchRollYaw radians)
 {
     return new AngularValues
                {
                    Radians = radians,
                    Degrees = new PitchRollYaw(
                        MathHelper.ToDegrees(radians.Pitch),
                        MathHelper.ToDegrees(radians.Roll),
                        MathHelper.ToDegrees(radians.Yaw))
                };
 }
예제 #2
0
 public static AngularValues FromDegrees(PitchRollYaw degrees)
 {
     return(new AngularValues
     {
         Degrees = degrees,
         Radians = new PitchRollYaw(
             MathHelper.ToRadians(degrees.Pitch),
             MathHelper.ToRadians(degrees.Roll),
             MathHelper.ToRadians(degrees.Yaw))
     });
 }
 public static AngularValues FromDegrees(PitchRollYaw degrees)
 {
     return new AngularValues
                {
                    Degrees = degrees,
                    Radians = new PitchRollYaw(
                        MathHelper.ToRadians(degrees.Pitch),
                        MathHelper.ToRadians(degrees.Roll),
                        MathHelper.ToRadians(degrees.Yaw))
                };
 }
예제 #4
0
 public static AngularValues FromRadians(PitchRollYaw radians)
 {
     return(new AngularValues
     {
         Radians = radians,
         Degrees = new PitchRollYaw(
             MathHelper.ToDegrees(radians.Pitch),
             MathHelper.ToDegrees(radians.Roll),
             MathHelper.ToDegrees(radians.Yaw))
     });
 }