bool BezierCurve::intersects(QPointF point, qreal distance) { bool result = false; if( getStrokedPath(distance, false).contains(point) ) { //if( getSimplePath().controlPointRect().contains(point)) { result = true; } return result; }
QPainterPath BezierCurve::getStrokedPath(qreal width) { return getStrokedPath(width, true); }
QPainterPath BezierCurve::getStrokedPath() { return getStrokedPath( 2.0 * width ); }