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