nape-js API
    Preparing search index...

    Class Edge

    An edge of a polygon shape.

    Edges are read-only and managed by the polygon they belong to. Cannot be instantiated directly — only obtained from Polygon.edges.

    Fully modernized — all getters access ZPP_Edge directly.

    Index

    Constructors

    Accessors

    • get localProjection(): number

      Local-space projection along the edge normal.

      Returns number

    • get worldProjection(): number

      World-space projection. Requires polygon in a body.

      Returns number

    Methods