org.jcurl.math
Class Distance2DSq

Package class diagram package Distance2DSq
java.lang.Object
  extended by org.jcurl.math.R1RNFunctionImpl
      extended by org.jcurl.math.R1R1Function
          extended by org.jcurl.math.Distance2DSq
All Implemented Interfaces:
Serializable, R1RNFunction

public class Distance2DSq
extends R1R1Function

The distance between two R1RNFunctions - only 2 dimensions used. Differentiable min. 1x.

Version:
$Id: Distance2DSq.java 1031 2009-07-23 15:06:05Z mro $
Author:
M. Rohrmoser
See Also:
Serialized Form

Constructor Summary
Distance2DSq(R1RNFunction c1, double r1, R1RNFunction c2, double r2)
          Distance between two (2-dimensional) spheres moving along curve c1 and curve c2, having radii r1 and r2.
Distance2DSq(R1RNFunction c1, R1RNFunction c2, double r12Sqr)
          Distance between two (2-dimensional) spheres moving along curve c1 and curve c2, having the square sum of radii r12Sqr.
Distance2DSq(R1RNFunction c1, R1RNFunction c2, double r12Sqr, int c)
          Distance between two (2-dimensional) spheres moving along curve c1 and curve c2, having the square sum of radii r12Sqr.
 
Method Summary
 double at(double t, int c)
          Compute the c'th derivative at x.
protected  double atC0(double t)
          (c1(t) - c2(t))^2 - (r1 + r2)^2.
protected  double atC1(double t)
          2 * (c1 - c2) * (c1' - c2') Feed into maxima: a(t) := [ ax(t), ay(t) ]; b(t) := [ bx(t), by(t) ]; d(t) := (a(t) - b(t)) .
 String toString()
           
 
Methods inherited from class org.jcurl.math.R1R1Function
at, at
 
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

Distance2DSq

Distance2DSq(R1RNFunction c1,
             double r1,
             R1RNFunction c2,
             double r2)
Distance between two (2-dimensional) spheres moving along curve c1 and curve c2, having radii r1 and r2.

Parameters:
c1 -
r1 -
c2 -
r2 -

Distance2DSq

public Distance2DSq(R1RNFunction c1,
                    R1RNFunction c2,
                    double r12Sqr)
Distance between two (2-dimensional) spheres moving along curve c1 and curve c2, having the square sum of radii r12Sqr.

Parameters:
c1 -
c2 -
r12Sqr - (r1+r2)^2

Distance2DSq

public Distance2DSq(R1RNFunction c1,
                    R1RNFunction c2,
                    double r12Sqr,
                    int c)
Distance between two (2-dimensional) spheres moving along curve c1 and curve c2, having the square sum of radii r12Sqr.

Parameters:
c1 -
c2 -
r12Sqr - (r1+r2)^2
c - derivative of c1 and c2 to operate on. Usually 0
Method Detail

at

public double at(double t,
                 int c)
Description copied from class: R1R1Function
Compute the c'th derivative at x.

Specified by:
at in class R1R1Function
Parameters:
c -
t -
Returns:
the value
See Also:
atC0(double), atC1(double)

atC0

protected double atC0(double t)
(c1(t) - c2(t))^2 - (r1 + r2)^2.

Parameters:
t -
Returns:
the value

atC1

protected double atC1(double t)
2 * (c1 - c2) * (c1' - c2') Feed into maxima:
       a(t) := [ ax(t), ay(t) ];
       b(t) := [ bx(t), by(t) ];
       d(t) := (a(t) - b(t)) . (a(t) - b(t));
       diff(d(t), t);
       quit$
 


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2009 jcurl.org. All Rights Reserved.