Setting the Center of Rotation
While executing a path interpolation with rotation, whenever there is a curve or corner in the path, the rotational axis will move an amount equal to the change in direction. When this occurs, the X and Y axes also move as if the entire path has been rotated around the center of rotation of the path.
The coordinates for the center of rotation can be obtained using the same methods as obtaining the segment coordinates.