16 #include <Eigen/Dense>
33 template <
typename MATRIX>
37 for (std::size_t i(0); i<3; ++i) {
38 for (std::size_t j(0); j<3; ++j) {
39 new_p[i] += mat(i,j)*
p[j];
50 return (Eigen::Map<Eigen::Vector3d>(
const_cast<double*
>(p0.
getCoords())) -
51 Eigen::Map<Eigen::Vector3d>(
const_cast<double*
>(p1.
getCoords())))
60 return (p0[0]-p1[0])*(p0[0]-p1[0]) + (p0[1]-p1[1])*(p0[1]-p1[1]);
Definition of the TemplatePoint class.
const T * getCoords() const
MathLib::TemplatePoint< double, 3 > Point3d
double sqrDist2d(MathLib::Point3d const &p0, MathLib::Point3d const &p1)
MathLib::Point3d operator*(MATRIX const &mat, MathLib::Point3d const &p)
double sqrDist(MathLib::Point3d const &p0, MathLib::Point3d const &p1)