![]() |
I want to map data which ranges between -1 to 1 to 0 to 1
Hello friends,
Can anyone give me any clue how can i map data which ranges from -1 to 1 to 0 to 1. using C language. Regards chaps |
Re: I want to map data which ranges between -1 to 1 to 0 to 1
Why can't you think of any relational operators and conditional statements in C? :)
|
Re: I want to map data which ranges between -1 to 1 to 0 to 1
Same way you would do it in any other language. What would you do to -1 to get 0, to 1 to get 1, and 0 to get 0.5? (Hint: Translate and Scale)
|
| All times are GMT +5.5. The time now is 16:31. |