Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Toolbox/CoordinateSystem3D.cpp @ 1640:52b8b96cb55f
cleaning namespaces
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 10 Nov 2020 16:55:22 +0100 |
parents | 78509230f0d7 |
children | 4a43106bc122 |
comparison
equal
deleted
inserted
replaced
1639:5cdc5b98f14d | 1640:52b8b96cb55f |
---|---|
233 const CoordinateSystem3D& a, | 233 const CoordinateSystem3D& a, |
234 const CoordinateSystem3D& b) | 234 const CoordinateSystem3D& b) |
235 { | 235 { |
236 bool opposite = false; // Ignored | 236 bool opposite = false; // Ignored |
237 | 237 |
238 if (OrthancStone::GeometryToolbox::IsParallelOrOpposite( | 238 if (GeometryToolbox::IsParallelOrOpposite(opposite, a.GetNormal(), b.GetNormal())) |
239 opposite, a.GetNormal(), b.GetNormal())) | |
240 { | 239 { |
241 distance = std::abs(a.ProjectAlongNormal(a.GetOrigin()) - | 240 distance = std::abs(a.ProjectAlongNormal(a.GetOrigin()) - |
242 a.ProjectAlongNormal(b.GetOrigin())); | 241 a.ProjectAlongNormal(b.GetOrigin())); |
243 return true; | 242 return true; |
244 } | 243 } |