parent
26d79e5ca2
commit
ec79f50e65
|
@ -41,11 +41,9 @@ const qreal maxL = 2.5;
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
// Do we create a point outside of a path?
|
// Do we create a point outside of a path?
|
||||||
bool IsOutsidePoint(QPointF p1, QPointF p2, QPointF px)
|
inline bool IsOutsidePoint(QPointF p1, QPointF p2, QPointF px)
|
||||||
{
|
{
|
||||||
QLineF line(p1, p2);
|
return qAbs(QLineF(p1, p2).angle() - QLineF(p1, px).angle()) < 0.001;
|
||||||
QLineF ext(p1, px);
|
|
||||||
return VFuzzyComparePossibleNulls(line.angle(), ext.angle());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user