/// <summary> /// Initializes a new instance of <see cref="T:Gu.Units.Speed"/>. /// </summary> /// <param name="value"></param> /// <param name="unit"><see cref="T:Gu.Units.MetresPerSecond"/>.</param> public Speed(double value, SpeedUnit unit) { this.metresPerSecond = unit.ToSiUnit(value); }
/// <summary> /// Creates a new instance of <see cref="T:Gu.Units.Speed"/>. /// </summary> /// <param name="value"></param> /// <param name="unit"></param> public static Speed From(double value, SpeedUnit unit) { return(new Speed(unit.ToSiUnit(value))); }