Deprecate `angle`

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

View File

@ -430,6 +430,12 @@ pub fn dot<V: FiniteDimVectorSpace>(a: &V, b: &V) -> V::Field {
} }
/// Computes the smallest angle between two vectors. /// Computes the smallest angle between two vectors.
///
/// ## Deprecated
/// Use [Matrix::angle] instead.
///
/// Or, use [InnerSpace::angle](https://docs.rs/alga/0.7.2/alga/linear/trait.InnerSpace.html#method.angle).
#[deprecated(note = "use `Matrix::angle` instead")]
#[inline] #[inline]
pub fn angle<V: InnerSpace>(a: &V, b: &V) -> V::Real { pub fn angle<V: InnerSpace>(a: &V, b: &V) -> V::Real {
a.angle(b) a.angle(b)