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