2
0
Эх сурвалжийг харах

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

trethaller 5 жил өмнө
parent
commit
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) {