lib

KoPoint Class Reference

#include <KoPoint.h>

List of all members.


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 ()
 KoPoint (const double &x, const double &y)
 KoPoint (const QPoint &p)
 ~KoPoint ()
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 ()
KoPointoperator= (const KoPoint &rhs)
KoPointoperator+= (const KoPoint &rhs)
KoPointoperator-= (const KoPoint &rhs)
KoPointoperator *= (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]
 

Convert to a QPoint - with precision loss!

Definition at line 87 of file KoPoint.h.


The documentation for this class was generated from the following file:
KDE Home | KDE Accessibility Home | Description of Access Keys