新增碰撞检测算法
This commit is contained in:
13
source/src/Math/Rectangle.ts
Normal file
13
source/src/Math/Rectangle.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
class Rectangle {
|
||||
public x: number;
|
||||
public y: number;
|
||||
public width: number;
|
||||
public height: number;
|
||||
|
||||
constructor(x: number, y: number, width: number, height: number){
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user