comparison Framework/Toolbox/GeometryToolbox.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 b70e9be013e4
children 2d8ab34c8c91
comparison
equal deleted inserted replaced
1012:050f01d7951b 1013:53cc787bd7bc
29 { 29 {
30 void ProjectPointOntoPlane(Vector& result, 30 void ProjectPointOntoPlane(Vector& result,
31 const Vector& point, 31 const Vector& point,
32 const Vector& planeNormal, 32 const Vector& planeNormal,
33 const Vector& planeOrigin); 33 const Vector& planeOrigin);
34
35 /*
36 Alternated faster implementation (untested yet)
37 */
38 void ProjectPointOntoPlane2(double& resultX,
39 double& resultY,
40 double& resultZ,
41 const Vector& point,
42 const Vector& planeNormal,
43 const Vector& planeOrigin);
34 44
35 bool IsParallel(const Vector& u, 45 bool IsParallel(const Vector& u,
36 const Vector& v); 46 const Vector& v);
37 47
38 bool IsParallelOrOpposite(bool& isOpposite, 48 bool IsParallelOrOpposite(bool& isOpposite,