package ProGAL.geom3d.surface; import ProGAL.geom3d.Point; import ProGAL.geom3d.Vector; import ProGAL.math.Matrix; //import static java.lang.Math.cos; //import static java.lang.Math.sin; public class ParametricParaboloid extends ParametricSurface{ private double a, b, c; private Vector displacement; private Matrix rotation; public ParametricParaboloid(double a, double b, double c){ this(a,b,c,new Vector(0,0,0)); } public ParametricParaboloid(double a, double b, double c, Vector displacement){ this.a = a; this.b = b; this.c = c; this.displacement = displacement; this.rotation = Matrix.createIdentityMatrix(3); } public Vector getDisplacement(){ return displacement.clone(); } public void setDisplacement(Vector v){ displacement.set(v); } public double getA(){ return a; } public void setA(double v){ a = v;} public double getB(){ return b; } public void setB(double v){ b = v;} public double getC(){ return c; } public void setC(double v){ c = v;} public Matrix getRotation(){ return rotation.clone(); } public void setRotation(Matrix rot){ for(int r=0;r