|
|||||||||
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.ConicSection vmm.planecurve.parametric.Hyperbola
public class Hyperbola
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 vmm.planecurve.parametric.PlaneCurveParametric |
---|
PlaneCurveParametric.PlaneCurveParametricView |
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 | |
---|---|
Hyperbola()
Create a hyperboal given by parametric equations (a*cosh(t),b*singh(t)), for t between -2.3 and 2.3. |
Method Summary | |
---|---|
void |
doDraw(java.awt.Graphics2D g,
View view,
Transform limits)
Draw the hyperbola. |
protected void |
drawFociAndDirectrix(java.awt.Graphics2D g,
View view,
Transform limits,
double t)
This is overridden in the sub-classes to do the actual drawing of the extra decorations. |
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.ConicSection |
---|
getCreateAnimation, getMorphingAnimation |
Methods inherited from class vmm.planecurve.parametric.PlaneCurveParametric |
---|
getActionsForView, 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 |
Constructor Detail |
---|
public Hyperbola()
Method Detail |
---|
public void doDraw(java.awt.Graphics2D g, View view, Transform limits)
doDraw
in class PlaneCurveParametric
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.Exhibit.render(Graphics2D, View, Transform, ArrayList)
,
Exhibit.computeDrawData(View, boolean, Transform, Transform)
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
protected void drawFociAndDirectrix(java.awt.Graphics2D g, View view, Transform limits, double t)
ConicSection
drawFociAndDirectrix
in class ConicSection
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |