FullControl JS
    Preparing search index...

    Function segmented_line

    • Subdivides a straight line between two points into multiple points.

      Parameters

      • p1: Point

        The starting point.

      • p2: Point

        The ending point.

      • segments: number

        The number of segments to divide the line into.

      Returns Point[]

      An array of segments + 1 Points forming the line.