From 5b84c468406285e0685d917705635922a3acbbfb Mon Sep 17 00:00:00 2001 From: cchillen Date: Sat, 28 Aug 2021 09:41:09 -0400 Subject: [PATCH] Update imports in doc example. --- src/geometry/rotation_construction.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/geometry/rotation_construction.rs b/src/geometry/rotation_construction.rs index 98d0677f..1fc033e4 100644 --- a/src/geometry/rotation_construction.rs +++ b/src/geometry/rotation_construction.rs @@ -16,14 +16,15 @@ where /// # Example /// ``` /// # use nalgebra::{Rotation2, Rotation3}; + /// # use nalgebra::Vector3; /// let rot1 = Rotation2::identity(); - /// let rot2 = Rotation2::new(f32::consts::FRAC_PI_2); + /// let rot2 = Rotation2::new(std::f32::consts::FRAC_PI_2); /// /// assert_eq!(rot1 * rot2, rot2); /// assert_eq!(rot2 * rot1, rot2); /// /// let rot1 = Rotation3::identity(); - /// let rot2 = Rotation3::from_axis_angle(&Vector3::z_axis(), f32::consts::FRAC_PI_2); + /// let rot2 = Rotation3::from_axis_angle(&Vector3::z_axis(), std::f32::consts::FRAC_PI_2); /// /// assert_eq!(rot1 * rot2, rot2); /// assert_eq!(rot2 * rot1, rot2);