Example #1
0
 /// <summary>
 /// Initializes a new instance of <see cref="T:Gu.Units.Acceleration"/>.
 /// </summary>
 /// <param name="value"></param>
 /// <param name="unit"><see cref="T:Gu.Units.MetresPerSecondSquared"/>.</param>
 public Acceleration(double value, AccelerationUnit unit)
 {
     this.metresPerSecondSquared = unit.ToSiUnit(value);
 }
Example #2
0
 /// <summary>
 /// Creates a new instance of <see cref="T:Gu.Units.Acceleration"/>.
 /// </summary>
 /// <param name="value"></param>
 /// <param name="unit"></param>
 public static Acceleration From(double value, AccelerationUnit unit)
 {
     return(new Acceleration(unit.ToSiUnit(value)));
 }