Lines Matching refs:pt2
24 def calcQuadraticBounds(pt1, pt2, pt3):
26 pt1 and pt3 are the "anchor" points, pt2 is the "handle".
33 (ax, ay), (bx, by), (cx, cy) = calcQuadraticParameters(pt1, pt2, pt3)
45 def calcCubicBounds(pt1, pt2, pt3, pt4):
47 pt1 and pt4 are the "anchor" points, pt2 and pt3 are the "handles".
56 (ax, ay), (bx, by), (cx, cy), (dx, dy) = calcCubicParameters(pt1, pt2, pt3, pt4)
70 def splitLine(pt1, pt2, where, isHorizontal):
71 """Split the line between pt1 and pt2 at position 'where', which
90 pt2x, pt2y = pt2
99 return [(pt1, pt2)]
104 return [(pt1, midPt), (midPt, pt2)]
106 return [(pt1, pt2)]
109 def splitQuadratic(pt1, pt2, pt3, where, isHorizontal):
110 """Split the quadratic curve between pt1, pt2 and pt3 at position 'where',
132 a, b, c = calcQuadraticParameters(pt1, pt2, pt3)
137 return [(pt1, pt2, pt3)]
141 def splitCubic(pt1, pt2, pt3, pt4, where, isHorizontal):
142 """Split the cubic curve between pt1, pt2, pt3 and pt4 at position 'where',
156 a, b, c, d = calcCubicParameters(pt1, pt2, pt3, pt4)
161 return [(pt1, pt2, pt3, pt4)]
165 def splitQuadraticAtT(pt1, pt2, pt3, *ts):
166 """Split the quadratic curve between pt1, pt2 and pt3 at one or more
177 a, b, c = calcQuadraticParameters(pt1, pt2, pt3)
181 def splitCubicAtT(pt1, pt2, pt3, pt4, *ts):
182 """Split the cubic curve between pt1, pt2, pt3 and pt4 at one or more
193 a, b, c, d = calcCubicParameters(pt1, pt2, pt3, pt4)
217 pt1, pt2, pt3 = calcQuadraticPoints((a1x, a1y), (b1x, b1y), (c1x, c1y))
218 segments.append((pt1, pt2, pt3))
244 pt1, pt2, pt3, pt4 = calcCubicPoints((a1x, a1y), (b1x, b1y), (c1x, c1y), (d1x, d1y))
245 segments.append((pt1, pt2, pt3, pt4))
330 def calcQuadraticParameters(pt1, pt2, pt3):
331 x2, y2 = pt2
341 def calcCubicParameters(pt1, pt2, pt3, pt4):
342 x2, y2 = pt2