Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/CoordinateSystem3D.h @ 1013:53cc787bd7bc toa2019092301
- Added an optimized ProjectPoint2 to CoordinateSystem3D. It has *not* replaced
the ProjectPoint method because more tests need to be written.
- ProjectPointOntoPlane2 is a faster version of
GeometryToolbox::ProjectPointOntoPlane. Same remark as above.
- DicomStructureSet.cpp now uses this optimized call.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 23 Sep 2019 15:18:33 +0200 |
parents | 32eaf4929b08 |
children | 19b1c8caade4 2d8ab34c8c91 |
comparison
equal
deleted
inserted
replaced
1012:050f01d7951b | 1013:53cc787bd7bc |
---|---|
99 | 99 |
100 void ProjectPoint(double& offsetX, | 100 void ProjectPoint(double& offsetX, |
101 double& offsetY, | 101 double& offsetY, |
102 const Vector& point) const; | 102 const Vector& point) const; |
103 | 103 |
104 /* | |
105 Alternated faster implementation (untested yet) | |
106 */ | |
107 void ProjectPoint2(double& offsetX, | |
108 double& offsetY, | |
109 const Vector& point) const; | |
110 | |
104 bool IntersectSegment(Vector& p, | 111 bool IntersectSegment(Vector& p, |
105 const Vector& edgeFrom, | 112 const Vector& edgeFrom, |
106 const Vector& edgeTo) const; | 113 const Vector& edgeTo) const; |
107 | 114 |
108 bool IntersectLine(Vector& p, | 115 bool IntersectLine(Vector& p, |