godot/thirdparty/msdfgen/core/SignedDistance.h
Rémi Verschelde 142e648000 msdfgen: Sync with upstream 1.10
(cherry picked from commit 3c25dfe0e4)
2023-06-16 17:22:13 +02:00

24 lines
560 B
C++

#pragma once
namespace msdfgen {
/// Represents a signed distance and alignment, which together can be compared to uniquely determine the closest edge segment.
class SignedDistance {
public:
double distance;
double dot;
SignedDistance();
SignedDistance(double dist, double d);
friend bool operator<(SignedDistance a, SignedDistance b);
friend bool operator>(SignedDistance a, SignedDistance b);
friend bool operator<=(SignedDistance a, SignedDistance b);
friend bool operator>=(SignedDistance a, SignedDistance b);
};
}