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

Method circle

src/cinder/Path2d.cpp:545–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543}
544
545Path2d Path2d::circle( const vec2 &center, float radius )
546{
547 Path2d shape;
548 shape.moveTo( center.x + radius, center.y );
549 shape.relativeArcTo( radius, radius, 0, false, true, vec2( -( radius + radius ), 0 ) );
550 shape.relativeArcTo( radius, radius, 0, false, true, vec2( +( radius + radius ), 0 ) );
551 return shape;
552}
553
554Path2d Path2d::ellipse( const vec2 &center, float radiusX, float radiusY )
555{

Callers 2

drawMethod · 0.45
operator()Method · 0.45

Calls 2

moveToMethod · 0.45
relativeArcToMethod · 0.45

Tested by

no test coverage detected