diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2024-03-12 10:26:55 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2024-03-13 09:12:50 +0200 |
commit | 0d02568ff8bd59cd9be9f7e09a444e9cf6689ae2 (patch) | |
tree | 122fe5b3e0f4ddb739602a0fbb218f7f27584920 /thirdparty/msdfgen/core/SignedDistance.cpp | |
parent | 22c20cea6e59a8a95585adb866c007a55c428806 (diff) | |
download | redot-engine-0d02568ff8bd59cd9be9f7e09a444e9cf6689ae2.tar.gz |
Update ICU and msdfgen.
Diffstat (limited to 'thirdparty/msdfgen/core/SignedDistance.cpp')
-rw-r--r-- | thirdparty/msdfgen/core/SignedDistance.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/thirdparty/msdfgen/core/SignedDistance.cpp b/thirdparty/msdfgen/core/SignedDistance.cpp deleted file mode 100644 index be956d953e..0000000000 --- a/thirdparty/msdfgen/core/SignedDistance.cpp +++ /dev/null @@ -1,29 +0,0 @@ - -#include "SignedDistance.h" - -#include <cmath> -#include <cfloat> - -namespace msdfgen { - -SignedDistance::SignedDistance() : distance(-DBL_MAX), dot(1) { } - -SignedDistance::SignedDistance(double dist, double d) : distance(dist), dot(d) { } - -bool operator<(SignedDistance a, SignedDistance b) { - return fabs(a.distance) < fabs(b.distance) || (fabs(a.distance) == fabs(b.distance) && a.dot < b.dot); -} - -bool operator>(SignedDistance a, SignedDistance b) { - return fabs(a.distance) > fabs(b.distance) || (fabs(a.distance) == fabs(b.distance) && a.dot > b.dot); -} - -bool operator<=(SignedDistance a, SignedDistance b) { - return fabs(a.distance) < fabs(b.distance) || (fabs(a.distance) == fabs(b.distance) && a.dot <= b.dot); -} - -bool operator>=(SignedDistance a, SignedDistance b) { - return fabs(a.distance) > fabs(b.distance) || (fabs(a.distance) == fabs(b.distance) && a.dot >= b.dot); -} - -} |