21#include <tqvaluevector.h>
29 typedef KoPoint super;
32 KisPoint( double x, double y) : super(x, y) {}
33 KisPoint( const TQPoint& pt) : super(pt) {}
34 KisPoint( const KoPoint& pt) : super(pt) {}
36 int floorX() const { return static_cast<int>(x()); }
37 int floorY() const { return static_cast<int>(y()); }
38 int roundX() const { return tqRound(x()); }
39 int roundY() const { return tqRound(y()); }
41 TQPoint floorTQPoint() const { return TQPoint( static_cast<int>(x()), static_cast<int>(y())); }
42 TQPoint roundTQPoint() const { return TQPoint(tqRound(x()), tqRound(y())); }
45typedef TQValueVector<KisPoint> vKisPoint;
A double-based point class that can return it's coordinates approximated to integers.
|