Transforming array of points by rotating them around a line defined by p0 and p1 and scaling them based on the distance between p0 and p1. The resulting transformed points are returned as a new array.
The starting point of the line segment.
The ending point of the line segment.
The array of points defining the polygon.
The transformed polygon.
Transforming array of points by rotating them around a line defined by p0 and p1 and scaling them based on the distance between p0 and p1. The resulting transformed points are returned as a new array.