I want the calculate the "value" of an angle in such a way that:
- The angle of 45 degrees corresponds with the maximum value of 1
- The angles of 0 and 90 degrees correspond with the minimum value of 0
- All angles between should be relative to these maximum and minimum values
I figured I should do some calculations with sin/cos and shift their period, but I can't reconstruct how to do this.