|
@@ -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 equals( other : Point ) : Bool {
|
|
|
+ return x == other.x && y == other.y && z == other.z;
|
|
|
+ }
|
|
|
+
|
|
|
public inline function lengthSq() {
|
|
|
return x * x + y * y + z * z;
|
|
|
}
|