QLineF

#include <QtCore/QLineF>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QLineF


Overview

Public Types Index

Public Functions Index

QLineF ()
QLineF (const QPointF &pt1, const QPointF &pt2)
QLineF (qreal x1, qreal y1, qreal x2, qreal y2)
QLineF (const QLine &line)
qrealangle () const
qrealangle (const QLineF &l) const
qrealangleTo (const QLineF &l) const
qrealdx () const
qrealdy () const
IntersectTypeintersect (const QLineF &l, QPointF *intersectionPoint) const
boolisNull () const
qreallength () const
QLineFnormalVector () const
booloperator!= (const QLineF &d) const
booloperator== (const QLineF &d) const
QPointFp1 () const
QPointFp2 () const
QPointFpointAt (qreal t) const
voidsetAngle (qreal angle)
voidsetLength (qreal len)
voidsetLine (qreal x1, qreal y1, qreal x2, qreal y2)
voidsetP1 (const QPointF &p1)
voidsetP2 (const QPointF &p2)
voidsetPoints (const QPointF &p1, const QPointF &p2)
QLinetoLine () const
voidtranslate (const QPointF &p)
voidtranslate (qreal dx, qreal dy)
QLineFtranslated (const QPointF &p) const
QLineFtranslated (qreal dx, qreal dy) const
QLineFunitVector () const
qrealx1 () const
qrealx2 () const
qrealy1 () const
qrealy2 () const

Static Public Functions Index

QLineFfromPolar (qreal length, qreal angle)

Public Types

IntersectType

NoIntersection
BoundedIntersection
UnboundedIntersection

Public Functions

QLineF ()

QLineF (

QLineF (
  • qrealx1,
  • qrealy1,
  • qrealx2,
  • qrealy2 )

QLineF (

qreal angle ()

qreal angle (

qreal angleTo (

qreal dx ()

qreal dy ()

IntersectType intersect (

bool isNull ()

qreal length ()

QLineF normalVector ()

bool operator!= (

bool operator== (

QPointF p1 ()

QPointF p2 ()

QPointF pointAt (
  • qrealt)

void setAngle (
  • qrealangle)

void setLength (
  • qreallen)

void setLine (
  • qrealx1,
  • qrealy1,
  • qrealx2,
  • qrealy2 )

void setP1 (

void setP2 (

void setPoints (

QLine toLine ()

void translate (

void translate (
  • qrealdx,
  • qrealdy )

QLineF translated (

QLineF translated (
  • qrealdx,
  • qrealdy )

QLineF unitVector ()

qreal x1 ()

qreal x2 ()

qreal y1 ()

qreal y2 ()

Static Public Functions

QLineF fromPolar (
  • qreallength,
  • qrealangle )

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus