Math::IntRectangle struct

Represents a rectangular space, defined by two points or by the four edges.

Equivalent to Rectangle, but with integers. (x1, y1) represents the point on the top-left corner; (x2, y2) represents the point on the bottom-right corner.

Constructors, destructors, conversion operators

IntRectangle(int x1, int y1, int x2, int y2)
IntRectangle()

Public functions

auto GetWidth() const -> int
Returns the width of the rectangle.
auto GetHeight() const -> int
Returns the height of the rectangle.

Public variables

int x1
int y1
int x2
int y2