27 ms·
That surprised me as well. After some thinking I came up with min and max. If, for example, I want to change direction after x==4 I can do use -1.5(max(x,
by svckr 12y ago
That surprised me as well.
After some thinking I came up with min and max. If, for example, I want to change direction after x==4 I can do use
-1.5(max(x,4)-4)
0 4
-----,
\
\
Maybe there are more tricks like that?