Function makeRegularPolyline

  • Make a regular polyline; a line which creates a regular polygon.

    Parameters

    • radius: number

      The radius of the regular polygon.

    • sides: number

      The amount of sides in the regular polygon.

    • clockwise: boolean = false

      Should the polyline be in clockwise order? False by default.

    Returns vec2[]

Generated using TypeDoc