Lines Matching refs:pt2
24 def calcQuadraticBounds(pt1, pt2, pt3): argument
33 (ax, ay), (bx, by), (cx, cy) = calcQuadraticParameters(pt1, pt2, pt3)
45 def calcCubicBounds(pt1, pt2, pt3, pt4): argument
56 (ax, ay), (bx, by), (cx, cy), (dx, dy) = calcCubicParameters(pt1, pt2, pt3, pt4)
70 def splitLine(pt1, pt2, where, isHorizontal): argument
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): argument
132 a, b, c = calcQuadraticParameters(pt1, pt2, pt3)
137 return [(pt1, pt2, pt3)]
141 def splitCubic(pt1, pt2, pt3, pt4, where, isHorizontal): argument
156 a, b, c, d = calcCubicParameters(pt1, pt2, pt3, pt4)
161 return [(pt1, pt2, pt3, pt4)]
165 def splitQuadraticAtT(pt1, pt2, pt3, *ts): argument
177 a, b, c = calcQuadraticParameters(pt1, pt2, pt3)
181 def splitCubicAtT(pt1, pt2, pt3, pt4, *ts): argument
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): argument
331 x2, y2 = pt2
341 def calcCubicParameters(pt1, pt2, pt3, pt4): argument
342 x2, y2 = pt2