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