![]() |
MyScript Interactive Ink SDK 4.3.0
|
#include <Rectangle.h>
Public Member Functions | |
| Rectangle ()=default | |
| Rectangle (float x, float y, float width, float height) noexcept | |
| bool | operator== (const Rectangle &other) const noexcept |
| bool | operator!= (const Rectangle &other) const noexcept |
Public Attributes | |
| float | x = 0.f |
| float | y = 0.f |
| float | width = 0.f |
| float | height = 0.f |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Rectangle &rect) |
Represents an axis aligned rectangle on the 2D plane.
|
default |
Default constructor.
|
inlinenoexcept |
Constructor.
| x | the x coordinate of the top left point. |
| y | the y coordinate of the top left point. |
| width | the width. |
| height | the height. |
|
inlinenoexcept |
Operator == overload.
| other | the rectangle to compare this with. |
true if the rectangles are strictly equal, otherwise false.
|
inlinenoexcept |
Operator != overload.
| other | the rectangle to compare this with. |
true if the rectangles are strictly equal, otherwise false.
|
friend |
Inserts a textual representation of a rectangle in the output stream.
| os | the output stream. |
| rect | the rectangle. |
| float myscript::iink::graphics::Rectangle::x = 0.f |
The x position of the left edge of the rectangle.
| float myscript::iink::graphics::Rectangle::y = 0.f |
The y position of the top edge of the rectangle.
| float myscript::iink::graphics::Rectangle::width = 0.f |
The width of the rectangle.
| float myscript::iink::graphics::Rectangle::height = 0.f |
The height of the rectangle.