You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
439 B
18 lines
439 B
4 years ago
|
export declare class Vector {
|
||
|
x: number;
|
||
|
y: number;
|
||
|
constructor(x: number,y: number);
|
||
|
cross(v: Vector): number;
|
||
|
length(v: Vector): number;
|
||
|
}
|
||
|
|
||
|
export declare class Region {
|
||
|
x: number;
|
||
|
y: number;
|
||
|
w: number;
|
||
|
h: number;
|
||
|
constructor(x: number,y: number,w: number,h: number);
|
||
|
isIntersects(obj: { x: number,y: number,w: number,h: number }):boolean;
|
||
|
isPointInside(x: number,y: number): boolean;
|
||
|
getPosition(): number[];
|
||
|
}
|