[−][src]Trait pointcloud::Metric
Metric trait. Done as a trait so that it's easy to switch out.
Use a specific T. Don't implement it for a generic [S], but for f32 or u8, as you can use SIMD.
This library uses packed_simd
.
Required methods
pub fn dist(x: &T, y: &T) -> f32
[src]
Distance calculator. Optimize the hell out of this if you're implementing it.