Update imports in doc example.

This commit is contained in:
cchillen 2021-08-28 09:41:09 -04:00
parent 25341e40f0
commit 5b84c46840

View File

@ -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);