comparison OrthancStone/Sources/Toolbox/CoordinateSystem3D.cpp @ 1974:446e0d3e9019

fix unit test GeometryToolbox.OrientationMarkers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 28 Oct 2022 17:58:59 +0200
parents cbf54cd28d59
children 07964689cb0b
comparison
equal deleted inserted replaced
1973:596f4752fa42 1974:446e0d3e9019
396 396
397 const char orientationX = v[0] < 0 ? 'R' : 'L'; 397 const char orientationX = v[0] < 0 ? 'R' : 'L';
398 const char orientationY = v[1] < 0 ? 'A' : 'P'; 398 const char orientationY = v[1] < 0 ? 'A' : 'P';
399 const char orientationZ = v[2] < 0 ? 'F' : 'H'; 399 const char orientationZ = v[2] < 0 ? 'F' : 'H';
400 400
401 double absX = abs(v[0]); 401 double absX = std::abs(v[0]);
402 double absY = abs(v[1]); 402 double absY = std::abs(v[1]);
403 double absZ = abs(v[2]); 403 double absZ = std::abs(v[2]);
404 404
405 std::string result; 405 std::string result;
406 406
407 static const double THRESHOLD = 0.0001; 407 static const double THRESHOLD = 0.0001;
408 408