src/loc.rs

branch
dev
changeset 151
402d717bb5c0
parent 150
c4e394a9c84c
child 152
dab30b331f49
child 162
bea0c3841ced
equal deleted inserted replaced
150:c4e394a9c84c 151:402d717bb5c0
446 domination!(Linfinity, L1); 446 domination!(Linfinity, L1);
447 domination!(Linfinity, L2); 447 domination!(Linfinity, L2);
448 domination!(L2, L1); 448 domination!(L2, L1);
449 449
450 impl<F: Float, const N: usize> Euclidean<F> for Loc<N, F> { 450 impl<F: Float, const N: usize> Euclidean<F> for Loc<N, F> {
451 type OwnedEuclidean = Self;
452
451 /// This implementation is not stabilised as it's meant to be used for very small vectors. 453 /// This implementation is not stabilised as it's meant to be used for very small vectors.
452 /// Use [`nalgebra`] for larger vectors. 454 /// Use [`nalgebra`] for larger vectors.
453 #[inline] 455 #[inline]
454 fn dot<I: Instance<Self>>(&self, other: I) -> F { 456 fn dot<I: Instance<Self>>(&self, other: I) -> F {
455 other.eval_ref_decompose(|r| { 457 other.eval_ref_decompose(|r| {

mercurial