PLplot  5.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
plarc.c File Reference
#include "plplotP.h"

Go to the source code of this file.

Macros

#define CIRCLE_SEGMENTS   ( PL_MAXPOLY - 1 )
#define DEG_TO_RAD(x)   ( ( x ) * M_PI / 180.0 )

Functions

void plarc_approx (PLFLT x, PLFLT y, PLFLT a, PLFLT b, PLFLT angle1, PLFLT angle2, PLFLT rotate, PLBOOL fill)
void c_plarc (PLFLT x, PLFLT y, PLFLT a, PLFLT b, PLFLT angle1, PLFLT angle2, PLFLT rotate, PLBOOL fill)

Detailed Description

Functions for drawing an arc.

Definition in file plarc.c.

Macro Definition Documentation

#define CIRCLE_SEGMENTS   ( PL_MAXPOLY - 1 )

Definition at line 28 of file plarc.c.

#define DEG_TO_RAD (   x)    ( ( x ) * M_PI / 180.0 )

Definition at line 29 of file plarc.c.

Function Documentation

void c_plarc ( PLFLT  x,
PLFLT  y,
PLFLT  a,
PLFLT  b,
PLFLT  angle1,
PLFLT  angle2,
PLFLT  rotate,
PLBOOL  fill 
)

Plot an Arc. Takes the following arguments:

x, y: x and y coordinates for the center of the arc

a, b: Radius of the arc's major and minor axes

angle1: Start angle (degrees)

angle2: End angle (degrees)

fill: Should the arc be filled

Parameters
xCenter coordinate of the arc in x.
yCenter coordinate of the arc in y.
aRadius of the arcs major axis.
bRadius of the arcs minor axis.
angle1Start angle in degrees.
angle2End angle in degrees.
rotateHow much to rotate the arc?
fillFill the arc.

Definition at line 141 of file plarc.c.

void plarc_approx ( PLFLT  x,
PLFLT  y,
PLFLT  a,
PLFLT  b,
PLFLT  angle1,
PLFLT  angle2,
PLFLT  rotate,
PLBOOL  fill 
)

Takes the same arguments, with the same units, as c_plarc below. This is the fallback function in the event that the output device does not have native support for drawing arcs.

Parameters
xCenter coordinate of the arc in x.
yCenter coordinate of the arc in y.
aRadius of the arcs major axis.
bRadius of the arcs minor axis.
angle1Start angle in degrees.
angle2End angle in degrees.
rotateHow much to rotate the arc?
fillFill the arc.

Definition at line 51 of file plarc.c.