[common] bullet with bricks collision
This commit is contained in:
15
src/common/haxe/ru/m/geom/Point.hx
Normal file
15
src/common/haxe/ru/m/geom/Point.hx
Normal file
@@ -0,0 +1,15 @@
|
||||
package ru.m.geom;
|
||||
|
||||
class Point {
|
||||
public var x(default, default):Float;
|
||||
public var y(default, default):Float;
|
||||
|
||||
public function new(x:Float, y:Float) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
}
|
||||
|
||||
public function add(point:Point):Point {
|
||||
return new Point(x + point.x, y + point.y);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user