My Project
Public Types | Public Member Functions | Static Public Member Functions | List of all members
ParaEngine::QLineF Class Reference

Public Types

enum  IntersectType { NoIntersection, BoundedIntersection, UnboundedIntersection }
 

Public Member Functions

 QLineF (const QPointF &pt1, const QPointF &pt2)
 
 QLineF (float x1, float y1, float x2, float y2)
 
 QLineF (const QLine &line)
 
bool isNull () const
 
QPointF p1 () const
 
QPointF p2 () const
 
float x1 () const
 
float y1 () const
 
float x2 () const
 
float y2 () const
 
float dx () const
 
float dy () const
 
float length () const
 
void setLength (float len)
 
float angle () const
 
void setAngle (float angle)
 
float angleTo (const QLineF &l) const
 
QLineF unitVector () const
 
QLineF normalVector () const
 
IntersectType intersect (const QLineF &l, QPointF *intersectionPoint) const
 
float angle (const QLineF &l) const
 
QPointF pointAt (float t) const
 
void translate (const QPointF &p)
 
void translate (float dx, float dy)
 
QLineF translated (const QPointF &p) const
 
QLineF translated (float dx, float dy) const
 
void setP1 (const QPointF &p1)
 
void setP2 (const QPointF &p2)
 
void setPoints (const QPointF &p1, const QPointF &p2)
 
void setLine (float x1, float y1, float x2, float y2)
 
bool operator== (const QLineF &d) const
 
bool operator!= (const QLineF &d) const
 
QLine toLine () const
 

Static Public Member Functions

static QLineF fromPolar (float length, float angle)
 

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