Lines Matching full:line
59 static bool _intersect(const Line& line1, const Line& line2, Point& intersection, bool& inside) in _intersect()
82 static Line _offset(const Point& p1, const Point& p2, float offset) in _offset()
102 void LottieOffsetModifier::corner(const Line& line, const Line& nextLine, uint32_t movetoOutIndex, … in corner() argument
106 if (_intersect(line, nextLine, intersect, inside)) { in corner()
111 outPts.push(line.pt2); in corner()
114 outPts.push((line.pt2 + intersect) * 0.5f); in corner()
118 auto norm = normal(line.pt1, line.pt2); in corner()
129 } else outPts.push(line.pt2); in corner()
133 void LottieOffsetModifier::line(const PathCommand* inCmds, uint32_t inCmdsCnt, const Point* inPts, … in line() function in LottieOffsetModifier
140 …if (inCmds[currentCmd - 1] != PathCommand::LineTo) state.line = _offset(inPts[currentPt - 1], inPt… in line()
145 outPts.push(state.line.pt1); in line()
146 state.firstLine = state.line; in line()
157 outPts.push(state.line.pt2); in line()
162 Line nextLine = state.firstLine; in line()
168 …corner(state.line, nextLine, state.movetoOutIndex, inCmds[currentCmd + 1] == PathCommand::Close, o… in line()
170 state.line = nextLine; in line()
323 line(inCmds, inCmdsCnt, inPts, iPt, iCmd, state, false, outCmds, outPts, offset); in modifyPath()
325 //cubic degenerated to a line in modifyPath()
328 line(inCmds, inCmdsCnt, inPts, iPt, iCmd, state, true, outCmds, outPts, offset); in modifyPath()
373 corner(state.line, state.firstLine, state.movetoOutIndex, true, outCmds, outPts); in modifyPath()