Navigation · function

polyArea

The shoelace area, which is positive for the winding this builds and zero for a degenerate.

Explained in Navigation.

function polyArea(mesh: PolyMesh, poly: number): number
import { polyArea } from '@driftengine/nav';

Parameters

ParameterTypeDescription
meshPolyMesh
polynumber