Skip to content

Commit

Permalink
Deprecate magnitude
Browse files Browse the repository at this point in the history
  • Loading branch information
jswrenn authored and sebcrozet committed Dec 16, 2018
1 parent 2bb7c01 commit 770489c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,14 @@ pub fn norm_squared<V: NormedSpace>(v: &V) -> V::Field {
/// * [`magnitude_squared`](fn.magnitude_squared.html)
/// * [`norm`](fn.norm.html)
/// * [`norm_squared`](fn.norm_squared.html)
///
/// # Deprecated
/// Use these methods instead:
/// * [Matrix::magnitude]
/// * [Quaternion::magnitude]
///
/// Or, use [NormedSpace::norm](https://docs.rs/alga/0.7.2/alga/linear/trait.NormedSpace.html#tymethod.norm).
#[deprecated(note = "use `Matrix::magnitude` or `Quaternion::magnitude` instead")]
#[inline]
pub fn magnitude<V: NormedSpace>(v: &V) -> V::Field {
v.norm()
Expand Down

0 comments on commit 770489c

Please sign in to comment.