package graphics; //single square public class Quad extends Shape { //not using parent.init, so implement it here public Quad() { this.matrix = new Matrix3D(); this.center = new double[3]; double[][] vertices2 = { {-1,-1, 0, 0,0,1, 0,0}, { 1,-1, 0, 0,0,1, 0,1}, { 1, 1, 0, 0,0,1, 1,0}, {-1, 1, 0, 0,0,1, 1,1} }; this.vertices = vertices2; int[][] faces2 = { { 0, 1, 2, 3} }; this.faces = faces2; calculateNormals(); } public Object clone() { Quad newQuad = new Quad(); for (int i=0; i