Make Quaternion::magnitude pass self by-value
This commit is contained in:
parent
1b4420d2af
commit
e9dc8404ef
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ impl<S: BaseFloat> Quaternion<S> {
|
||||||
/// to be known, for example for quaternion-quaternion magnitude comparisons,
|
/// to be known, for example for quaternion-quaternion magnitude comparisons,
|
||||||
/// it is advisable to use the `magnitude2` method instead.
|
/// it is advisable to use the `magnitude2` method instead.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn magnitude(&self) -> S {
|
pub fn magnitude(self) -> S {
|
||||||
self.magnitude2().sqrt()
|
self.magnitude2().sqrt()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue