[][src]Function pbrt::core::geometry::pnt3_distance_squared

pub fn pnt3_distance_squared<T>(p1: &Point3<T>, p2: &Point3<T>) -> T where
    T: Float + Sub<T, Output = T>, 

The distance squared between two points is the length of the vector between them squared.