smallpt::nalgebra
pub fn distance_squared<P>(p1: &P, p2: &P) -> <P as EuclideanSpace>::Real where P: EuclideanSpace,
The squared distance between two points.