void pxcircular_arc (
Ppoint *center, /*X and Y coordinates of the center in MC */ Pfloat radius, /*radius of the arc in MC */ Pfloat start_angle, /*start angle in radians (see note) */ Pfloat end_angle, /*end angle in radians */ Pint num_points /*number of points to generate */
)
A Polyline element is created by computing the specified number of points on an arc from Start Angle to End Angle following positive angular direction (counter clockwise). All Z values of the polyline are equal to zero.
Depending on the edit mode, the polyline is inserted into the open structure after the current element or replaces the current element. The newly inserted element becomes the current element.
This function is equivalent to computing the points and using them in a call to the Polyline function (routine ppolyline).
Note: The macro PXDEGREES_TO_RADIANS converts degrees to radians:
Radians = Degrees * PXDEGREES_TO_RADIANS
where PXDEGREES_TO_RADIANS = 0.017453293 radians/degree.
The following macros may also be helpful:
PXPI_OVER_2 = 1.5707963 radians (90 degrees) PXPI = 3.1415927 radians (180 degrees) PX2_PI = 6.2831853 radians (360 degrees)