added getRotatedPoint