vmm3d.planecurve.parametric
Class Hyperbola
- java.lang.Object
-
- vmm3d.core.Exhibit
-
- vmm3d.planecurve.PlaneCurve
-
- vmm3d.planecurve.parametric.PlaneCurveParametric
-
- vmm3d.planecurve.parametric.ConicSection
-
- vmm3d.planecurve.parametric.Hyperbola
-
- All Implemented Interfaces:
- java.util.EventListener, javax.swing.event.ChangeListener, Decorateable, Parameterizable
public class Hyperbola extends ConicSection
A hyperbola given by parametric equations (a*cosh(t),b*sinh(t)). This gives only one branch of the hyperbola. The second, symmetrical branch is also drawn, but only the first branch is used for animations and decorations.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class vmm3d.planecurve.parametric.PlaneCurveParametric
PlaneCurveParametric.PlaneCurveParametricView
-
-
Constructor Summary
Constructors Constructor and Description Hyperbola()Create a hyperboal given by parametric equations (a*cosh(t),b*singh(t)), for t between -2.3 and 2.3.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddoDraw(org.freehep.graphics2d.VectorGraphics g, View view, Transform limits)Draw the hyperbola.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
getActionsForView, 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
-
Hyperbola
public Hyperbola()
Create a hyperboal given by parametric equations (a*cosh(t),b*singh(t)), for t between -2.3 and 2.3. The initial values of a and b are 1. a has animation start and end values both set to 1. b has animation start and end values of 1 and 1.5.
-
-
Method Detail
-
doDraw
public void doDraw(org.freehep.graphics2d.VectorGraphics g, View view, Transform limits)Draw the hyperbola. This overrides the inherited version of this method to draw the second branch of the hyperbola as well as the first.- Overrides:
doDrawin classPlaneCurveParametric- Parameters:
g- The graphics context where the Exhibit is being drawn. It has already been cleared to the background color (assuming that drawing is being done in the usual way, as defined in the top-level View class).view- The View that is drawing the Exhibit; this object contains other information that might be of use, such as the Display, if any, associated with the View.limits- Contains information about the rectangular area in the xy-plane that is being drawn and about the rectangle of pixels in the graphics context where it is drawn. Note that at least for the top-level View class, transform.getX() and transform.getY() can be assumed to be zero.- See Also:
#render(Graphics2D, View, Transform, ArrayList),Exhibit.computeDrawData(View, boolean, Transform, Transform)
-
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
-
-
DMelt 3.0 © DataMelt by jWork.ORG