Designation method of peak coordinates

Description of the following subroutine with, The coordinates ( PX ( i ) , PY ( i ) ) of the peak that define a polygon ( I =1, N) (these be, regarding) be able to designate it with U/V/R coordinates systems. In the following manner it is interpretted. ( PX (N) , with ( PX (1) , PY (1) ) ) PY (N) needs not to be the same point. Namely, ( PX ( i ) , With PY ( i ) ) ( PX ( i +1 ) , PY ( i +1 ) ) ( i =1,N-1) Paint the close area that reaches and tied ( PX (1) , PY (1) ) with ( PX (N) , PY (N) ).