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