-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.d.ts
20 lines (17 loc) · 1.08 KB
/
main.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
declare module 'projection-3d-2d' {
import { Matrix } from 'ml-matrix';
class ProjectionCalculator2d {
constructor(points3d: [[number, number], [number, number], [number, number], [number, number]], points2d: [[number, number], [number, number], [number, number], [number, number]]);
getProjectedPoint(point3d: [number, number]): [number, number];
getUnprojectedPoint(point2d: [number, number]): [number, number];
readonly resultMatrix: Matrix;
readonly resultMatrixInversed: Matrix;
}
class ProjectionCalculator3d {
constructor(points3d: [[number, number, number], [number, number, number], [number, number, number], [number, number, number], [number, number, number], [number, number, number]], points2d: [[number, number], [number, number], [number, number], [number, number], [number, number], [number, number]]);
getProjectedPoint(point3d: [number, number, number]): [number, number];
getUnprojectedPoint(point2d: [number, number], height: number): [number, number, number];
readonly resultMatrix: Matrix;
readonly resultMatrixInversed: Matrix;
}
}