Rotate a point around a pivot point

C call:

C     CALL PTH058 (X1,Y1,X2,Y2,W,X3,Y3,LUWRIT,LUREAD)

C     

C     The following variables must be defined beforehand:

C     

C     X1/Y1  : Coordinate of the point to be rotated

C     X2/Y2  : Coordinate of the pivot point

C     W      : Angle of rotation

C     X3/Y3  : Coordinate of the rotated point (return value)

C     LUWRIT : is not evaluated, but must be specified

C     LUREAD : is not evaluated, but must be specified

C     

C     Example:

C     --------------------------------------

C     Rotate a point around a pivot point

C     --------------------------------------

      X1 = 60.0

      Y1 = 50.0

      X2 = 0.0

      Y2 = 0.0

      W  = 30.0

      CALL PTH058 (X1,Y1,X2,Y2,W,X3,Y3,LUWRIT,LUREAD)