From 20dbfbd6f9fcaec47fca3b847994e6889d244bcf Mon Sep 17 00:00:00 2001 From: Allan Zhang Date: Fri, 4 Nov 2022 09:32:01 -0400 Subject: [PATCH] Use parenthesis for exclusive lower bound Changes `]0, pi]` to `(0, pi]`. Replaces PR #1173 and resolves Issue #1164. --- src/geometry/quaternion.rs | 2 +- src/geometry/rotation_specialization.rs | 2 +- src/geometry/unit_complex.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/geometry/quaternion.rs b/src/geometry/quaternion.rs index 53da24e3..293ab125 100755 --- a/src/geometry/quaternion.rs +++ b/src/geometry/quaternion.rs @@ -1323,7 +1323,7 @@ where } } - /// The rotation axis and angle in ]0, pi] of this unit quaternion. + /// The rotation axis and angle in (0, pi] of this unit quaternion. /// /// Returns `None` if the angle is zero. /// diff --git a/src/geometry/rotation_specialization.rs b/src/geometry/rotation_specialization.rs index c9197fd6..bba92512 100644 --- a/src/geometry/rotation_specialization.rs +++ b/src/geometry/rotation_specialization.rs @@ -877,7 +877,7 @@ impl Rotation3 { } } - /// The rotation axis and angle in ]0, pi] of this rotation matrix. + /// The rotation axis and angle in (0, pi] of this rotation matrix. /// /// Returns `None` if the angle is zero. /// diff --git a/src/geometry/unit_complex.rs b/src/geometry/unit_complex.rs index efe0dac2..8e44f71a 100755 --- a/src/geometry/unit_complex.rs +++ b/src/geometry/unit_complex.rs @@ -132,7 +132,7 @@ where Vector1::new(self.angle()) } - /// The rotation axis and angle in ]0, pi] of this complex number. + /// The rotation axis and angle in (0, pi] of this complex number. /// /// This is generally used in the context of generic programming. Using /// the `.angle()` method instead is more common.