showPendulum

showPendulum(x=nil, y=nil)
Instance Public methods

This procedure makes the pendulum appear at the correct place on the canvas. If the additional arguments x, y are passed instead of computing the position of the pendulum from the length of the pendulum rod and its angle, the length and angle are computed in reverse from the given location (which is taken to be the centre of the pendulum bob.)

doc_ruby_on_rails
2015-04-28 00:07:38
Comments
Leave a Comment

Please login to continue.