MCPcopy Create free account
hub / github.com/Tencent/tgfx / PointIterator

Method PointIterator

src/core/Path.cpp:37–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35class PointIterator {
36 public:
37 PointIterator(const std::vector<Point>& points, bool reversed, unsigned startIndex)
38 : points(points), index(startIndex % points.size()),
39 advance(reversed ? points.size() - 1 : 1) {
40 }
41
42 const SkPoint& current() const {
43 return *reinterpret_cast<const SkPoint*>(&points[index]);

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected