OpenLayer
|
Shape
|
Ellipse
|
Circle
Circle
A circle is only a special case of an Ellipse.
Circle
(
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(
Vec2D
(
200.0
,
100.0
),
50.0
);
// Draw the circle to the screen filled with blue //
myCircle.
Draw
(
Rgba
::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
Ellipse
Back to the main page of the manual
Questions about Circle? Click
here.