web3d / node_modules /three /src /extras /ShapeUtils.d.ts
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;
}