41 #ifndef DTK_EUCLIDEANDISTANCE_IMPL_HPP 42 #define DTK_EUCLIDEANDISTANCE_IMPL_HPP 57 return std::abs( x1[0] - x2[0] );
69 double xx = x1[0] - x2[0];
70 double xy = x1[1] - x2[1];
71 return std::sqrt( xx * xx + xy * xy );
83 double xx = x1[0] - x2[0];
84 double xy = x1[1] - x2[1];
85 double xz = x1[2] - x2[2];
86 return std::sqrt( xx * xx + xy * xy + xz * xz );
95 #endif // end DTK_EUCLIDEANDISTANCE_IMPL_HPP Eucliden distance function.