FullControl JS
    Preparing search index...

    Function segmented_path

    • Resamples a polyline path into evenly spaced segments.

      Useful for normalizing the resolution of geometric shapes before applying further mathematical transformations (like mathematical waves).

      Parameters

      • points: Point[]

        The original array of Points defining the continuous path.

      • segments: number

        The desired number of evenly spaced segments.

      Returns Point[]

      A new array of Points representing the resampled path.