Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 991 -
------------------------------------------------------------------------------
1.6 Draw an arc. <Main>
------------------------------------------------------------------------------
[Name]
mmc_arc_b
[Syntax]
#include <fgraph.h>
short mmc_arc_b( short xc, short yc, short xr, short yr, short d1,
short d2 ) ;
[Arguments]
xc, yc View port coordinate of the circle center.
xr X-directional radius.
yr Y-directional radius.
d1 Angle of drawing start point (-3600..3600 [0.1 deg])
d2 Angle of drawing end point (-3600..3600 [0.1 deg])
[Return]
Returns non-0 value if successful, or 0 if any error.
[Description]
Draws an arc.
"Angles" are specified as follows.
Unit of angles is 0.1 degree.
"Start angle" <= "End angle".
Allowed range to command is -3600..3600 (-360[deg]..360[deg]).
The origin of angle is + direction of X axis.
Angle increases counter clock wise.
(Y) (Y)
| |
| |
90[deg]|<-----+ -270[deg]|<-----+
| | | |
| |0[deg] | |-360[deg]
----------------+----------------(X) ----------------+----------------(X)
180[deg]| | 360[deg] -180[deg]| | 0[deg]
| | | |
+----->|270[deg] +----->|-90[deg]
| |
| |
Arc is drawn counter clock wise (CCW) from the start point to the end
point. When the start point is same as the end point, arc is not
drawn but only a pixel is drawn at the start/end point.