Skip to content

Update AlmostEqual method for large numbers to support absolute comparison only

Closes #59 (closed) :

For some of our use-cases we need an absolute comparison also for large numbers. E.g. when an OpenDRIVE map is sampled (clothoids to discrete points), then there will be some inaccuracies between the sampled points depending on the sampling rate. If we define the threshold for acceptable inaccuracies to e.g. 10cm, this equals to 0.1_m. The coordinates in xyz will always be large numbers. Here, the accepted inaccuracy does not depend on how far the points are from the origin but shall always be 0.1_m and not 10%.

Edited by Andreas Rauschert

Merge request reports