I have a list of points that define a path, and I need to transform the path based on a pivot point ( like in the image.
pm = pivot point ps/pe = starting/ending poin