Bläddra i källkod

added FPoint.set

Nicolas Cannasse 2 år sedan
förälder
incheckning
7a62bac5e9
1 ändrade filer med 6 tillägg och 0 borttagningar
  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);
 	}