mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-06 19:08:28 +00:00
Update doc comment
This commit is contained in:
parent
4739ef60f6
commit
db3ea1c53b
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user