Nicolas Cannasse пре 2 година
родитељ
комит
7a62bac5e9
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6 0
      h3d/col/FPoint.hx

+ 6 - 0
h3d/col/FPoint.hx

@@ -13,6 +13,12 @@ class FPoint {
 		this.z = z;
 	}
 
+	public inline function set(x=0.,y=0.,z=0.) {
+		this.x = x;
+		this.y = y;
+		this.z = z;
+	}
+
 	public inline function sub( p : FPoint ) {
 		return new FPoint(x - p.x, y - p.y, z - p.z);
 	}