diff --git a/types/three/three-core.d.ts b/types/three/three-core.d.ts index 6f0051404c..e41eb19212 100755 --- a/types/three/three-core.d.ts +++ b/types/three/three-core.d.ts @@ -6689,11 +6689,17 @@ export namespace SceneUtils { export function attach(child: Object3D, scene: Scene, parent: Object3D): void; } +interface Vec2 +{ + x: number; + y: number; +} + export namespace ShapeUtils { - export function area(contour: number[]): number; - export function triangulate(contour: number[], indices: boolean): number[]; - export function triangulateShape(contour: number[], holes: any[]): number[]; - export function isClockWise(pts: number[]): boolean; + 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; } // Extras / Audio /////////////////////////////////////////////////////////////////////