Does it work now ,
This commit is contained in:
@@ -384,20 +384,20 @@ public struct UnitValue<ValueType: ConvertibleToDouble>:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// The result will have the `unit` of the left hand side value.
|
/// The result will have the `unit` of the left hand side value.
|
||||||
public static func * <L: ConvertibleToDouble, R: ConvertibleToDouble>(
|
public static func * <L: ConvertibleToDouble>(
|
||||||
lhs: UnitValue<L>, rhs: R
|
lhs: UnitValue<L>, rhs: Double
|
||||||
)
|
)
|
||||||
-> UnitValue<Double>
|
-> UnitValue<Double>
|
||||||
{
|
{
|
||||||
.init(value: lhs.value * rhs.doubleValue, unit: lhs.unit)
|
.init(value: lhs.value * rhs, unit: lhs.unit)
|
||||||
}
|
}
|
||||||
|
|
||||||
public static func * <L: ConvertibleToDouble, R: ConvertibleToDouble>(
|
public static func * <R: ConvertibleToDouble>(
|
||||||
lhs: L, rhs: UnitValue<R>
|
lhs: Double, rhs: UnitValue<R>
|
||||||
)
|
)
|
||||||
-> UnitValue<Double>
|
-> UnitValue<Double>
|
||||||
{
|
{
|
||||||
.init(value: lhs.doubleValue * rhs.value, unit: rhs.unit)
|
.init(value: lhs * rhs.value, unit: rhs.unit)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The result will have the `unit` of the left hand side value.
|
/// The result will have the `unit` of the left hand side value.
|
||||||
|
|||||||
Reference in New Issue
Block a user