Qt 4.8
Functions
qline.cpp File Reference
#include "qline.h"
#include "qdebug.h"
#include "qdatastream.h"
#include "qmath.h"
#include <private/qnumeric_p.h>

Go to the source code of this file.

Functions

QDebug operator<< (QDebug d, const QLine &p)
 
QDebug operator<< (QDebug d, const QLineF &p)
 
static qreal q_deg2rad (qreal x)
 
static qreal q_rad2deg (qreal x)
 

Function Documentation

◆ operator<<() [1/2]

QDebug operator<< ( QDebug  d,
const QLine p 
)

Definition at line 330 of file qline.cpp.

331 {
332  d << "QLine(" << p.p1() << ',' << p.p2() << ')';
333  return d;
334 }
double d
Definition: qnumeric_p.h:62
QPoint p1() const
Returns the line&#39;s start point.
Definition: qline.h:132
QPoint p2() const
Returns the line&#39;s end point.
Definition: qline.h:137

◆ operator<<() [2/2]

QDebug operator<< ( QDebug  d,
const QLineF p 
)

Definition at line 1006 of file qline.cpp.

1007 {
1008  d << "QLineF(" << p.p1() << ',' << p.p2() << ')';
1009  return d;
1010 }
double d
Definition: qnumeric_p.h:62
QPointF p1() const
Returns the line&#39;s start point.
Definition: qline.h:314
QPointF p2() const
Returns the line&#39;s end point.
Definition: qline.h:319

◆ q_deg2rad()

static qreal q_deg2rad ( qreal  x)
inlinestatic

Definition at line 380 of file qline.cpp.

Referenced by QLineF::fromPolar(), and QLineF::setAngle().

381 {
382  return x * qreal(0.01745329251994329576923690768489); /* pi/180 */
383 }
double qreal
Definition: qglobal.h:1193

◆ q_rad2deg()

static qreal q_rad2deg ( qreal  x)
inlinestatic

Definition at line 385 of file qline.cpp.

Referenced by QLineF::angle().

386 {
387  return x * qreal(57.295779513082320876798154814105); /* 180/pi */
388 }
double qreal
Definition: qglobal.h:1193