Fix Angle approximation

This commit is contained in:
2020-06-15 17:59:07 +02:00
parent 924ac0971c
commit 39d6ec6694
+2 -2
View File
@@ -38,8 +38,8 @@ impl Vector {
false
} else if !ApproxEq::approx_eq(&self.magnitude, &other.magnitude) {
false
} else if !ApproxEq::approx_eq(&self.angle, &other.angle)
|| !ApproxEq::approx_eq(&self.angle.signed(), &other.angle.signed())
} else if !(ApproxEq::approx_eq(&self.angle, &other.angle)
|| ApproxEq::approx_eq(&self.angle.signed(), &other.angle.signed()))
{
false
} else {