2D Point with float values More...
#include "Point2D.h"
Public Member Functions | |
Point2DF () | |
Point2DF (float _x, float _y) | |
Point2DF (const Point2DF &_other) | |
virtual | ~Point2DF () |
Point2DF & | operator= (const Point2DF &_other) |
bool | operator== (const Point2DF &_other) const |
bool | operator!= (const Point2DF &_other) const |
Point2DF | operator+ (const Point2DF &_other) const |
Point2DF & | operator+= (const Point2DF &_other) |
Point2DF | operator- (const Point2DF &_other) const |
Point2DF & | operator-= (const Point2DF &_other) |
virtual void | addToJsonObject (JsonValue &_object, JsonAllocator &_allocator) const override |
Add the object contents to the provided JSON object. | |
virtual void | setFromJsonObject (const ConstJsonObject &_object) override |
Will set the object contents from the provided JSON object. | |
float | x (void) const |
Returns the current X value. | |
float | y (void) const |
Returns the current Y value. | |
void | setX (float _x) |
Set the X value. | |
void | setY (float _y) |
Set the Y value. | |
void | set (float _x, float _y) |
Set the X and Y value. | |
Point2D | toPoint2D (void) const |
Point2DD | toPoint2DD (void) const |
Public Member Functions inherited from ot::Serializable | |
Serializable () | |
virtual | ~Serializable () |
virtual void | addToJsonObject (ot::JsonValue &_object, ot::JsonAllocator &_allocator) const =0 |
Add the object contents to the provided JSON object. | |
2D Point with float values
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
overridevirtual |
Add the object contents to the provided JSON object.
_document | The JSON document (used to get the allocator) |
_object | The JSON object to add the contents to |
|
inline |
|
inline |
|
inline |
Set the X and Y value.
_x | The X value to set |
_y | The y value to set |
|
overridevirtual |
Will set the object contents from the provided JSON object.
_object | The JSON object containing the information |
Will | throw an exception if the provided object is not valid (members missing or invalid types) |
Implements ot::Serializable.
|
inline |
Set the X value.
_x | The X value to set |
|
inline |
Set the Y value.
_y | The Y value to set |
ot::Point2D ot::Point2DF::toPoint2D | ( | void | ) | const |
ot::Point2DD ot::Point2DF::toPoint2DD | ( | void | ) | const |
|
inline |
Returns the current X value.
|
inline |
Returns the current Y value.