Lines Matching refs:right
57 Bezier left, right; in _bezLength() local
62 cur.split(left, right); in _bezLength()
63 return _bezLength(left, lineLengthFunc) + _bezLength(right, lineLengthFunc); in _bezLength()
81 auto right = bz; in _bezAt() local
83 right.split(t, left); in _bezAt()
234 void Line::split(float at, Line& left, Line& right) const in split()
242 right.pt1 = left.pt2; in split()
243 right.pt2 = pt2; in split()
247 void Bezier::split(Bezier& left, Bezier& right) const in split()
251 right.ctrl2.x = (ctrl2.x + end.x) * 0.5f; in split()
253 right.end.x = end.x; in split()
255 right.ctrl1.x = (right.ctrl2.x + c) * 0.5f; in split()
256 left.end.x = right.start.x = (left.ctrl2.x + right.ctrl1.x) * 0.5f; in split()
260 right.ctrl2.y = (ctrl2.y + end.y) * 0.5f; in split()
262 right.end.y = end.y; in split()
264 right.ctrl1.y = (right.ctrl2.y + c) * 0.5f; in split()
265 left.end.y = right.start.y = (left.ctrl2.y + right.ctrl1.y) * 0.5f; in split()
269 void Bezier::split(float at, Bezier& left, Bezier& right) const in split()
271 right = *this; in split()
272 auto t = right.at(at, right.length()); in split()
273 right.split(t, left); in split()