public void testContainment() {
final Vec2D origin = new Vec2D(100, 100);
Polygon2D p = new Circle(origin, 50).toPolygon2D(8);
assertTrue(p.containsPoint(origin));
assertTrue(p.containsPoint(p.vertices.get(0)));
assertFalse(p.containsPoint(p.vertices.get(3).scale(1.01f)));
}
public void testIncreaseVertcount() {
final Vec2D origin = new Vec2D(100, 100);
Polygon2D p = new Circle(origin, 50).toPolygon2D(3);