xrpoly(2)

NAME
xrpoly - draw a regular polygon

CALLING SEQUENCE
[]=xrpoly(orig,n,r,[theta])

PARAMETERS

orig
    : vector of size 2

n   : integer (number of sides)

r   : real scalar

theta
    : real (angle in radian) ( 0 is the default value )

DESCRIPTION
draws a regular polygon of n sides contained in the circle of diameter r and with the origin of the circle set at point orig. theta specifies a rotation angle in radian. This function uses the current graphic scales.