This commit is contained in:
Eric Mertens
2022-11-11 17:46:56 -08:00
parent ce8a6a1c79
commit 68cde80601
3 changed files with 63 additions and 84 deletions

View File

@@ -62,9 +62,11 @@ auto CW(Coord c) -> Coord {
}
auto CCW(Coord c) -> Coord {
c = Invert(c);
c.y = -c.y;
return c;
return CW(CW(CW(c)));
}
auto Turn180(Coord c) -> Coord {
return CW(CW(c));
}
auto Norm1(Coord c) -> std::int64_t {