diff --git a/src/rotation.rs b/src/rotation.rs index 39f7d23..e2da5ac 100644 --- a/src/rotation.rs +++ b/src/rotation.rs @@ -110,6 +110,13 @@ impl> MulAssign for Angle { } } +impl> Neg for Angle { + type Output = Self; + fn neg(self) -> Self { + Angle::radians(-self.radians) + } +} + define_matrix! { /// A transform that can represent rotations in 2d, represented as an angle in radians.