All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.graphbuilder.math.ValNode Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.08
Show newest version
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