UNPKG

@thi.ng/geom-poly-utils

Version:

2D polygon/polyline analysis & processing utilities

10 lines 394 B
import type { ReadonlyVec } from "@thi.ng/vectors"; /** * Interprets given points as closed 2D polygon and computes its signed * area. If result is negative, the polygon is clockwise. * * @param pts - points */ export declare const polyArea2: (pts: ReadonlyVec[]) => number; export declare const triArea2: import("@thi.ng/api").FnU3<ReadonlyVec, number>; //# sourceMappingURL=area.d.ts.map