chalk

KisPoint Class Reference

#include <kis_point.h>

Inherits KoPoint.

Inherited by KisPerspectiveGridNode.

Public Member Functions

 KisPoint (double x, double y)
 
 KisPoint (const TQPoint &pt)
 
 KisPoint (const KoPoint &pt)
 
int floorX () const
 
int floorY () const
 
int roundX () const
 
int roundY () const
 
TQPoint floorTQPoint () const
 
TQPoint roundTQPoint () const
 

Detailed Description

A double-based point class that can return it's coordinates approximated to integers.

Definition at line 28 of file kis_point.h.

Constructor & Destructor Documentation

◆ KisPoint() [1/4]

KisPoint::KisPoint ( )
inline

Definition at line 31 of file kis_point.h.

◆ KisPoint() [2/4]

KisPoint::KisPoint ( double  x,
double  y 
)
inline

Definition at line 32 of file kis_point.h.

◆ KisPoint() [3/4]

KisPoint::KisPoint ( const TQPoint &  pt)
inline

Definition at line 33 of file kis_point.h.

◆ KisPoint() [4/4]

KisPoint::KisPoint ( const KoPoint &  pt)
inline

Definition at line 34 of file kis_point.h.

Member Function Documentation

◆ floorTQPoint()

TQPoint KisPoint::floorTQPoint ( ) const
inline

Definition at line 41 of file kis_point.h.

◆ floorX()

int KisPoint::floorX ( ) const
inline

Definition at line 36 of file kis_point.h.

◆ floorY()

int KisPoint::floorY ( ) const
inline

Definition at line 37 of file kis_point.h.

◆ roundTQPoint()

TQPoint KisPoint::roundTQPoint ( ) const
inline

Definition at line 42 of file kis_point.h.

◆ roundX()

int KisPoint::roundX ( ) const
inline

Definition at line 38 of file kis_point.h.

◆ roundY()

int KisPoint::roundY ( ) const
inline

Definition at line 39 of file kis_point.h.


The documentation for this class was generated from the following file: