新增碰撞检测算法

This commit is contained in:
YHH
2020-06-09 22:32:18 +08:00
parent 0fd33be5f9
commit 831152aa26
5 changed files with 301 additions and 2 deletions

View 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;
}
}