vmm3d.planecurve.parametric
Class Parabola
- java.lang.Object
-
- vmm3d.core.Exhibit
-
- vmm3d.planecurve.PlaneCurve
-
- vmm3d.planecurve.parametric.PlaneCurveParametric
-
- vmm3d.planecurve.parametric.ConicSection
-
- vmm3d.planecurve.parametric.Parabola
-
- All Implemented Interfaces:
- java.util.EventListener, javax.swing.event.ChangeListener, Decorateable, Parameterizable
public class Parabola extends ConicSection
A parabola with a focus on the x-axis. The parabola is defined by its focal length.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class vmm3d.planecurve.parametric.PlaneCurveParametric
PlaneCurveParametric.PlaneCurveParametricView
-
-
Constructor Summary
Constructors Constructor and Description Parabola()Construct a parabola with a focus initially at the point (0.75.0).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ActionListgetActionsForView(View view)Returns a list of actions that are applicable to the exhibit.doublex2ndDerivativeValue(double t)Computes x''(t) for a given value of t.doublexDerivativeValue(double t)Computes x'(t) for a given value of t.doublexValue(double t)Computes x(t) for a given value of t.doubley2ndDerivativeValue(double t)Computes y''(t) for a given value of t.doubleyDerivativeValue(double t)Computes y'(t) for a given value of t.doubleyValue(double t)Computes y(t) for a given value of t.-
Methods inherited from class vmm3d.planecurve.parametric.ConicSection
getCreateAnimation, getMorphingAnimation
-
Methods inherited from class vmm3d.planecurve.parametric.PlaneCurveParametric
doDraw, getDefaultView, getT, getTResolution, myCircle
-
Methods inherited from class vmm3d.planecurve.PlaneCurve
fillRandomSquare, getPoint, getPointCount, initializeMovingSquare
-
Methods inherited from class vmm3d.core.Exhibit
addChangeListener, addDecoration, addExtraXML, addView, clearDecorations, forceRedraw, getAdditionalAnimationsForView, getAlternativeViews, getBuildAnimation, getDecorations, getDefaultBackground, getDefaultForeground, getDefaultTransform, getDefaultWindow, getFramesForMorphing, getName, getParameterByName, getParameters, getSettingsCommandsForView, getTitle, getUseFilmstripForMorphing, getViews, parameterChanged, readExtraXML, removeChangeListener, removeDecoration, removeView, render, setDefaultBackground, setDefaultForeground, setDefaultWindow, setDefaultWindow, setFramesForMorphing, setName, setUseFilmstripForMorphing, stateChanged
-
-
-
-
Constructor Detail
-
Parabola
public Parabola()
Construct a parabola with a focus initially at the point (0.75.0). The focal length is an animateable parameter with animation start and end values initially set to 0.5 and 1.5. The parabola is acutally computed using the parametric equations (t,t*t/(4*f)), where f is the focal length and t ranges from -8 to 8.
-
-
Method Detail
-
xValue
public double xValue(double t)
Description copied from class:PlaneCurveParametricComputes x(t) for a given value of t.- Specified by:
xValuein classPlaneCurveParametric
-
yValue
public double yValue(double t)
Description copied from class:PlaneCurveParametricComputes y(t) for a given value of t.- Specified by:
yValuein classPlaneCurveParametric
-
xDerivativeValue
public double xDerivativeValue(double t)
Description copied from class:PlaneCurveParametricComputes x'(t) for a given value of t. The default version defined in this class computes an approximate value numerically, using values of the function itself at points near t.- Overrides:
xDerivativeValuein classPlaneCurveParametric
-
yDerivativeValue
public double yDerivativeValue(double t)
Description copied from class:PlaneCurveParametricComputes y'(t) for a given value of t. The default version defined in this class computes an approximate value numerically, using values of the function itself at points near t.- Overrides:
yDerivativeValuein classPlaneCurveParametric
-
x2ndDerivativeValue
public double x2ndDerivativeValue(double t)
Description copied from class:PlaneCurveParametricComputes x''(t) for a given value of t. The default version defined in this class computes an approximate value numerically, using values of the function itself at points near t.- Overrides:
x2ndDerivativeValuein classPlaneCurveParametric
-
y2ndDerivativeValue
public double y2ndDerivativeValue(double t)
Description copied from class:PlaneCurveParametricComputes y''(t) for a given value of t. The default version defined in this class computes an approximate value numerically, using values of the function itself at points near t.- Overrides:
y2ndDerivativeValuein classPlaneCurveParametric
-
getActionsForView
public ActionList getActionsForView(View view)
Returns a list of actions that are applicable to the exhibit. To the actions set up by the superclass, this adds a "Drag Mouse to Show Normals" action that lets the user drag the mouse and draws all normal vectors of the parabola that pass through the mouse location.- Overrides:
getActionsForViewin classPlaneCurveParametric- Parameters:
view- The view for which the actions should apply. If this is null, then no new actions are added to those inherited from the superclass.
-
-
DMelt 3.0 © DataMelt by jWork.ORG