22 auto const& result = (mat *
p.asEigenVector3d()).eval();
33 auto absAndRelDiffLargerThanEps = [eps](
double const u,
34 double const v) ->
bool
36 return std::abs(
u -
v) > eps * std::min(std::abs(
v), std::abs(
u)) &&
37 std::abs(
u -
v) > eps;
40 return std::lexicographical_compare(
42 [&absAndRelDiffLargerThanEps](
auto const u,
auto const v)
44 if (absAndRelDiffLargerThanEps(u, v))
52extern const Point3d
ORIGIN{{{0.0, 0.0, 0.0}}};
Definition of the Point3d class.
Eigen::Vector3d const & asEigenVector3d() const
const double * data() const
MathLib::Point3d operator*(Eigen::Matrix3d const &mat, MathLib::Point3d const &p)
bool lessEq(Point3d const &a, Point3d const &b, double eps)
double sqrDist(MathLib::Point3d const &p0, MathLib::Point3d const &p1)