|
Public Slots |
|
QString | toString () const |
|
double | getX () const |
|
double | getY () const |
|
void | setX (double x) |
|
void | setY (double y) |
| void | setPolar (double radius, double angle) |
| | Sets the vector to the given polar coordinate.
|
| double | distanceTo (const QS_VectorWrapper *v) const |
| double | angle () const |
| double | angleTo (const QS_VectorWrapper *v) const |
| double | magnitude () const |
| bool | isInWindow (const QS_VectorWrapper *c1, const QS_VectorWrapper *c2) |
| | Checks if this vector lies within a rectangular area (window).
|
|
void | move (const QS_VectorWrapper *offset) |
| | Moves this vector by the given offset.
|
|
void | rotate (double cx, double cy, double ang) |
|
void | scale (double cx, double cy, double factor) |
Public Member Functions |
|
| QS_VectorWrapper (RS_Vector v) |
|
| QS_VectorWrapper (double x, double y) |
|
virtual RS_Vector | getVector () const |
Properties |
|
double | x |
|
double | y |