MCPcopy Create free account
hub / github.com/cinder/Cinder / append

Function append

src/cinder/Path2d.cpp:1166–1175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1164}
1165
1166void 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
1178Path2d Path2d::getSubPath( float startT, float endT ) const

Callers 3

getSubPathMethod · 0.70
appendMethod · 0.70
appendArgMethod · 0.50

Calls 1

appendSegmentMethod · 0.80

Tested by

no test coverage detected