Function makePolygonCircumradiusSide

  • Parameters

    • sides: number = 3

      the number of sides in the polygon

    • Optional circumradius: number = 1

      the polygon's circumradius

    Returns [number, number][]

    an array of points, each point as an arrays of numbers

    Description

    Make a regular polygon from a circumradius, the middle of the first side is +X aligned.