Documentation of 'vmm3d.planecurve.parametric.Hyperbola' Java class
Hyperbola
vmm3d.planecurve.parametric

Class 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.
    • 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:
        doDraw in class PlaneCurveParametric
        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)
      • xDerivativeValue

        public double xDerivativeValue(double t)
        Description copied from class: PlaneCurveParametric
        Computes 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:
        xDerivativeValue in class PlaneCurveParametric
      • yDerivativeValue

        public double yDerivativeValue(double t)
        Description copied from class: PlaneCurveParametric
        Computes 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:
        yDerivativeValue in class PlaneCurveParametric
      • x2ndDerivativeValue

        public double x2ndDerivativeValue(double t)
        Description copied from class: PlaneCurveParametric
        Computes 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:
        x2ndDerivativeValue in class PlaneCurveParametric
      • y2ndDerivativeValue

        public double y2ndDerivativeValue(double t)
        Description copied from class: PlaneCurveParametric
        Computes 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:
        y2ndDerivativeValue in class PlaneCurveParametric

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.