libgdx/libgdx — pull request #1904 by seroperson (2014-05-25 19:18:06+00:00)
Title: Changes in gdx.math

Hello. Here I commited some changes in math package.
Circle, Rectangle, Ellipse, Polygon are extends Shape now.
Ellipse and Rectangle are also extends RectangleBased.
For now you can do something like that:
``` boolean isPointInShape(Shape shape, Vector2 point) { return shape.contains(point); } ```
or
``` void moveAllShapesTo(List shapes, Vector2 point) { for(Shape shape : shapes) shape.setPosition(point); } ```
and so on.
But it's have not implemented contains(Ellipse) & overlaps(Ellipse) in Ellipse.java and contains(Polygon) & overlaps(Polygon) in Polygon.java.