Răsfoiți Sursa

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

trethaller 5 ani în urmă
părinte
comite
31d4dabc05
1 a modificat fișierele cu 0 adăugiri și 2 ștergeri
  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) {