Utility function to return textual cardinal compass directions from degress.
public static degToDirection ( integer $degree ) : string | ||
$degree | integer | The degree direction (0 - 360). |
return | string | The cardinal direction. |
public static degToDirection ( integer $degree ) : string | ||
$degree | integer | The degree direction (0 - 360). |
return | string | The cardinal direction. |