UNPKG

426 BTypeScriptView Raw
1export interface BasicPoint {
2 x: number;
3 y: number;
4 pressure: number;
5 time: number;
6}
7export declare class Point implements BasicPoint {
8 x: number;
9 y: number;
10 pressure: number;
11 time: number;
12 constructor(x: number, y: number, pressure?: number, time?: number);
13 distanceTo(start: BasicPoint): number;
14 equals(other: BasicPoint): boolean;
15 velocityFrom(start: BasicPoint): number;
16}