comparison Framework/Toolbox/LinearAlgebra.h @ 647:6af3099ed8da

uncoupling OrthancStone::SlicesSorter from OrthancStone::Slice
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 13 May 2019 17:03:46 +0200
parents b70e9be013e4
children 32eaf4929b08
comparison
equal deleted inserted replaced
646:b4fe9642e83b 647:6af3099ed8da
135 135
136 inline bool IsNear(double x, 136 inline bool IsNear(double x,
137 double y, 137 double y,
138 double threshold) 138 double threshold)
139 { 139 {
140 return fabs(x - y) < threshold; 140 return fabs(x - y) <= threshold;
141 } 141 }
142 142
143 inline bool IsNear(double x, 143 inline bool IsNear(double x,
144 double y) 144 double y)
145 { 145 {