plpolarm
plot a vector in polar coordinates in mm
parameter | type | units | description |
---|---|---|---|
size | float | mm | size (length) of the vector |
angle | float | degr | direction of the vector with respect to the x-axis |
linetype | int | -- | see plot |
returns: | void |
Description
plpolarm draws a line of length size millimeter 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