1
2#pragma once
3
4namespace msdfgen {
5
6/// Represents a signed distance and alignment, which together can be compared to uniquely determine the closest edge segment.
7class SignedDistance {
8
9public:
10 double distance;
11 double dot;
12
13 SignedDistance();
14 SignedDistance(double dist, double d);
15
16 friend bool operator<(SignedDistance a, SignedDistance b);
17 friend bool operator>(SignedDistance a, SignedDistance b);
18 friend bool operator<=(SignedDistance a, SignedDistance b);
19 friend bool operator>=(SignedDistance a, SignedDistance b);
20
21};
22
23}
24