mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Stop using shapely's almost_equals.
The docs say it was deprecated in favor of equals_exact with an explicit tolerance.
This commit is contained in:
parent
eccbfa7a64
commit
db20ad3232
@ -59,7 +59,9 @@ class NavPoint:
|
|||||||
if not isinstance(other, NavPoint):
|
if not isinstance(other, NavPoint):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if not self.point.almost_equals(other.point):
|
# The tolerance value used here is the same that was used by the now deprecated
|
||||||
|
# almost_equals.
|
||||||
|
if not self.point.equals_exact(other.point, 0.5 * 10 ** (-6)):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return self.poly == other.poly
|
return self.poly == other.poly
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user