10#include "kritaflake_export.h"
74 QPair<KoPathSegment, KoPathSegment>
splitAt(qreal t)
const;
77 QPointF pointAt(qreal t)
const;
80 QRectF boundingRect()
const;
83 QRectF controlPointRect()
const;
95 qreal
length(qreal error = 0.005)
const;
106 qreal lengthAt(qreal t, qreal error = 0.005)
const;
118 qreal paramAtLength(qreal
length, qreal tolerance = 0.001)
const;
124 bool isFlat(qreal tolerance = 0.01)
const;
131 qreal nearestPoint(
const QPointF &point)
const;
140 static KoPathSegment interpolate(
const QPointF &
p0,
const QPointF &
p1,
const QPointF &
p2, qreal t);
qreal length(const QPointF &vec)
bool operator==(const KisRegion &lhs, const KisRegion &rhs)
QPair< std::array< QPointF, 4 >, std::array< QPointF, 4 > > splitAt(const std::array< QPointF, 4 > &points, qreal t)
A KoPathPoint represents a point in a path.
A KoPathSegment consist of two neighboring KoPathPoints.
KoPathPoint * first() const
Returns the first point of the segment.
KoPathPoint * second() const
Returns the second point of the segment.