Library: | graphic |
See also: | grpie |
Quantlet: | grcirclesector | |
Description: | Generates a sector of a circle. |
Usage: | mysector = grcirclesector(radius,alpha1,alpha2) | |
Input: | ||
radius | scalar radius of circle | |
alpha1,alpha2 | scalars angles enclosing the sector | |
Output: | ||
mysector | composed graphical object |
library("graphic") r = 50 a1 = 1 a2 = 3.14 mysector = grcirclesector(r,a1,a2) d = createdisplay(1,1) show(d, 1, 1, mysector)
shows a sector of a circle