com.graphbuilder.math.ValNode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of curvesapi Show documentation
Show all versions of curvesapi Show documentation
Implementation of various mathematical curves that define themselves over a set of control points. The API is written in Java. The curves supported are: Bezier, B-Spline, Cardinal Spline, Catmull-Rom Spline, Lagrange, Natural Cubic Spline, and NURBS.
package com.graphbuilder.math;
/**
A node of an expression tree that represents a value. A ValNode cannot have any children.
*/
public class ValNode extends Expression {
protected double val = 0.0;
public ValNode(double d) {
val = d;
}
/**
Returns the value.
*/
public double eval(VarMap v, FuncMap f) {
return val;
}
public double getValue() {
return val;
}
public void setValue(double d) {
val = d;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy