|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFEJDMath.ShapeFunction
FEJDMath.LinearFct
Represents a 2D linear function
Constructor Summary | |
LinearFct(int a,
int b,
int c)
Makes a new LinearFct of the form: a + b*X + c*Y |
Method Summary | |
double |
computeFctAt(double x,
double y)
Returns the value of the function at (x,y) |
Vector2 |
computeGradAt(double x,
double y)
Returns the value of the gradient of the function at (x,y) |
double |
getCoeffElem(int i)
Returns the ith coefficient of the function |
void |
setCoeffElem(int i,
double d)
Sets the ith coefficient of the function to value |
void |
setNbOfCoeff(int i)
Sets the number of coefficients of the function to i |
java.lang.String |
toString()
Returns a description of the function |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LinearFct(int a, int b, int c)
Method Detail |
public Vector2 computeGradAt(double x, double y)
ShapeFunction
computeGradAt
in class ShapeFunction
public double computeFctAt(double x, double y)
ShapeFunction
computeFctAt
in class ShapeFunction
public java.lang.String toString()
toString
in class ShapeFunction
public double getCoeffElem(int i)
public void setCoeffElem(int i, double d)
public void setNbOfCoeff(int i)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |