Geometric class. More...
#include <ilviews/base/geometry/IlvBaseGeometry.h>
Public Member Functions | |
IlvDoublePoint (IlDouble x=(IlDouble) 0, IlDouble y=(IlDouble) 0) | |
Constructor. More... | |
IlDouble | getX () const |
Gets the x coordinate. More... | |
IlDouble | getY () const |
Gets the y coordinate. More... | |
void | move (IlDouble newX, IlDouble newY) |
Moves the point. More... | |
int | operator!= (const IlvDoublePoint &p) const |
Tests points for inequality. More... | |
IlvDoublePoint & | operator= (const IlvDoublePoint &p)=default |
Copies a point. More... | |
int | operator== (const IlvDoublePoint &p) const |
Tests points for equality. More... | |
void | set (IlDouble newX, IlDouble newY) |
Sets the point coordinates. More... | |
void | setX (IlDouble newX) |
Sets the x coordinate. More... | |
void | setY (IlDouble newY) |
Sets the y coordinate. More... | |
void | translate (IlDouble dx, IlDouble dy) |
Moves the object by relative translation. More... | |
Geometric class.
Library: xviews or winviews or mviews (mutually exclusive)
The IlvDoublePoint
class deals with floating point coordinate values coded on a double-precision floating number.
IlvPoint
, IlvFloatPoint
. Constructor.
Initializes a new IlvDoublePoint
with the indicated coordinates. point. Its parameters represent the x and y coordinates of the floating point.
IlDouble IlvDoublePoint::getX | ( | ) | const |
Gets the x coordinate.
IlDouble IlvDoublePoint::getY | ( | ) | const |
Gets the y coordinate.
Moves the point.
newX | The new x coordinate. |
newY | The new y coordinate. |
int IlvDoublePoint::operator!= | ( | const IlvDoublePoint & | p | ) | const |
Tests points for inequality.
0
if p is the same as the current object.
|
default |
Copies a point.
Copies p to the current object.
p | The source point. |
int IlvDoublePoint::operator== | ( | const IlvDoublePoint & | p | ) | const |
Tests points for equality.
0
if p is different from the current object. Sets the point coordinates.
newX | The new x coordinate. |
newY | The new y coordinate. |
void IlvDoublePoint::setX | ( | IlDouble | newX | ) |
Sets the x coordinate.
newX | The new x coordinate. |
void IlvDoublePoint::setY | ( | IlDouble | newY | ) |
Sets the y coordinate.
newY | The new y coordinate. |