Circle

A circle is only a special case of an Ellipse.

Vec2D pos, float radius,
float lineWidth = 1.0, float accuracy = [default] ))

Creates a circle with the specified centre, and radius.

The line width is the thickness of the outline of the circle.

Examples

// Create a circle with the centre at x = 200.0, y = 100.0 and radius of 50.0 //
Circle myCircle( Vec2D200.0100.0 ), 50.0 );

// Draw the circle to the screen filled with blue //
myCircle.DrawRgba::BLUE );


Member functions
DrawDisk
Draws a filled disk
DrawArc
Draws a filled arc of the Circle
SetRadius
Sets the radius of the circle

Parent Class


Questions about Circle? Click here.