Пример #1
0
 /// <summary>
 /// Creates a new instance of <see cref="T:Gu.Units.Angle"/>.
 /// </summary>
 /// <param name="value"></param>
 /// <param name="unit"></param>
 public static Angle From(double value, AngleUnit unit)
 {
     return(new Angle(unit.ToSiUnit(value)));
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of <see cref="T:Gu.Units.Angle"/>.
 /// </summary>
 /// <param name="value"></param>
 /// <param name="unit"><see cref="T:Gu.Units.Radians"/>.</param>
 public Angle(double value, AngleUnit unit)
 {
     this.radians = unit.ToSiUnit(value);
 }