Skip to content

Commit

Permalink
Fix merge errors due to the switch to rust 2018.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebcrozet committed Mar 31, 2019
1 parent 38ef0cb commit 1bb30e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/geometry/quaternion.rs
Expand Up @@ -591,13 +591,13 @@ impl<N: RealField> Quaternion<N> {
/// Divides quaternion into two.
#[inline]
pub fn half(&self) -> Self {
self / ::convert(2.0f64)
self / crate::convert(2.0f64)
}

/// Calculates square root.
#[inline]
pub fn sqrt(&self) -> Self {
self.powf(::convert(0.5))
self.powf(crate::convert(0.5))
}

/// Check if the quaternion is pure.
Expand Down

0 comments on commit 1bb30e7

Please sign in to comment.