v0.4.2: reduced amount of allocations occurring when frames are drawn

This commit is contained in:
Evan Debenham
2016-08-21 23:55:57 -04:00
committed by Evan Debenham
parent 9663a47958
commit b821bfddf8
5 changed files with 50 additions and 32 deletions

View File

@@ -151,4 +151,11 @@ public class PointF {
public String toString() {
return "" + x + ", " + y;
}
@Override
public boolean equals(Object o) {
if (super.equals(o))
return true;
return o instanceof PointF && (((PointF)o).x == x && ((PointF)o).y == y);
}
}