|
Jameo Core Library
|
Defines a size. More...
Public Member Functions | |
| Size () | |
| Constructor creates size <0,0> | |
| Size (double width, double height) | |
| Constructor creates size <width,height> | |
| Size (const Point &pt) | |
| double | width () const |
| Returns the width. | |
| double | height () const |
| Returns the height. | |
| double & | rWidth () |
| Returns reference to the width. | |
| double & | rHeight () |
| Returns reference to the height. | |
| void | setWidth (double width) |
| void | setHeight (double height) |
| Size | cWiseMin (const Size &other) const |
| Returns the component-wise minimum of this size and the other size. | |
| Size | cWiseMax (const Size &other) const |
| Returns the component-wise maximum of this size and the other size. | |
| bool | operator== (const Size &other) const |
| bool | operator!= (const Size &other) const |
Friends | |
| DllExport friend Size | operator- (const Size &v1, const Size &v2) |
| DllExport friend Size | operator* (const double &d, const Size &v) |
Defines a size.
| jm::Size::Size | ( | ) |
Constructor creates size <0,0>
| jm::Size::Size | ( | double | width, |
| double | height | ||
| ) |
Constructor creates size <width,height>
|
explicit |
Returns the component-wise maximum of this size and the other size.
Returns the component-wise minimum of this size and the other size.
| double jm::Size::height | ( | ) | const |
Returns the height.
| bool jm::Size::operator!= | ( | const Size & | other | ) | const |
| bool jm::Size::operator== | ( | const Size & | other | ) | const |
| double & jm::Size::rHeight | ( | ) |
Returns reference to the height.
| double & jm::Size::rWidth | ( | ) |
Returns reference to the width.
| void jm::Size::setHeight | ( | double | height | ) |
| void jm::Size::setWidth | ( | double | width | ) |
| double jm::Size::width | ( | ) | const |
Returns the width.