1

**Graphics / Conversion from SFML angles to radians [SOLVED]**

« **on:**June 21, 2014, 06:20:29 pm »

Greetings.

When designing things making use of angles - movement, for example - I generally use radians now, as the underlying mechanism, though I may specify initial angles in degrees, as I still find them easier to picture (for example, 1 degree is much more clear to me than the radian equivalent). This works well as the trig functions generally takes radians.

SFML, however, does not.

Due to this, I was trying to convert to and from these different units.

In detail. Radians starting on the positive x axis, counted counterclockwise. SFML degrees, it seems, start on the positive y axis, and are counted clockwise.

I imagine this may be of use to future searches for the same thing.

I seem to have inconsistent success with the functions.

What math would be required for each?

When designing things making use of angles - movement, for example - I generally use radians now, as the underlying mechanism, though I may specify initial angles in degrees, as I still find them easier to picture (for example, 1 degree is much more clear to me than the radian equivalent). This works well as the trig functions generally takes radians.

SFML, however, does not.

Due to this, I was trying to convert to and from these different units.

In detail. Radians starting on the positive x axis, counted counterclockwise. SFML degrees, it seems, start on the positive y axis, and are counted clockwise.

I imagine this may be of use to future searches for the same thing.

I seem to have inconsistent success with the functions.

What math would be required for each?