julien-c's picture
julien-c HF staff
do not gitignore the builds
6cd9596
raw
history blame contribute delete
336 Bytes
interface Vec2 {
x: number;
y: number;
}
export namespace ShapeUtils {
export function area(contour: Vec2[]): number;
export function triangulate(contour: Vec2[], indices: boolean): number[];
export function triangulateShape(contour: Vec2[], holes: Vec2[]): number[][];
export function isClockWise(pts: Vec2[]): boolean;
}