forked from M-Labs/nalgebra
DOC: Use norm_squared() in its doctest
This commit is contained in:
parent
f404bcbd6d
commit
87796ace42
@ -271,7 +271,7 @@ where
|
|||||||
/// ```
|
/// ```
|
||||||
/// # use nalgebra::Quaternion;
|
/// # use nalgebra::Quaternion;
|
||||||
/// let q = Quaternion::new(1.0, 2.0, 3.0, 4.0);
|
/// let q = Quaternion::new(1.0, 2.0, 3.0, 4.0);
|
||||||
/// assert_eq!(q.magnitude_squared(), 30.0);
|
/// assert_eq!(q.norm_squared(), 30.0);
|
||||||
/// ```
|
/// ```
|
||||||
#[inline]
|
#[inline]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
|
Loading…
Reference in New Issue
Block a user