Function rotatePoint

Rotates a Point around another Point by a given angle. Returns the rotated point as a Point object.