Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of <see cref="T:Gu.Units.Pressure"/>.
 /// </summary>
 /// <param name="value"></param>
 /// <param name="unit"><see cref="T:Gu.Units.Pascals"/>.</param>
 public Pressure(double value, PressureUnit unit)
 {
     this.pascals = unit.ToSiUnit(value);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new instance of <see cref="T:Gu.Units.Pressure"/>.
 /// </summary>
 /// <param name="value"></param>
 /// <param name="unit"></param>
 public static Pressure From(double value, PressureUnit unit)
 {
     return(new Pressure(unit.ToSiUnit(value)));
 }