Nicolas Cannasse 3 ماه پیش
والد
کامیت
088333928f
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      h3d/Vector.hx

+ 4 - 0
h3d/Vector.hx

@@ -159,6 +159,10 @@ class VectorImpl #if apicheck implements h2d.impl.PointApi<Vector,Matrix> #end {
 		return new h3d.Vector4(x,y,z);
 	}
 
+	public inline function to2D() {
+		return new h2d.col.Point(x,y);
+	}
+
 	public function toString() {
 		return '{${x.fmt()},${y.fmt()},${z.fmt()}}';
 	}