vmm3d.planecurve.parametric
Class SineCurve
- java.lang.Object
-
- vmm3d.core.Exhibit
-
- vmm3d.planecurve.PlaneCurve
-
- vmm3d.planecurve.parametric.PlaneCurveParametric
-
- vmm3d.planecurve.parametric.DecoratedCurve
-
- vmm3d.planecurve.parametric.SineCurve
-
- All Implemented Interfaces:
- java.util.EventListener, javax.swing.event.ChangeListener, Decorateable, Parameterizable
public class SineCurve extends DecoratedCurve
Defines a sine curve as a parametric plane curve. The amplitude, frequency, and phase of the curve are parameters that can be set by the user. By default, the curve has amplitude 1, frequency 1, and phase 0 and is defined on the intervale [0,2pi].
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class vmm3d.planecurve.parametric.DecoratedCurve
DecoratedCurve.MMOView
-
Nested classes/interfaces inherited from class vmm3d.planecurve.parametric.PlaneCurveParametric
PlaneCurveParametric.PlaneCurveParametricView
-
-
Constructor Summary
Constructors Constructor and Description SineCurve()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublexValue(double t)Define the x-coordinate function x(t) = t for the parametric curve.doubleyValue(double t)Define the y-coordinate function y(t) = a*sin(f*(t-p)), where a is the amplitude, f is the frequency, and p is the phase.-
Methods inherited from class vmm3d.planecurve.parametric.DecoratedCurve
doDraw, getCreateAnimation, getDefaultView, getStrokeSize, getWantedColor, setStrokeSize, setWantedColor
-
Methods inherited from class vmm3d.planecurve.parametric.PlaneCurveParametric
getActionsForView, getT, getTResolution, myCircle, x2ndDerivativeValue, xDerivativeValue, y2ndDerivativeValue, yDerivativeValue
-
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, getMorphingAnimation, getName, getParameterByName, getParameters, getSettingsCommandsForView, getTitle, getUseFilmstripForMorphing, getViews, parameterChanged, readExtraXML, removeChangeListener, removeDecoration, removeView, render, setDefaultBackground, setDefaultForeground, setDefaultWindow, setDefaultWindow, setFramesForMorphing, setName, setUseFilmstripForMorphing, stateChanged
-
-
-
-
Method Detail
-
xValue
public double xValue(double t)
Define the x-coordinate function x(t) = t for the parametric curve.- Specified by:
xValuein classPlaneCurveParametric
-
yValue
public double yValue(double t)
Define the y-coordinate function y(t) = a*sin(f*(t-p)), where a is the amplitude, f is the frequency, and p is the phase.- Specified by:
yValuein classPlaneCurveParametric
-
-
DMelt 3.0 © DataMelt by jWork.ORG