lib
KoPoint Class Reference
#include <KoPoint.h>
Detailed Description
A point whose coordinates are floating-point values ( "double"s ).The API isn't documented, it's a perfect mirror of QPoint.
Definition at line 30 of file KoPoint.h.
Public Member Functions | |
KoPoint (const double &x, const double &y) | |
KoPoint (const QPoint &p) | |
bool | operator== (const KoPoint &rhs) const |
bool | operator!= (const KoPoint &rhs) const |
bool | isNull () const |
double | x () const |
double | y () const |
void | setX (const double &x) |
void | setY (const double &y) |
double & | rx () |
double & | ry () |
KoPoint & | operator= (const KoPoint &rhs) |
KoPoint & | operator+= (const KoPoint &rhs) |
KoPoint & | operator-= (const KoPoint &rhs) |
KoPoint & | operator*= (const double &c) |
void | setCoords (const double &x, const double &y) |
KoPoint | transform (const QWMatrix &m) const |
bool | isNear (const KoPoint &p, double range) const |
double | manhattanLength () const |
QPoint | toQPoint () const |
Static Public Member Functions | |
static double | getAngle (const KoPoint &p1, const KoPoint &p2) |
Friends | |
KoPoint | operator+ (const KoPoint &, const KoPoint &) |
KoPoint | operator- (const KoPoint &, const KoPoint &) |
KoPoint | operator* (const KoPoint &, const double &) |
KoPoint | operator* (const double &, const KoPoint &) |
double | operator* (const KoPoint &a, const KoPoint &b) |
Member Function Documentation
QPoint KoPoint::toQPoint | ( | ) | const [inline] |
The documentation for this class was generated from the following file: