v2.2.0: fixed combined direction key actions not always being adjacent

This commit is contained in:
Evan Debenham
2023-07-26 13:24:19 -04:00
parent c7f288ea98
commit e597624555
3 changed files with 33 additions and 16 deletions

View File

@@ -116,7 +116,11 @@ public class PointF {
public Point floor() {
return new Point( (int)x, (int)y );
}
public boolean isZero(){
return x == 0 && y == 0;
}
public float length() {
return (float)Math.sqrt( x * x + y * y );
}