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.
22 lines
511 B
22 lines
511 B
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[]; |
|
}
|
|
|