org.jcurl.math
Class PolynomeCurve
java.lang.Object
org.jcurl.math.R1RNFunctionImpl
org.jcurl.math.PolynomeCurve
- All Implemented Interfaces:
- Serializable, R1RNFunction
public class PolynomeCurve
- extends R1RNFunctionImpl
Multidimensional curves of polynomes.
- Version:
- $Id: PolynomeCurve.java 1031 2009-07-23 15:06:05Z mro $
- Author:
- M. Rohrmoser
- See Also:
- Serialized Form
|
Method Summary |
(package private) static double[] |
add(double[] p1,
double[] p2,
double[] ret)
|
double |
at(double t,
int c,
int dim)
Compute the c'th derivative of the given dimension at t. |
static double[] |
mult(double[] p1,
double[] p2,
double[] ret)
|
String |
toString()
|
static PolynomeCurve |
transform(AffineTransform at,
PolynomeCurve p)
Works only proper for 2 Dimensions! |
PolynomeCurve
public PolynomeCurve(double[][] params)
PolynomeCurve
public PolynomeCurve(Polynome[] polys)
add
static double[] add(double[] p1,
double[] p2,
double[] ret)
mult
public static double[] mult(double[] p1,
double[] p2,
double[] ret)
transform
public static PolynomeCurve transform(AffineTransform at,
PolynomeCurve p)
- Works only proper for 2 Dimensions!
- Parameters:
at - p -
- Returns:
- the transformed curve.
at
public double at(double t,
int c,
int dim)
- Description copied from interface:
R1RNFunction
- Compute the c'th derivative of the given dimension at
t.
- Specified by:
at in interface R1RNFunction- Specified by:
at in class R1RNFunctionImpl
- Parameters:
t - t-valuec - derivative (0=location, 1:speed, ...)dim - dimension (0,1,2,...)
- Returns:
- the c'th derivative at
t
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2005-2009 jcurl.org. All Rights Reserved.