فهرست منبع

remove return value on Point.normalize(), very error prone as it might hide the fact that function is mutable

trethaller 5 سال پیش
والد
کامیت
31d4dabc05
1فایلهای تغییر یافته به همراه0 افزوده شده و 2 حذف شده
  1. 0 2
      h2d/col/Point.hx

+ 0 - 2
h2d/col/Point.hx

@@ -67,7 +67,6 @@ class Point {
 		if( k < Math.EPSILON ) k = 0 else k = Math.invSqrt(k);
 		x *= k;
 		y *= k;
-		return this;
 	}
 
 	public inline function normalizeFast() {
@@ -75,7 +74,6 @@ class Point {
 		k = Math.invSqrt(k);
 		x *= k;
 		y *= k;
-		return this;
 	}
 
 	public inline function set(x,y) {