@Override public float getRadius () { return shape.getRadius(); }
public final Shape clone() { PolygonShape shape = new PolygonShape(); shape.m_centroid.set(this.m_centroid); for (int i = 0; i < shape.m_normals.length; i++) { shape.m_normals[i].set(m_normals[i]); shape.m_vertices[i].set(m_vertices[i]); } shape.setRadius(this.getRadius()); shape.m_count = this.m_count; return shape; }
public final Shape clone() { PolygonShape shape = new PolygonShape(); shape.m_centroid.set(this.m_centroid); for (int i = 0; i < shape.m_normals.length; i++) { shape.m_normals[i].set(m_normals[i]); shape.m_vertices[i].set(m_vertices[i]); } shape.setRadius(this.getRadius()); shape.m_count = this.m_count; return shape; }
public final Shape clone() { PolygonShape shape = new PolygonShape(); shape.m_centroid.set(this.m_centroid); for (int i = 0; i < shape.m_normals.length; i++) { shape.m_normals[i].set(m_normals[i]); shape.m_vertices[i].set(m_vertices[i]); } shape.setRadius(this.getRadius()); shape.vertexCount = this.vertexCount; return shape; }
public final Shape clone() { PolygonShape shape = new PolygonShape(); shape.m_centroid.set(this.m_centroid); for (int i = 0; i < shape.m_normals.length; i++) { shape.m_normals[i].set(m_normals[i]); shape.m_vertices[i].set(m_vertices[i]); } shape.setRadius(this.getRadius()); shape.m_count = this.m_count; return shape; }
public final Shape clone() { PolygonShape shape = new PolygonShape(); shape.m_centroid.set(this.m_centroid); for (int i = 0; i < shape.m_normals.length; i++) { shape.m_normals[i].set(m_normals[i]); shape.m_vertices[i].set(m_vertices[i]); } shape.setRadius(this.getRadius()); shape.m_count = this.m_count; return shape; }
final PolygonShape poly = (PolygonShape) shape; m_count = poly.getVertexCount(); m_radius = poly.getRadius(); for (int i = 0; i < m_count; i++) { m_vertices[i].set(poly.m_vertices[i]);
final float radius = polygon.getRadius() + circle.getRadius(); final int vertexCount = polygon.getVertexCount(); float s;