UNPKG

@thi.ng/geom-poly-utils

Version:

2D polygon/polyline analysis & processing utilities

12 lines 315 B
import type { ReadonlyVec } from "@thi.ng/vectors"; /** * Polygon convexity classifier. */ export declare enum Convexity { ILLEGAL = -1, COLINEAR = 0, CONVEX = 1, CONCAVE = 2 } export declare const convexity: (pts: ReadonlyVec[], eps?: number) => Convexity; //# sourceMappingURL=convexity.d.ts.map