com.uwsoft.editor.renderer.data.ShapeVO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of overlap2d-runtime-libgdx Show documentation
Show all versions of overlap2d-runtime-libgdx Show documentation
overlap2d-runtime-libgdx provides functionality to load, manipulate and render scenes generated by Overlap2D.
The newest version!
package com.uwsoft.editor.renderer.data;
import com.badlogic.gdx.math.Circle;
import com.badlogic.gdx.math.Vector2;
public class ShapeVO {
public Vector2 [][] polygons;
public Circle[] circles;
public ShapeVO clone() {
ShapeVO newVo = new ShapeVO();
Vector2 [][] target = new Vector2[polygons.length][];
for (int i = 0; i < polygons.length; i++) {
target[i] = new Vector2[polygons[i].length];
for(int j=0;j