diff --git a/experiments/2024-12-09/src/math/scalar.rs b/experiments/2024-12-09/src/math/scalar.rs index 876a95117..a7c22af62 100644 --- a/experiments/2024-12-09/src/math/scalar.rs +++ b/experiments/2024-12-09/src/math/scalar.rs @@ -60,3 +60,15 @@ where Self::new(value) } } + +impl ops::Mul for Scalar +where + S: Into, +{ + type Output = Self; + + fn mul(self, other: S) -> Self::Output { + let value = self.value() * other.into().value(); + Self::new(value) + } +}