public class EquationCartesienne {
// define the (a, b, c, d) ax + by + cz +d = 0
private float a, b, c, d;
// constructor
public Equation (float a, float b, float c, float d)
{
this.a=a;
this.b=b;
this.c=c;
this.d=d;
}
// methods
public float geta()
{
return a;
}
public float getb()
{
return b;
}
public float getc()
{
return c;
}
public float getd()
{
return d;
}
public void seta(float a)
{
this.a=a;
}
public void setb(float b)
{
this.b=b;
}
public void setc(float c)
{
this.c=c;
}
public void setd(float d)
{
this.d=d;
}
}
Partager