Hey,

I would like to convert an Axis value like x1 y1 to an angle value like 45 degrees. Atm i "solved" this with a long if else but there has to be a better way of doing it?

thanks!

```
if (horAxis > 0)
{
crossHair.rotation = Quaternion.Euler (0, 0,0);
}else if (horAxis < 0)
{
crossHair.rotation = Quaternion.Euler (0, 0,180);
}
if (verAxis >0)
{
crossHair.rotation = Quaternion.Euler (0, 0,90);
}else if (verAxis <0)
{
crossHair.rotation = Quaternion.Euler (0, 0,-90);
}
if (horAxis > 0 && verAxis > 0)
{
crossHair.rotation = Quaternion.Euler (0, 0,45);
}
if (horAxis < 0 && verAxis < 0)
{
crossHair.rotation = Quaternion.Euler (0, 0,-135);
}
if (horAxis > 0 && verAxis < 0)
{
crossHair.rotation = Quaternion.Euler (0, 0,-45);
}
if (horAxis < 0 && verAxis > 0)
{
crossHair.rotation = Quaternion.Euler (0, 0,135);
}
```