Skip to content
FutureBlitz

    Install

    Import std.math.polygon

    Offset

    std.math.polygon

    function

    @PanicsAtCaller Public Function Offset(rings: Vec2[][], distance: Float, rounded: Bool = True): Vec2[][]

    The region grown by distance all around, or shrunk by a negative one: each ring's edges moved out along their normals, joined around its corners by arcs when rounded, else by miters up to twice the distance long, beyond which they're cut off, and what overlaps then merged, so a shrunk part too thin for the distance goes. A corner or a distance that isn't finite panics.

    std/math/polygon.fb, line 931

    Report an issue with this page or with FutureBlitz on GitHub.