Returns the center point of the rectangle. Returns a NaN coordinate if pos=-inf and size=inf. */
| 366 | Returns a NaN coordinate if pos=-inf and size=inf. |
| 367 | */ |
| 368 | Vec getCenter() const { |
| 369 | return pos.plus(size.mult(0.5f)); |
| 370 | } |
| 371 | Vec getTopLeft() const { |
| 372 | return pos; |
| 373 | } |
no test coverage detected