v2.2.0: fixed combined direction key actions not always being adjacent
This commit is contained in:
@@ -72,6 +72,14 @@ public class Point {
|
||||
y += d.y;
|
||||
return this;
|
||||
}
|
||||
|
||||
public boolean isZero(){
|
||||
return x == 0 && y == 0;
|
||||
}
|
||||
|
||||
public float length() {
|
||||
return (float)Math.sqrt( x * x + y * y );
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals( Object obj ) {
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user