50 qreal xd = (end.x() - start.x());
51 qreal yd = (end.y() - start.y());
53 int x = (int)start.x();
54 int y = (int)start.y();
59 int y2 = (int)end.y();
60 int x2 = (int)end.x();
108 int xd = (int)(end.x() - start.x());
109 int yd = (int)(end.y() - start.y());
111 int x = (int)start.x();
112 int y = (int)start.y();
113 float fx = start.x();
114 float fy = start.y();
115 float m = (float)yd / (
float)xd;
116 int y2 = (int)end.y();
117 int x2 = (int)end.x();
132 x = (int)(fx + 0.5f);
147 y = (int)(fy + 0.5f);
const QVector< QPointF > & getLinearTrajectory(const QPointF &start, const QPointF &end, double space)
QVector< QPointF > m_path
void addPoint(QPointF pos)
QVector< QPointF > getDDATrajectory(QPointF start, QPointF end, double space)