konstantin magnus Posted May 8, 2016 Share Posted May 8, 2016 Hi! I am looking for a (more compact) function that switches downwards after a certain value is reached. thank you! threshold.hiplc Quote Link to comment Share on other sites More sharing options...
anim Posted May 9, 2016 Share Posted May 9, 2016 not sure if more compact, but at least more correct for x range outside of 0-1 threshold2.hiplc 2 Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted September 4, 2022 Author Share Posted September 4, 2022 VEX version: float t = chf('threshold'); v@P.y = -abs(v@P.x - t) + t; 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.