public Slice2D ComplexSlice(List <Vector2f> slice) { Polygon colliderPolygon = GetPolygonToSlice(); if (colliderPolygon != null) { Slice2D sliceResult = Slicer2D.ComplexSlice(colliderPolygon, slice); sliceResult.AddGameObjects(PerformResult(sliceResult.polygons)); return(sliceResult); } return(Slice2D.Create()); }