added code for rotate_point2d_long

the code is very questionable though.