org.jcurl.math
Class PolynomeCurve

Package class diagram package PolynomeCurve
java.lang.Object
  extended by org.jcurl.math.R1RNFunctionImpl
      extended by 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

Constructor Summary
PolynomeCurve(double[][] params)
           
PolynomeCurve(Polynome[] polys)
           
 
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!
 
Methods inherited from class org.jcurl.math.R1RNFunctionImpl
at, at, dim
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PolynomeCurve

public PolynomeCurve(double[][] params)

PolynomeCurve

public PolynomeCurve(Polynome[] polys)
Method Detail

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-value
c - 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.