#include <path.h>
Public Member Functions | |
| std::tuple< size_t, size_t > | GetContourPointBounds (size_t contour_index) const |
Public Attributes | |
| std::vector< Point > | points |
| std::vector< PolylineContour > | contours |
One or more contours represented as a series of points and indices in the point vector representing the start of a new contour.
| std::tuple< size_t, size_t > impeller::Path::Polyline::GetContourPointBounds | ( | size_t | contour_index | ) | const |
Convenience method to compute the start (inclusive) and end (exclusive) point of the given contour index.
The contour_index parameter is clamped to contours.size().
Definition at line 20 of file path.cc.
References contours, and points.
Referenced by impeller::Tessellator::Tessellate(), impeller::TessellateConvex(), and impeller::testing::TEST().
| std::vector<PolylineContour> impeller::Path::Polyline::contours |
Definition at line 82 of file path.h.
Referenced by impeller::Path::CreatePolyline(), GetContourPointBounds(), impeller::Tessellator::Tessellate(), impeller::TessellateConvex(), and impeller::testing::TEST().
| std::vector<Point> impeller::Path::Polyline::points |
Points in the polyline, which may represent multiple contours specified by indices in |breaks|.
Definition at line 81 of file path.h.
Referenced by impeller::Path::CreatePolyline(), GetContourPointBounds(), impeller::Tessellator::Tessellate(), impeller::TessellateConvex(), and impeller::testing::TEST().