Searched refs:signedDistance (Results 1 - 3 of 3) sorted by relevance

/external/eigen/Eigen/src/Geometry/
H A DHyperplane.h143 EIGEN_DEVICE_FUNC inline Scalar signedDistance(const VectorType& p) const { return normal().dot(p) + offset(); } function in class:Eigen::Hyperplane
146 * \sa signedDistance()
148 EIGEN_DEVICE_FUNC inline Scalar absDistance(const VectorType& p) const { return numext::abs(signedDistance(p)); }
152 EIGEN_DEVICE_FUNC inline VectorType projection(const VectorType& p) const { return p - signedDistance(p) * normal(); }
/external/eigen/test/
H A Dgeo_hyperplane.cpp48 VERIFY_IS_APPROX( pl1.signedDistance(p1 + n1 * s0), s0);
50 VERIFY_IS_MUCH_SMALLER_THAN( abs(pl1.signedDistance(p1 + n1 * s0) - s0), Scalar(1) );
51 VERIFY_IS_MUCH_SMALLER_THAN( pl1.signedDistance(pl1.projection(p0)), Scalar(1) );
H A Dgeo_parametrizedline.cpp59 VERIFY_IS_MUCH_SMALLER_THAN(hp.signedDistance(pi), RealScalar(1));

Completed in 104 milliseconds