mercredi 17 novembre 2021

inRange from both sides without IF statement (from 0 to 0.5 if input is positive or from 0.5 to 1 if input is negative)

Is it possible to avoid IF statement for this equation?

  • If input is 0.5, then range from 0 to 0.5 returns true
  • If input is -0.5, then range from 0.5 to 1 returns true

Aucun commentaire:

Enregistrer un commentaire