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

Class UserPlaneCurveParametricKappa

  • All Implemented Interfaces:
    java.util.EventListener, javax.swing.event.ChangeListener, Decorateable, Parameterizable, UserExhibit


    public class UserPlaneCurveParametricKappa
    extends PlaneCurveParametric
    implements UserExhibit
    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.
    • Constructor Detail

      • UserPlaneCurveParametricKappa

        public UserPlaneCurveParametricKappa()
    • Method Detail

      • parameterChanged

        public void parameterChanged(Parameter param,
                                     java.lang.Object oldValue,
                                     java.lang.Object newValue)
        Description copied from class: Exhibit
        This method will be called automatically when a parameter that has been added to this Exhibit is changed. It should not ordinarily be called directly. Note that in fact, this method simply calls forceRedraw. This method is defined in the <@link Parameterizable} interface.
        Specified by:
        parameterChanged in interface Parameterizable
        Overrides:
        parameterChanged in class Exhibit
        Parameters:
        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).
        See Also:
        Exhibit.forceRedraw()
      • 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
      • getUserExhibitSupport

        public UserExhibit.Support getUserExhibitSupport()
        Description copied from interface: UserExhibit
        This method should return a non-null object that is created and customized in the constructor of the class that implements UserExhbit.
        Specified by:
        getUserExhibitSupport in interface UserExhibit

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.