Deprecate `dot`

See #371.
This commit is contained in:
Jack Wrenn 2018-12-10 16:10:00 -05:00 committed by Sébastien Crozet
parent aac29b70ea
commit 52b8155c67
1 changed files with 8 additions and 0 deletions

View File

@ -416,6 +416,14 @@ pub fn inverse<M: Inverse<Multiplicative>>(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<V: FiniteDimVectorSpace>(a: &V, b: &V) -> V::Field {
a.dot(b)