Skip to content

five-on-it / packages/world/src/audit/cores / twiceArea

Function: twiceArea() ​

twiceArea(poly): number

Defined in: packages/world/src/audit/cores.ts:75

Twice the signed area of a polygon given as x z pairs: positive when its corners turn from +x towards +z.

Parameters ​

poly ​

readonly number[]

Returns ​

number