From 52b8155c67e8df35ce55f35c42187c70166afbd3 Mon Sep 17 00:00:00 2001 From: Jack Wrenn Date: Mon, 10 Dec 2018 16:10:00 -0500 Subject: [PATCH] Deprecate `dot` See #371. --- src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 67bf5a0f..20809799 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -416,6 +416,14 @@ pub fn inverse>(m: &M) -> M { */ /// Computes the dot product of two vectors. +/// +/// ## Deprecated +/// Use these methods instead: +/// - [Matrix::dot] +/// - [Quaternion::dot] +/// +/// Or, use [FiniteDimVectorSpace::dot](https://docs.rs/alga/0.7.2/alga/linear/trait.FiniteDimVectorSpace.html#tymethod.dot). +#[deprecated(note = "use `Matrix::dot` or `Quaternion::dot` instead")] #[inline] pub fn dot(a: &V, b: &V) -> V::Field { a.dot(b)