Function makePolygonInradiusSide

  • Parameters

    • sides: number = 3

      the number of sides in the polygon

    • Optional inradius: number = 1

      the polygon's inradius

    Returns [number, number][]

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

    Description

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