#pragma once #include <cmath> #include <cfloat> #include "base.h" namespace msdfgen { /// Represents a signed distance and alignment, which together can be compared to uniquely determine the closest edge segment. class SignedDistance { … }; inline bool operator<(const SignedDistance a, const SignedDistance b) { … } inline bool operator>(const SignedDistance a, const SignedDistance b) { … } inline bool operator<=(const SignedDistance a, const SignedDistance b) { … } inline bool operator>=(const SignedDistance a, const SignedDistance b) { … } }