Qt 4.8
Public Functions | Public Variables | List of all members
QHomogeneousCoordinate Struct Reference

Public Functions

 QHomogeneousCoordinate ()
 
 QHomogeneousCoordinate (qreal x_, qreal y_, qreal w_)
 
const QPointF toPoint () const
 

Public Variables

qreal w
 
qreal x
 
qreal y
 

Detailed Description

Definition at line 1543 of file qtransform.cpp.

Constructors and Destructors

◆ QHomogeneousCoordinate() [1/2]

QHomogeneousCoordinate::QHomogeneousCoordinate ( )
inline

Definition at line 1549 of file qtransform.cpp.

1549 {}

◆ QHomogeneousCoordinate() [2/2]

QHomogeneousCoordinate::QHomogeneousCoordinate ( qreal  x_,
qreal  y_,
qreal  w_ 
)
inline

Definition at line 1550 of file qtransform.cpp.

Functions

◆ toPoint()

const QPointF QHomogeneousCoordinate::toPoint ( ) const
inline

Definition at line 1552 of file qtransform.cpp.

Referenced by lineTo_clipped().

1552  {
1553  qreal iw = 1. / w;
1554  return QPointF(x * iw, y * iw);
1555  }
double qreal
Definition: qglobal.h:1193
The QPointF class defines a point in the plane using floating point precision.
Definition: qpoint.h:214

Properties

◆ w

qreal QHomogeneousCoordinate::w

Definition at line 1547 of file qtransform.cpp.

Referenced by lineTo_clipped(), and mapHomogeneous().

◆ x

qreal QHomogeneousCoordinate::x

Definition at line 1545 of file qtransform.cpp.

Referenced by lineTo_clipped(), and mapHomogeneous().

◆ y

qreal QHomogeneousCoordinate::y

Definition at line 1546 of file qtransform.cpp.

Referenced by lineTo_clipped(), and mapHomogeneous().


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