• 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.

    Parameters

    • p0: Point

      The starting point of the line segment.

    • p1: Point

      The ending point of the line segment.

    • pointArray: Point[]

      The array of points defining the polygon.

    Returns Point[]

    The transformed polygon.