@Test public void testDispose() { Geometry.DEFAULT_POOL_SIZE = 1; Geometry geometry = new Geometry(); org.junit.Assert.assertEquals(1, geometry.getTotalPointsAvailable()); point1 = geometry.point(); org.junit.Assert.assertEquals(0, geometry.getTotalPointsAvailable()); point1.dispose(); org.junit.Assert.assertEquals(1, geometry.getTotalPointsAvailable()); point1.dispose(); org.junit.Assert.assertEquals(1, geometry.getTotalPointsAvailable()); point1 = geometry.point(); org.junit.Assert.assertEquals(0, geometry.getTotalPointsAvailable()); point1.dispose(); org.junit.Assert.assertEquals(1, geometry.getTotalPointsAvailable()); }
public void dispose() { if(disposed) { return; } disposed = true; clearPositionChangeListeners(); if(geometry == null) { return; } geometry.release(this); }
Point extends Vector2 implements Positionable, Disposable { public void dispose() { if(disposed) { return; } disposed = true; clearPositionChangeListeners(); if(geometry == null) { return; } geometry.release(this); } }
Point extends Vector2 implements Positionable, Disposable { public void dispose() { if(disposed) { return; } disposed = true; clearPositionChangeListeners(); if(geometry == null) { return; } geometry.release(this); } Point(Geometry geometry);  Point();  Point(float x, float y);  Point(Point point); }
Point extends Vector2 implements Positionable, Disposable { public void dispose() { if(disposed) { return; } disposed = true; clearPositionChangeListeners(); if(geometry == null) { return; } geometry.release(this); } Point(Geometry geometry);  Point();  Point(float x, float y);  Point(Point point); void dispose(); void setDisposed(boolean disposed); float getDistanceTo(float x, float y); @Override float getDistanceTo(Positionable positionable); @Override void moveTowards(float x, float y, float speed); @Override void moveTowards(Positionable positionable, float speed); @Override void addPostionChangeListener(
            PositionChangeListener<T> listener); @Override void removePositionChangeListener(
            PositionChangeListener<T> listener); void rotateAround(Point center, float degrees); void rotateAround(float centerX, float centerY, float degrees); boolean isOnLineBetween(Point a, Point b); boolean equals(Vector2 v); boolean equals(Vector2 v, float delta); boolean equals(float x, float y, float delta); float getX(); float getY(); void setX(float x); void setY(float y); @Override void setXY(float x, float y); @Override Vector2 set(float x, float y); @Override Vector2 add(float x, float y); @Override Vector2 sub(float x, float y); @Override Vector2 mul(Matrix3 mat); @Override Vector2 mulAdd(Vector2 vec, float scalar); @Override Vector2 mulAdd(Vector2 vec, Vector2 mulVec); @Override Vector2 scl(Vector2 v); @Override Vector2 scl(float scalar); @Override Vector2 scl(float x, float y); @Override Vector2 set(Vector2 v); @Override Vector2 add(Vector2 v); @Override Vector2 sub(Vector2 v); Point copy(); }
Point extends Vector2 implements Positionable, Disposable { public void dispose() { if(disposed) { return; } disposed = true; clearPositionChangeListeners(); if(geometry == null) { return; } geometry.release(this); } Point(Geometry geometry);  Point();  Point(float x, float y);  Point(Point point); void dispose(); void setDisposed(boolean disposed); float getDistanceTo(float x, float y); @Override float getDistanceTo(Positionable positionable); @Override void moveTowards(float x, float y, float speed); @Override void moveTowards(Positionable positionable, float speed); @Override void addPostionChangeListener(
            PositionChangeListener<T> listener); @Override void removePositionChangeListener(
            PositionChangeListener<T> listener); void rotateAround(Point center, float degrees); void rotateAround(float centerX, float centerY, float degrees); boolean isOnLineBetween(Point a, Point b); boolean equals(Vector2 v); boolean equals(Vector2 v, float delta); boolean equals(float x, float y, float delta); float getX(); float getY(); void setX(float x); void setY(float y); @Override void setXY(float x, float y); @Override Vector2 set(float x, float y); @Override Vector2 add(float x, float y); @Override Vector2 sub(float x, float y); @Override Vector2 mul(Matrix3 mat); @Override Vector2 mulAdd(Vector2 vec, float scalar); @Override Vector2 mulAdd(Vector2 vec, Vector2 mulVec); @Override Vector2 scl(Vector2 v); @Override Vector2 scl(float scalar); @Override Vector2 scl(float x, float y); @Override Vector2 set(Vector2 v); @Override Vector2 add(Vector2 v); @Override Vector2 sub(Vector2 v); Point copy();  }