PiDraw API
    Preparing search index...

    Interface PolygonOnSide

    The regular polygon that has the segment [AB] for a side, on the left of A to B as seen on the screen (swap A and B for the other side). A and B are two consecutive vertices, in this order counterclockwise.

    With star, [AB] is one of the segments of the star {sides/star}: two vertices that the star joins.

    interface PolygonOnSide {
        A: XY;
        B: XY;
        sides: number;
        star?: number;
    }
    Index
    A: XY
    B: XY
    sides: number
    star?: number