@Test public void testEqualsWithDelta() { point1.set(0f, 0f); point2.set(0f, 0f); Assert.assertEquals(true, point1.equals(point2, 0.1f)); point2.set(0.1f, 0f); Assert.assertEquals(true, point1.equals(point2, 0.1f)); point2.set(0.11f, 0f); Assert.assertEquals(false, point1.equals(point2, 0.1f)); point2.set(0f, 0.1f); Assert.assertEquals(true, point1.equals(point2, 0.1f)); point2.set(0f, 0.11f); Assert.assertEquals(false, point1.equals(point2, 0.1f)); point2.set(0.1f, 0.1f); Assert.assertEquals(true, point1.equals(point2, 0.1f)); point2.set(0.11f, 0.11f); Assert.assertEquals(false, point1.equals(point2, 0.1f)); point2.set(1f, 1f); Assert.assertEquals(false, point1.equals(point2, 0.1f)); }
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof CollisionPoint)) return false; if (!super.equals(o)) return false; CollisionPoint that = (CollisionPoint) o; return id == that.id; }
CollisionPoint extends Point implements CollisionObject, PositionChangeListener<CollisionPoint> { @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof CollisionPoint)) return false; if (!super.equals(o)) return false; CollisionPoint that = (CollisionPoint) o; return id == that.id; } }
CollisionPoint extends Point implements CollisionObject, PositionChangeListener<CollisionPoint> { @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof CollisionPoint)) return false; if (!super.equals(o)) return false; CollisionPoint that = (CollisionPoint) o; return id == that.id; } CollisionPoint();  CollisionPoint(int id);  CollisionPoint(float x, float y);  CollisionPoint(int id, float x, float y);  CollisionPoint(int id, Collisions collisions); }
CollisionPoint extends Point implements CollisionObject, PositionChangeListener<CollisionPoint> { @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof CollisionPoint)) return false; if (!super.equals(o)) return false; CollisionPoint that = (CollisionPoint) o; return id == that.id; } CollisionPoint();  CollisionPoint(int id);  CollisionPoint(float x, float y);  CollisionPoint(int id, float x, float y);  CollisionPoint(int id, Collisions collisions); @Override void dispose(); @Override void preUpdate(); @Override void interpolate(float alpha); @Override void forceTo(float x, float y); @Override int getRenderX(); @Override int getRenderY(); @Override float getRawRenderX(); @Override float getRawRenderY(); @Override RenderCoordMode getRenderCoordMode(); @Override void setRenderCoordMode(RenderCoordMode mode); @Override int getId(); @Override void positionChanged(CollisionPoint moved); @Override void addPostionChangeListener(
			PositionChangeListener<T> listener); @Override void removePositionChangeListener(
			PositionChangeListener<T> listener); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
CollisionPoint extends Point implements CollisionObject, PositionChangeListener<CollisionPoint> { @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof CollisionPoint)) return false; if (!super.equals(o)) return false; CollisionPoint that = (CollisionPoint) o; return id == that.id; } CollisionPoint();  CollisionPoint(int id);  CollisionPoint(float x, float y);  CollisionPoint(int id, float x, float y);  CollisionPoint(int id, Collisions collisions); @Override void dispose(); @Override void preUpdate(); @Override void interpolate(float alpha); @Override void forceTo(float x, float y); @Override int getRenderX(); @Override int getRenderY(); @Override float getRawRenderX(); @Override float getRawRenderY(); @Override RenderCoordMode getRenderCoordMode(); @Override void setRenderCoordMode(RenderCoordMode mode); @Override int getId(); @Override void positionChanged(CollisionPoint moved); @Override void addPostionChangeListener(
			PositionChangeListener<T> listener); @Override void removePositionChangeListener(
			PositionChangeListener<T> listener); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }