@@ -37,6 +37,10 @@ class IPoint {
return new Point(x + p.x, y + p.y);
}
+ public inline function equals( other : IPoint ) : Bool {
+ return x == other.x && y == other.y;
+ }
+
public inline function dot( p : IPoint ) {
return x * p.x + y * p.y;
@@ -37,6 +37,10 @@ class Point {
+ public inline function equals( other : Point ) : Bool {
public inline function dot( p : Point ) {
@@ -23,6 +23,10 @@ class IPoint {
this.z = z;
+ return x == other.x && y == other.y && z == other.z;
public inline function load( p : IPoint ) {
this.x = p.x;
this.y = p.y;
@@ -45,6 +45,10 @@ class Point {
return new Point(y * p.z - z * p.y, z * p.x - x * p.z, x * p.y - y * p.x);
public inline function lengthSq() {
return x * x + y * y + z * z;