|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vmm.core.Exhibit vmm.planecurve.PlaneCurve vmm.planecurve.parametric.PlaneCurveParametric vmm.planecurve.parametric.UserPlaneCurveParametricKappa
public class UserPlaneCurveParametricKappa
A plane curve c(s) = (x(s),y(s)) is defined by its curvature function kappa(s). kappa(s) is to be entered by the user. The Frenet equation c''(s) = kappa(s)*normal(s) gives c'(s) = (cos(alpha(s)), sin(alpha(s)) ), where alpha'(s) = kappa(s). Therefore c(s) is obtained by a double integration. We use a precomputed antiderivative alphs of kappa, stored in helpArray. This reduces the double integration to a single one - and this is fast enough so that these Frenet curves behave as if they were given by an explicit parametrization. If tmin =< 0 =< tmax then alpha(0) = 0.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class vmm.planecurve.parametric.PlaneCurveParametric |
---|
PlaneCurveParametric.PlaneCurveParametricView |
Nested classes/interfaces inherited from interface vmm.core.UserExhibit |
---|
UserExhibit.FunctionInfo, UserExhibit.Support |
Field Summary |
---|
Fields inherited from class vmm.planecurve.parametric.PlaneCurveParametric |
---|
tmax, tmin, tResolution, tVals |
Fields inherited from class vmm.planecurve.PlaneCurve |
---|
movingSquare, points, randomSquare |
Fields inherited from class vmm.core.Exhibit |
---|
decorations, exhibitNeedsRedraw, isMorphing, morphingView, parameters, previousTransform |
Constructor Summary | |
---|---|
UserPlaneCurveParametricKappa()
|
Method Summary | |
---|---|
UserExhibit.Support |
getUserExhibitSupport()
This method should return a non-null object that is created and customized in the constructor of the class that implements UserExhbit. |
void |
parameterChanged(Parameter param,
java.lang.Object oldValue,
java.lang.Object newValue)
This method will be called automatically when a parameter that has been added to this Exhibit is changed. |
double |
x2ndDerivativeValue(double t)
Computes x''(t) for a given value of t. |
double |
xDerivativeValue(double t)
Computes x'(t) for a given value of t. |
double |
xValue(double t)
Computes x(t) for a given value of t. |
double |
y2ndDerivativeValue(double t)
Computes y''(t) for a given value of t. |
double |
yDerivativeValue(double t)
Computes y'(t) for a given value of t. |
double |
yValue(double t)
Computes y(t) for a given value of t. |
Methods inherited from class vmm.planecurve.parametric.PlaneCurveParametric |
---|
doDraw, getActionsForView, getCreateAnimation, getDefaultView, getT, getTResolution, makePoints, myCircle |
Methods inherited from class vmm.planecurve.PlaneCurve |
---|
computeDrawData, fillRandomSquare, getPoint, getPointCount, initializeMovingSquare, moveSquare |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface vmm.core.UserExhibit |
---|
getDefaultView, getDefaultWindow, getParameters, setDefaultWindow |
Constructor Detail |
---|
public UserPlaneCurveParametricKappa()
Method Detail |
---|
public void parameterChanged(Parameter param, java.lang.Object oldValue, java.lang.Object newValue)
Exhibit
forceRedraw
. This method is defined in the <@link Parameterizable} interface.
parameterChanged
in interface Parameterizable
parameterChanged
in class Exhibit
param
- The Parmeter whose value has been set.oldValue
- The previous value of the parameter.newValue
- The new, current value of the parameter. This is not
necessarily guaranteed to be different from the old value (although it
is for parameters definedin the VMM core).Exhibit.forceRedraw()
public double xValue(double t)
PlaneCurveParametric
xValue
in class PlaneCurveParametric
public double yValue(double t)
PlaneCurveParametric
yValue
in class PlaneCurveParametric
public double xDerivativeValue(double t)
PlaneCurveParametric
xDerivativeValue
in class PlaneCurveParametric
public double yDerivativeValue(double t)
PlaneCurveParametric
yDerivativeValue
in class PlaneCurveParametric
public double x2ndDerivativeValue(double t)
PlaneCurveParametric
x2ndDerivativeValue
in class PlaneCurveParametric
public double y2ndDerivativeValue(double t)
PlaneCurveParametric
y2ndDerivativeValue
in class PlaneCurveParametric
public UserExhibit.Support getUserExhibitSupport()
UserExhibit
getUserExhibitSupport
in interface UserExhibit
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |