Rogue Wave Views Foundation Package API Reference Guide |
Rogue Wave Views Documentation Home |
Geometric class. More...
#include <ilviews/base/geometry.h>
Public Member Functions | |
IlvDeltaPoint (IlvDeltaPos x=0, IlvDeltaPos y=0) | |
Constructor. More... | |
IlvDeltaPos | getX () const |
Gets the x offset. More... | |
IlvDeltaPos | getY () const |
Gets the y offset. More... | |
void | move (IlvDeltaPos x, IlvDeltaPos y) |
Moves a vector object. More... | |
IlvDeltaPoint & | operator= (const IlvDeltaPoint &p) |
Copies a delta point vector. More... | |
int | operator== (const IlvDeltaPoint &p) const |
Tests vectors for equality. More... | |
void | setX (IlvDeltaPos xx) |
Sets the x offset. More... | |
void | setY (IlvDeltaPos yy) |
Sets the y offset. More... | |
void | translate (IlvDeltaPos x, IlvDeltaPos y) |
Translates a vector. More... | |
Geometric class.
Library: xviews or winviews or mviews (mutually exclusive)
The IlvDeltaPoint
class is used to create a vector. A vector is an oriented displacement in a two-dimensional coordinate system.
IlvPoint
, IlvFloatPoint
, IlvDoublePoint
. IlvDeltaPoint::IlvDeltaPoint | ( | IlvDeltaPos | x = 0 , |
IlvDeltaPos | y = 0 |
||
) |
Constructor.
Initializes a vector with defined coordinates.
x | The x coordinate of the vector. |
y | The y coordinate of the vector. |
IlvDeltaPos IlvDeltaPoint::getX | ( | ) | const |
Gets the x offset.
Retrieves the x offset for a vector.
IlvDeltaPos IlvDeltaPoint::getY | ( | ) | const |
Gets the y offset.
Retrieves the y offset for a vector.
void IlvDeltaPoint::move | ( | IlvDeltaPos | x, |
IlvDeltaPos | y | ||
) |
Moves a vector object.
Takes an existing vector object and assigns another value to it.
x | The x coordinate of the vector. |
y | The y coordinate of the vector. |
IlvDeltaPoint& IlvDeltaPoint::operator= | ( | const IlvDeltaPoint & | p | ) |
Copies a delta point vector.
Copies p to the current object.
p | The delta point vector. |
int IlvDeltaPoint::operator== | ( | const IlvDeltaPoint & | p | ) | const |
Tests vectors for equality.
p | The delta point vector. |
0
if p is different from the current object. void IlvDeltaPoint::setX | ( | IlvDeltaPos | xx | ) |
Sets the x offset.
Assigns a new x offset value to a vector.
xx | The x offset. |
void IlvDeltaPoint::setY | ( | IlvDeltaPos | yy | ) |
Sets the y offset.
Assigns a new y offset value to a vector.
yy | The y offset. |
void IlvDeltaPoint::translate | ( | IlvDeltaPos | x, |
IlvDeltaPos | y | ||
) |
Translates a vector.
Uses the delta parameters to modify the current value of the vector.
x | The x offset. |
y | The y offset. |
© Copyright 2016, 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.