APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Advice please?: AnalyticCurve variables

Return to the EJS Modeling forum
Login to post to this thread

Advice please?: AnalyticCurve variables
Mark Brand
3 Posts

Hi everybody. I'm trying to plot a 4-point bezier curve with moveable control-points on a DrawingPanel using AnalyticCurve.  All is well as long as my FunctionX and FunctionY are in terms only of t and literals, but I am not able to employ any model variables (which would be tracking the control points I wish to manipulate).  I've tried to employ custom functions instead, but that doesn't work for me either (EjsS_5.3_180211).

Please: can anybody advise on an appropriate approach to the above problem?  I've thought that a custom element might hold the answer, but I'm not able to figure out how to implement that either.  Any pointers to source code dealing with similar issues would be equally welcome.  Thank you sincerely in anticipation.

Current Replies - View all
Re: Advice please?: Analy...   (lookang - )
Re: Re: Advice please?: A...   (Mark Brand - )
Re: Re: Re: Advice please...   (lookang - )
Re: Re: Re: Re: Advice pl...   (Mark Brand - )
OSP Projects:
Open Source Physics - EJS Modeling
Physlet Physics
Physlet Quantum Physics
STP Book