Update doc comment

This commit is contained in:
Hanno Braun 2024-07-29 19:47:16 +02:00
parent 4739ef60f6
commit db3ea1c53b

View File

@ -88,6 +88,8 @@ impl<const D: usize> Vector<D> {
}
/// Compute the angle between this vector and another
///
/// Returns a zero angle, if the magnitude of `self` or `other` is zero.
pub fn angle_to(&self, other: &Self) -> Scalar {
let product = self.magnitude() * other.magnitude();
if product.is_zero() {