public class Light{ double r, g, b, x, y, z; public Light() { } public Light(double x, double y, double z, double r, double g, double b) { this.x = x; this.y = y; this.z = z; this.r = r; this.g = g; this.b = b; } public void print() { System.out.println("Light loc: {" + x + ", " + y + ", " + z + "}"); System.out.println("Light col: {" + r + ", " + g + ", " + b + "}"); } public double[] getColor() { double color[] = {r, g, b}; return color; } public double[] getLocation() { double location[] = {x, y, z}; return location; } public double[] getDirection() { double[] direction = new double[3]; direction[0] = x; direction[1] = y; direction[2] = z; return direction; } }