void arc(const ofPoint ¢er, float radiusX, float radiusY, float angleBegin, float angleEnd, bool clockwise, int circleResolution=20)
Adds an arc around the ofPoint center
with the width of radiusX
and the height of radiusY
to the polyline.
The angleBegin
and angleEnd
indicate the start and end angles of the arc in degrees measured clockwise from the x-axis.
The clockwise
boolean sets the drawing direction. Passing 'false' to it will draw the arc counter-clockwise.
Optionally, you can specify circleResolution
, which is the number of line segments a circle would be drawn with.
If the arc doesn't start at the same point the last vertex finished a straight line will be created to join both
void arc(const ofPoint ¢er, float radiusX, float radiusY, float angleBegin, float angleEnd, int circleResolution=20)
Adds an arc around the ofPoint center
with the width of radiusX
and the height of radiusY
.
The angleBegin
and angleEnd
indicate the start and end angles of the arc in degrees measured clockwise from the x-axis.
Optionally, you can specify circleResolution
, which is the number of line segments a circle would be drawn with. A partial arc will be drawn with the same resolution: if circleResolution == 20, a half- circle will be drawn with 10 segments.
If there are already vertexes in the ofPolyline the arc will extend them; a line will be created from the endmost point on the ofPolyline to the beginning point of the arc.
polyline2.
arc(point2,100,100,0,180);
void arc(float x, float y, float radiusX, float radiusY, float angleBegin, float angleEnd, int circleResolution=20)
Adds an arc around the coordinates (x
,y
) with the width of radiusX
and the height of radiusY
.
The angleBegin
and angleEnd
indicate the start and end angles of the arc in degrees measured clockwise from the x-axis.
Optionally, you can specify circleResolution
, which is the number of line segments a circle would be drawn with.
void arc(float x, float y, float z, float radiusX, float radiusY, float angleBegin, float angleEnd, int circleResolution=20)
Adds an arc around the coordinates (x
,y
,z
) with the width of radiusX
and the height of radiusY
.
The angleBegin
and angleEnd
indicate the start and end angles of the arc in degrees measured clockwise from the x-axis.
Optionally, you can specify circleResolution
, which is the number of line segments a circle would be drawn with.