Rogue Wave Views 5.6 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Geometric class. More...
#include <ilviews/base/geometry.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) |
Moves the object. More... | |
int | operator!= (const IlvFloatPoint &p) const |
Tests floating points for inequality. More... | |
IlvFloatPoint & | operator= (const IlvFloatPoint &p) |
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: display
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.
This member function returns the x coordinate of a floating point.
IlFloat IlvFloatPoint::getY | ( | ) | const |
Gets the y floating point coordinate.
This member function returns the y coordinate of a floating point.
Moves the object.
Takes an existing IlvFloatPoint
object and moves it to another position.
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. IlvFloatPoint& IlvFloatPoint::operator= | ( | const IlvFloatPoint & | p | ) |
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.
This member function sets the two coordinates of a floating point.
newX | The x floating point coordinate. |
newY | The y floating point coordinate. |
void IlvFloatPoint::setX | ( | IlFloat | newX | ) |
Sets the x floating point coordinate.
This member function sets the x coordinate of a floating point.
newX | The x floating point coordinate. |
void IlvFloatPoint::setY | ( | IlFloat | newY | ) |
Sets the y floating point coordinate.
This member function sets the y coordinate of a floating point.
newY | The y floating point coordinate. |
Moves the object by relative translation.
Shifts an existing point to another location by means of a delta-distance approach. That is, you indicate the dx and dy values that represent the distance between the current position of the point and the target future position.
dx | The x delta offset. |
dy | The y delta offset. |
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.