starry / backend /libs /three /extras /ShapeUtils.d.ts
k-l-lambda's picture
feat: add Python ML services (CPU mode) with model download
2b7aae2
export interface Vec2 {
x: number;
y: number;
}
export namespace ShapeUtils {
function area(contour: Vec2[]): number;
function triangulateShape(contour: Vec2[], holes: Vec2[][]): number[][];
function isClockWise(pts: Vec2[]): boolean;
}