Lines Matching refs:pt4
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)
66 points = [(ax*t*t*t + bx*t*t + cx * t + dx, ay*t*t*t + by*t*t + cy * t + dy) for t in roots] + [pt1, pt4]
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)]
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)
244 pt1, pt2, pt3, pt4 = calcCubicPoints((a1x, a1y), (b1x, b1y), (c1x, c1y), (d1x, d1y))
245 segments.append((pt1, pt2, pt3, pt4))
341 def calcCubicParameters(pt1, pt2, pt3, pt4):
344 x4, y4 = pt4