Skip to content

wrong y size of ngon #445

@abraunst

Description

@abraunst

I found out that the y dimension of polygons produced with ngon is wrong.

For instance

compose(context(units=UnitBox(-3,-3,6,6)), ngon(0, 0, 1, 6), rectangle(-cos/6),-√2,2cos/6),22), stroke("red")) |> SVG("save.png")

Produces

Image

which means that the y dimension is 2√2 instead of being twice the radius, i.e. 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions