Constant speed
|
04-18-2016, 07:27 AM
(This post was last modified: 04-18-2016 08:07 AM by Martin Hepperle.)
Post: #13
|
|||
|
|||
RE: Constant speed
... and for illustration ... a Series-80 BASIC implementation for drawing a curve at "constant speed". You supply the two functions for x(p) and y(p) at the end of the code.
Besides the pure plotting data some additional values are calculated (e.g. the arc length of the curve). For speed you could strip some code and I also have left in some duplicated subexpressions for clarity. The ticks option can be used to draw monorail tracks if you want to describe the track layout mathematically... Code:
Of course, one could replace \(arctan()\), \(sin()\) and \(cos()\) by \(sqrt()\) expressions and simplify further. Then you could replace Code:
The implementation will also hang if both derivatives are zero at the same time (singular point). Martin |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Constant speed - Tugdual - 04-04-2016, 10:33 PM
RE: Constant speed - PANAMATIK - 04-05-2016, 07:01 AM
RE: Constant speed - Tugdual - 04-05-2016, 07:19 AM
RE: Constant speed - Dave Britten - 04-05-2016, 11:14 AM
RE: Constant speed - Tugdual - 04-05-2016, 06:04 PM
RE: Constant speed - Dave Britten - 04-06-2016, 11:16 AM
RE: Constant speed - Tugdual - 04-07-2016, 06:13 AM
RE: Constant speed - Dave Britten - 04-07-2016, 11:16 AM
RE: Constant speed - Martin Hepperle - 04-11-2016, 02:01 PM
RE: Constant speed - Tugdual - 04-11-2016, 03:53 PM
RE: Constant speed - Martin Hepperle - 04-13-2016, 03:29 PM
RE: Constant speed - Tugdual - 04-13-2016, 06:30 PM
RE: Constant speed - Martin Hepperle - 04-18-2016 07:27 AM
|
User(s) browsing this thread: 1 Guest(s)