FullControl JS
    Preparing search index...

    Function spiralXY

    • Generates an array of Points forming a 2D Archimedean spiral in the XY plane.

      Parameters

      • centre: Point

        Spiral origin.

      • start_radius: number

        Initial radius.

      • end_radius: number

        Final radius.

      • start_angle: number

        Starting polar angle.

      • n_turns: number

        Number of full 360-degree rotations.

      • segments: number

        Resolution (points generated) for the spiral path.

      • cw: boolean = false

        True for clockwise.

      Returns Point[]

      Smooth array of Points defining the spiral.