| 1164 | } |
| 1165 | |
| 1166 | void append( const Path2d &source, size_t segment, Path2d *result ) |
| 1167 | { |
| 1168 | auto sourceSegments = source.getSegments(); |
| 1169 | auto sourcePoints = source.getPoints(); |
| 1170 | size_t firstPoint = 0; |
| 1171 | for( size_t s = 0; s < segment; ++s ) |
| 1172 | firstPoint += Path2d::sSegmentTypePointCounts[sourceSegments[s]]; |
| 1173 | |
| 1174 | result->appendSegment( sourceSegments[segment], &sourcePoints[firstPoint] ); |
| 1175 | } |
| 1176 | } // getSubPath helpers |
| 1177 | |
| 1178 | Path2d Path2d::getSubPath( float startT, float endT ) const |
no test coverage detected