Skip to content

polygonSdf

polygonSdf(poly, x, z): number

Defined in: sdk/src/water/shore.ts:12

The signed distance from (x, z) to the polygon’s outline, positive inside it, negative outside. Self-intersecting outlines are not judged.

readonly Point2[]

number

number

number