Converts a coordinate from the cartesian space to the isometric space.
Vector2 cartToIso(Vector2 p) { final x = p.x - p.y; final y = (p.x + p.y) / 2; return Vector2(x, y); }