150151152153154155156157158159160
float dy3 = y3 - y1; float dx4 = x4 - x1; float dy4 = y4 - y1; PolygonRegion polygonRegion = new PolygonRegion(textureRegion, new float[]{ 0, 0, dx2, dy2, dx3, dy3, 0, 0,