this works fine , but it have a max of 0.6 for x and 0.4 for the y i would the max to 2pi for the x and pi for y.

Please look into the other thread.

my question is generic, but how i can convert a value for ex from -10 ,15 to 0-360?

Assuming you want to map this linearly, you need to do

1. subtract the lower limit, here -10, so that the new lower limit is at 0

( -10 .. 15 ) - (-10) => 0 .. 25

2. normalize the range by dividing by the difference of lower and upper limits, here 15-(-10)=25, so that

( 0 .. 25 ) / 25 => 0 .. 1

3. multiply by the desired range, here 360-0=360, so that

( 0 .. 1 ) * 360 => 0 .. 360

4. add the desired lower limit, here 0, so that

( 0 .. 360 ) + 0 => 0.. 360