File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
src/Synercoding.Primitives Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -216,6 +216,15 @@ public bool Equals(UnitValue other)
216
216
public static UnitValue operator * ( UnitValue a , double b )
217
217
=> new UnitValue ( a . Value * b , a . Unit ) ;
218
218
219
+ /// <summary>
220
+ /// Multiply a given <see cref="UnitValue"/> by a <see cref="double"/>
221
+ /// </summary>
222
+ /// <param name="a">The <see cref="UnitValue"/> to multiply</param>
223
+ /// <param name="b">The <see cref="double"/> to multiply by</param>
224
+ /// <returns>The result of the multiplication operation</returns>
225
+ public static UnitValue operator * ( double a , UnitValue b )
226
+ => new UnitValue ( b . Value * a , b . Unit ) ;
227
+
219
228
/// <summary>
220
229
/// Divide a given <see cref="UnitValue"/> by another <see cref="UnitValue"/>
221
230
/// </summary>
You can’t perform that action at this time.
0 commit comments