Technology
MySQL
Problem
Given is a radian value that defines the direction.
This radian can be easily converted to degrees (f.e. 1 radian = 57.296°). But this would result in the following:
- 0° would match East
- 90° would match North
- 180° would match West
- ...
Desired outcome
When given a radian value the degree is returned where the result is the following:
- 0° would match North
- 90° would match East
- 180° would match South
- 270° would match West
- ...