package graphics; public class Sphere extends Quadratic { public double radius; public Sphere(Vector3 c, double r) { //2nd order equation for sphere: //a,b,c,d,e,f,g,h,i,j = (1, 1, 1, 0, 0, 0, -2*Cx, -2*Cy, -2*Cz, Cx^2 + Cy^2 + Cz^2 - r^2) super(1, 1, 1, 0,0,0, -2*c.get(0), -2*c.get(1), -2*c.get(2), c.dot(c) - r*r); this.radius = r; } }