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

Method appendSegment

src/cinder/Path2d.cpp:732–740  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

730}
731
732void Path2d::appendSegment( SegmentType segmentType, const vec2 *points )
733{
734 mSegments.push_back( segmentType );
735 // we only copy all of the segments points when we are empty. ie lineto -> line when we are empty
736 if( mPoints.empty() )
737 std::copy( &points[0], &points[sSegmentTypePointCounts[segmentType]+1], std::back_inserter( mPoints ) );
738 else
739 std::copy( &points[1], &points[sSegmentTypePointCounts[segmentType]+1], std::back_inserter( mPoints ) );
740}
741
742void Path2d::removeSegment( size_t segment )
743{

Callers 2

appendChoppedFunction · 0.80
appendFunction · 0.80

Calls 3

copyFunction · 0.85
push_backMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected