From fa14eb0a323178c9c881ca260b7bdc208ca157b8 Mon Sep 17 00:00:00 2001 From: Maria Pana Date: Sun, 21 Jan 2024 16:33:22 +0200 Subject: [PATCH 1/2] Updated docs for angle from base/matrix.rs --- src/base/matrix.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/matrix.rs b/src/base/matrix.rs index 7daa4f1a0..0e2dfaae7 100644 --- a/src/base/matrix.rs +++ b/src/base/matrix.rs @@ -2131,7 +2131,7 @@ impl> Vector { } impl> Matrix { - /// The smallest angle between two vectors. + /// The smallest angle between two vectors. The value is expressed in radians. #[inline] #[must_use] pub fn angle(&self, other: &Matrix) -> T::SimdRealField From b3ddaa17577d7efd102bf0dd1e7413649fa6f41d Mon Sep 17 00:00:00 2001 From: Maria Pana Date: Sun, 21 Jan 2024 16:39:32 +0200 Subject: [PATCH 2/2] Updated docs for from_euler_angles and euler_angles --- src/geometry/rotation_specialization.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/geometry/rotation_specialization.rs b/src/geometry/rotation_specialization.rs index 45db03528..f0bec6bd9 100644 --- a/src/geometry/rotation_specialization.rs +++ b/src/geometry/rotation_specialization.rs @@ -414,6 +414,8 @@ where } /// Creates a new rotation from Euler angles. + /// + /// Note that the angles are expressed in radians. /// /// The primitive rotations are applied in order: 1 roll − 2 pitch − 3 yaw. /// @@ -937,6 +939,8 @@ impl Rotation3 { } /// Euler angles corresponding to this rotation from a rotation. + /// + /// Note that the angles are expressed in radians. /// /// The angles are produced in the form (roll, pitch, yaw). ///