Sketcher: Parabola Arc rules solver constraint

This commit is contained in:
Abdullah Tahiri
2016-12-21 16:25:19 +01:00
parent b2bca80796
commit 61fe4bcaee
4 changed files with 12 additions and 5 deletions

View File

@@ -604,6 +604,12 @@ int System::addConstraintArcOfHyperbolaRules(ArcOfHyperbola &a, int tagId)
return addConstraintCurveValue(a.end,a,a.endAngle, tagId);
}
int System::addConstraintArcOfParabolaRules(ArcOfParabola &a, int tagId)
{
addConstraintCurveValue(a.start,a,a.startAngle, tagId);
return addConstraintCurveValue(a.end,a,a.endAngle, tagId);
}
int System::addConstraintPointOnArc(Point &p, Arc &a, int tagId)
{
return addConstraintP2PDistance(p, a.center, a.rad, tagId);