@Test
public void testIsConvexPolygon() {

    Polygon polygon = new Polygon(1, new Vector3(0, 0), new Vector3(0, 1), new Vector3(1, 0));
    Assert.assertTrue(polygon.calculateIsConvex());
    Polygon polygon2 = new Polygon(1, new Vector3(0, 0), new Vector3(0, 1), new Vector3(1, 1), new Vector3(1, 0), new Vector3(0.5f, 0.5f));
    Assert.assertFalse(polygon2.calculateIsConvex());
    Polygon polygon3 = new Polygon(1, new Vector3(0, 0), new Vector3(0, 1), new Vector3(1, 1), new Vector3(1, 0));
    Assert.assertTrue(polygon3.calculateIsConvex());
}