Bug in limit behoben

This commit is contained in:
ngb
2022-01-04 11:41:26 +01:00
parent 9ff28d42ab
commit ee3c85d6eb

View File

@@ -221,7 +221,7 @@ public class Vector extends Point2D.Double {
} }
if( lenSq() < min * min ) { if( lenSq() < min * min ) {
setLen(min); setLen(min);
} else if( lenSq() > min * min ) { } else if( lenSq() > max * max ) {
setLen(max); setLen(max);
} }
return this; return this;