fix for rotatePointAtPoint
first running version without error for linear functions only. No semantic check done