Lines Matching refs:inPts
133 void LottieOffsetModifier::line(const PathCommand* inCmds, uint32_t inCmdsCnt, const Point* inPts, … in line() argument
135 if (tvg::zero(inPts[currentPt - 1] - inPts[currentPt])) { in line()
140 …s[currentCmd - 1] != PathCommand::LineTo) state.line = _offset(inPts[currentPt - 1], inPts[current… in line()
151 …s[cmd] == PathCommand::CubicTo && !tvg::zero(inPts[pt] - inPts[pt + 1]) && !tvg::zero(inPts[pt + 2… in line()
163 …urrentCmd + 1] == PathCommand::LineTo) nextLine = _offset(inPts[currentPt + degenerated], inPts[cu… in line()
164 …entCmd + 1] == PathCommand::CubicTo) nextLine = _offset(inPts[currentPt + 1 + degenerated], inPts[… in line()
165 …f (inCmds[currentCmd + 1] == PathCommand::Close && !_zero(inPts[currentPt + degenerated], inPts[st… in line()
166 …nextLine = _offset(inPts[currentPt + degenerated], inPts[state.movetoInIndex + degenerated], offse… in line()
178 …r::modifyPath(const PathCommand* inCmds, uint32_t inCmdsCnt, const Point* inPts, uint32_t inPtsCnt… in modifyPath() argument
190 outPts.push(inPts[iPts++]); in modifyPath()
194 auto& prev = inPts[iPts - 1]; in modifyPath()
195 auto& curr = inPts[iPts + 2]; in modifyPath()
197 tvg::zero(inPts[iPts - 1] - inPts[iPts]) && in modifyPath()
198 tvg::zero(inPts[iPts + 1] - inPts[iPts + 2])) { in modifyPath()
200 tvg::zero(inPts[iPts + 2] - inPts[iPts + 3]) && in modifyPath()
201 tvg::zero(inPts[iPts + 4] - inPts[iPts + 5])) { in modifyPath()
202 _roundCorner(outCmds, outPts, prev, curr, inPts[iPts + 5], r); in modifyPath()
206 _roundCorner(outCmds, outPts, prev, curr, inPts[2], r); in modifyPath()
213 outPts.push(inPts[iPts++]); in modifyPath()
214 outPts.push(inPts[iPts++]); in modifyPath()
215 outPts.push(inPts[iPts++]); in modifyPath()
234 …Polystar(TVG_UNUSED const Array<PathCommand>& inCmds, const Array<Point>& inPts, Array<PathCommand… in modifyPolystar() argument
238 auto len = length(inPts[1] - inPts[2]); in modifyPolystar()
247 outPts.push(inPts[start]); in modifyPolystar()
249 for (uint32_t i = 1 + start; i < inPts.count; i += 6) { in modifyPolystar()
250 auto& prev = inPts[i]; in modifyPolystar()
251 auto& curr = inPts[i + 2]; in modifyPolystar()
252 auto& next = (i < inPts.count - start) ? inPts[i + 4] : inPts[2]; in modifyPolystar()
253 auto& nextCtrl = (i < inPts.count - start) ? inPts[i + 5] : inPts[3]; in modifyPolystar()
273 auto dPrev = r * (inPts[1] - inPts[0]); in modifyPolystar()
274 auto p = inPts[0] + 2.0f * dPrev; in modifyPolystar()
278 for (uint32_t i = 1; i < inPts.count; ++i) { in modifyPolystar()
279 auto& curr = inPts[i]; in modifyPolystar()
280 auto& next = (i == inPts.count - 1) ? inPts[1] : inPts[i + 1]; in modifyPolystar()
308 …r::modifyPath(const PathCommand* inCmds, uint32_t inCmdsCnt, const Point* inPts, uint32_t inPtsCnt… in modifyPath() argument
315 auto offset = _clockwise(inPts, inPtsCnt) ? this->offset : -this->offset; in modifyPath()
323 line(inCmds, inCmdsCnt, inPts, iPt, iCmd, state, false, outCmds, outPts, offset); in modifyPath()
326 … if (tvg::zero(inPts[iPt - 1] - inPts[iPt]) || tvg::zero(inPts[iPt + 1] - inPts[iPt + 2])) { in modifyPath()
328 line(inCmds, inCmdsCnt, inPts, iPt, iCmd, state, true, outCmds, outPts, offset); in modifyPath()
333 stack.push({inPts[iPt - 1], inPts[iPt], inPts[iPt + 1], inPts[iPt + 2]}); in modifyPath()
371 if (!_zero(inPts[iPt - 1], inPts[state.movetoInIndex])) { in modifyPath()
382 …ier::modifyPolystar(const Array<PathCommand>& inCmds, const Array<Point>& inPts, Array<PathCommand… in modifyPolystar() argument
383 return modifyPath(inCmds.data, inCmds.count, inPts.data, inPts.count, outCmds, outPts); in modifyPolystar()
387 …r::modifyRect(const PathCommand* inCmds, uint32_t inCmdsCnt, const Point* inPts, uint32_t inPtsCnt… in modifyRect() argument
389 return modifyPath(inCmds, inCmdsCnt, inPts, inPtsCnt, outCmds, outPts); in modifyRect()