Mercurial > hg > orthanc-stone
diff Framework/Toolbox/CoordinateSystem3D.h @ 157:2309e8d86efe wasm
IntersectPlaneAndLine
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 09 Feb 2018 16:00:29 +0100 |
parents | 2e023be0563c |
children | 0a73d76333db |
line wrap: on
line diff
--- a/Framework/Toolbox/CoordinateSystem3D.h Thu Feb 08 15:22:35 2018 +0100 +++ b/Framework/Toolbox/CoordinateSystem3D.h Fri Feb 09 16:00:29 2018 +0100 @@ -35,6 +35,7 @@ Vector normal_; Vector axisX_; Vector axisY_; + double d_; void CheckAndComputeNormal(); @@ -43,6 +44,8 @@ void SetupCanonical(); + double GetOffset() const; + public: CoordinateSystem3D() { @@ -95,5 +98,9 @@ bool IntersectSegment(Vector& p, const Vector& edgeFrom, const Vector& edgeTo) const; + + bool IntersectLine(Vector& p, + const Vector& origin, + const Vector& direction) const; }; }