src/loc.rs

branch
dev
changeset 132
89371dc4d637
parent 129
d2994e34a5f5
child 133
2b13f8a0c8ba
equal deleted inserted replaced
130:0a689881b0f1 132:89371dc4d637
431 domination!(Linfinity, L1); 431 domination!(Linfinity, L1);
432 domination!(Linfinity, L2); 432 domination!(Linfinity, L2);
433 domination!(L2, L1); 433 domination!(L2, L1);
434 434
435 impl<F: Float, const N: usize> Euclidean<F> for Loc<N, F> { 435 impl<F: Float, const N: usize> Euclidean<F> for Loc<N, F> {
436 type Output = Self;
437
438 /// This implementation is not stabilised as it's meant to be used for very small vectors. 436 /// This implementation is not stabilised as it's meant to be used for very small vectors.
439 /// Use [`nalgebra`] for larger vectors. 437 /// Use [`nalgebra`] for larger vectors.
440 #[inline] 438 #[inline]
441 fn dot<I: Instance<Self>>(&self, other: I) -> F { 439 fn dot<I: Instance<Self>>(&self, other: I) -> F {
442 self.0 440 self.0

mercurial