初始化版本库,可用
This commit is contained in:
19
types/Geometry/CheckIntersect.d.ts
vendored
Normal file
19
types/Geometry/CheckIntersect.d.ts
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Box2 } from "three";
|
||||
export interface Vec2 {
|
||||
x: number;
|
||||
y: number;
|
||||
}
|
||||
/**
|
||||
* 盒子相交测试,快速判断盒子和直线或者圆是否有相交
|
||||
*/
|
||||
export declare class BoxCheckIntersect {
|
||||
p1: Vec2;
|
||||
p2: Vec2;
|
||||
p3: Vec2;
|
||||
p4: Vec2;
|
||||
box: Box2;
|
||||
constructor(box: Box2);
|
||||
IsIntersectLine(p1: Vec2, p2: Vec2): boolean;
|
||||
IsIntersectCircle(cen: Vec2, radius: number): boolean;
|
||||
}
|
||||
//# sourceMappingURL=CheckIntersect.d.ts.map
|
Reference in New Issue
Block a user