• Flips a polygon horizontally if the horizontalFlip is true. Otherwise return original array.

    Parameters

    • pointArray: Point[]

      The array of points defining the polygon.

    • horizontalFlip: boolean

      Whether to perform a horizontal flip.

    Returns Point[]

    The flipped polygon.