plpolar

plot a vector in polar coordinates in user units

parametertypeunitsdescription
sizefloatuusize (length) of the vector
anglefloatdegrdirection of the vector with respect to the x-axis
linetypeint--see plot
returns:void

Description

plpolar draws a line of length size user units in the direction that makes an angle of angle degrees with respect to the current x-axis.

Examples

The following example draws two hexagons, one in user units, the other in millimeters:
plinit PS plpolar A4 50 50 "" ""
plaxes 0 0 100 100 60 60 "" "" "" 
plrectm 0 0 60 60

# in user units:
plu 30 30 plformat 0 0 X
plpolar 10 90 DOWN plpolar 10 30 DOWN plpolar 10 -30 DOWN
plpolar 10 -90 DOWN plpolar 10 -150 DOWN plpolar 10 150 DOWN

# same one in millimeters and shifted:
plu 60 60 plformat 0 0 X
plpolarm 10 90 DOWN plpolarm 10 30 DOWN plpolarm 10 -30 DOWN
plpolarm 10 -90 DOWN plpolarm 10 -150 DOWN plpolarm 10 150 DOWN
plframe 5 3

plpolar