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

Method rectangle

src/cinder/Path2d.cpp:589–598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

587}
588
589Path2d Path2d::rectangle( float x, float y, float width, float height )
590{
591 Path2d shape;
592 shape.moveTo( x, y );
593 shape.lineTo( x + width, y );
594 shape.lineTo( x + width, y + height );
595 shape.lineTo( x, y + height );
596 shape.close();
597 return shape;
598}
599
600Path2d Path2d::roundedRectangle( float x, float y, float width, float height, float rx, float ry )
601{

Callers 7

runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
fFunction · 0.45
fFunction · 0.45
fFunction · 0.45

Calls 3

moveToMethod · 0.45
lineToMethod · 0.45
closeMethod · 0.45

Tested by 4

runMethod · 0.36
runMethod · 0.36
runMethod · 0.36
runMethod · 0.36