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