|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.jcurl.math.R1RNFunctionImpl
org.jcurl.math.R1R1Function
org.jcurl.math.Distance2DSq
public class Distance2DSq
The distance between two R1RNFunctions - only 2 dimensions used.
Differentiable min. 1x.
| 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(R1RNFunction c1,
double r1,
R1RNFunction c2,
double r2)
c1 and curve c2, having radii
r1 and r2.
c1 - r1 - c2 - r2 -
public Distance2DSq(R1RNFunction c1,
R1RNFunction c2,
double r12Sqr)
c1 and curve c2, having the square sum of
radii r12Sqr.
c1 - c2 - r12Sqr - (r1+r2)^2
public Distance2DSq(R1RNFunction c1,
R1RNFunction c2,
double r12Sqr,
int c)
c1 and curve c2, having the square sum of
radii r12Sqr.
c1 - c2 - r12Sqr - (r1+r2)^2c - derivative of c1 and c2 to operate on. Usually 0| Method Detail |
|---|
public double at(double t,
int c)
R1R1Functionx.
at in class R1R1Functionc - t -
atC0(double),
atC1(double)protected double atC0(double t)
(c1(t) - c2(t))^2 - (r1 + r2)^2.
t -
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$
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||