summaryrefslogtreecommitdiffstats
path: root/thirdparty/msdfgen/core/SignedDistance.cpp
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2024-03-12 10:26:55 +0200
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2024-03-13 09:12:50 +0200
commit0d02568ff8bd59cd9be9f7e09a444e9cf6689ae2 (patch)
tree122fe5b3e0f4ddb739602a0fbb218f7f27584920 /thirdparty/msdfgen/core/SignedDistance.cpp
parent22c20cea6e59a8a95585adb866c007a55c428806 (diff)
downloadredot-engine-0d02568ff8bd59cd9be9f7e09a444e9cf6689ae2.tar.gz
Update ICU and msdfgen.
Diffstat (limited to 'thirdparty/msdfgen/core/SignedDistance.cpp')
-rw-r--r--thirdparty/msdfgen/core/SignedDistance.cpp29
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);
-}
-
-}