5#ifndef MOLYBDEN_GEOMETRY_HPP
6#define MOLYBDEN_GEOMETRY_HPP
A pair of numbers that in general are used to define coordinates in the two-dimensional space.
Definition geometry.hpp:16
int32_t y
The vertical coordinate.
Definition geometry.hpp:28
int32_t x
The horizontal coordinate.
Definition geometry.hpp:23
A rectangle described by the location and dimensions.
Definition geometry.hpp:75
Point origin
The upper-left corner of the rectangle.
Definition geometry.hpp:84
Size size
The rectangle dimensions.
Definition geometry.hpp:89
A pair of numbers that in general are used to define dimensions in the two-dimensional space.
Definition geometry.hpp:35
bool operator==(const Size &other) const
Two sizes are equal if their width and height are equal.
Definition geometry.hpp:52
static Size empty()
Creates an empty Size with zero width and height.
Definition geometry.hpp:39
bool isEmpty() const
Returns true if this size is empty.
Definition geometry.hpp:47
bool operator!=(const Size &other) const
Two sizes are unequal if either their width or height are unequal.
Definition geometry.hpp:59
uint32_t width
The horizontal dimension.
Definition geometry.hpp:64
uint32_t height
The vertical dimension.
Definition geometry.hpp:69