• Generates a new array of points by dividing every pair of points by segments number.

    Parameters

    • pointArray: Point[]

      The array of points to be divided.

    • segments: number

      The number of new segments between the two points from the array.

    Returns Point[]

    The new array of points by dividing every pair of points by segments number.