new coord stuff from 09
This commit is contained in:
@@ -73,6 +73,10 @@ auto Norm1(Coord c) -> std::int64_t {
|
||||
return std::abs(c.x) + std::abs(c.y);
|
||||
}
|
||||
|
||||
auto NormInf(Coord c) -> std::int64_t {
|
||||
return std::max(std::abs(c.x), std::abs(c.y));
|
||||
}
|
||||
|
||||
auto operator+(Coord a, Coord b) -> Coord {
|
||||
return {a.x + b.x, a.y + b.y};
|
||||
}
|
||||
|
Reference in New Issue
Block a user