Browse Source

added scale()

ncannasse 8 năm trước cách đây
mục cha
commit
4bf76bfaae
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      h3d/col/Point.hx

+ 6 - 0
h3d/col/Point.hx

@@ -13,6 +13,12 @@ class Point {
 		this.z = z;
 	}
 
+	public inline function scale( v : Float ) {
+		x *= v;
+		y *= v;
+		z *= v;
+	}
+
 	public function inFrustum( mvp : Matrix ) {
 		if( !Plane.frustumLeft(mvp).side(this) )
 			return false;