* \brief Signed distance of the point from the plane * (bounding-box \em not considered) * * > 0 : point is in the direction of the direction vector. */
| 343 | * > 0 : point is in the direction of the direction vector. |
| 344 | */ |
| 345 | inline ScalarType SignedDistanceFromPlane(const Point3D &pt3d_mm) const |
| 346 | { |
| 347 | ScalarType len = GetNormalVnl().two_norm(); |
| 348 | |
| 349 | if (len == 0) |
| 350 | return 0; |
| 351 | |
| 352 | return (pt3d_mm - GetOrigin()) * GetNormal() / len; |
| 353 | } |
| 354 | |
| 355 | /** |
| 356 | * \brief Distance of the plane from another plane |
no test coverage detected