From 8a5e062e7e148c80b65ca53c8e5a7ac73d938556 Mon Sep 17 00:00:00 2001 From: Jack Wrenn Date: Mon, 10 Dec 2018 16:30:05 -0500 Subject: [PATCH] Deprecate `normalize` See #371. --- src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index f5dd560a..ec6dc10f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -527,6 +527,14 @@ pub fn magnitude_squared(v: &V) -> V::Field { } /// Computes the normalized version of the vector `v`. +/// +/// # Deprecated +/// Use these methods instead: +/// * [Matrix::normalize] +/// * [Quaternion::normalize] +/// +/// Or, use [NormedSpace::normalize](https://docs.rs/alga/0.7.2/alga/linear/trait.NormedSpace.html#tymethod.normalize). +#[deprecated(note = "use `Matrix::normalize` or `Quaternion::normalize` instead")] #[inline] pub fn normalize(v: &V) -> V { v.normalize()