![]() |
MyScript Interactive Ink SDK 4.2.0
|
#include <Point.h>
Public Member Functions | |
| Point ()=default | |
| Point (float x, float y) noexcept | |
| bool | isFinite () const noexcept |
| bool | operator== (const Point &other) const noexcept |
| bool | operator!= (const Point &other) const noexcept |
Public Attributes | |
| float | x = 0.f |
| float | y = 0.f |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Point &p) |
Represents a point on the 2D plane.
|
default |
Default constructor.
|
inlinenoexcept |
Constructor.
| x | the x coordinate of the point. |
| y | the y coordinate of the point. |
|
inlinenoexcept |
Checks if point values are finite.
true if both x and y are finite, otherwise false.
|
inlinenoexcept |
Operator == overload.
| other | the point to compare this with. |
true if the points are strictly equal, otherwise false.
|
inlinenoexcept |
Operator != overload.
| other | the point to compare this with. |
true if the points are strictly equal, otherwise false.
|
friend |
Inserts a textual representation of a point in the output stream.
| os | the output stream. |
| p | the point. |
| float myscript::iink::graphics::Point::x = 0.f |
The x position of the point.
| float myscript::iink::graphics::Point::y = 0.f |
The y position of the point.