| 42 | } |
| 43 | |
| 44 | Point Point::withOffset(const Point& other) const { |
| 45 | return Point(x + other.x, y + other.y); |
| 46 | } |
| 47 | |
| 48 | Point Point::fromPixels(int32_t width, int32_t height, float pointScale) { |
| 49 | return Point(pixelsToPoints(width, pointScale), pixelsToPoints(height, pointScale)); |
no test coverage detected