/* (non-Javadoc) * @see org.dyn4j.geometry.AbstractShape#translate(double, double) */ @Override public void translate(double x, double y) { super.translate(x, y); int size = this.vertices.length; for (int i = 0; i < size; i++) { this.vertices[i].add(x, y); } }
/* (non-Javadoc) * @see org.dyn4j.geometry.AbstractShape#rotate(double, double, double) */ @Override public void rotate(double theta, double x, double y) { super.rotate(theta, x, y); int size = this.vertices.length; for (int i = 0; i < size; i++) { this.vertices[i].rotate(theta, x, y); this.normals[i].rotate(theta, x, y); } }