Sector

Informations

Author: Maxime Delorme
License: FPDF

Description

This script allows to draw the sector of a circle. It can be used for example to render a pie chart.

Sector(float xc, float yc, float r, float a, float b [, string style [, boolean cw [, float o]]])

xc: abscissa of the center.
yc: ordinate of the center.
r: radius.
a: starting angle (in degrees).
b: ending angle (in degrees).
style: D, F, FD or DF (draw, fill, fill and draw). Default value: FD.
cw: indicates whether to go clockwise (default value: true).
o: origin of angles (0 for right, 90 for top, 180 for left, 270 for bottom). Default value: 90.