I have a heading, which is an integer and from it I would like to figure out the compass direction(North, North-East,...) and return the appropriate icon. I feel like I'm probably already at the cleanest solution but I would love to be proven wrongpublic GetHeadingImage(string iconName, int heading){        if (IsNorthHeading(heading))            return iconName  + n + ICON_FILE_EXTENTION;        if (IsNorthEastHeading(heading))            return iconName + ne + ICON_FILE_EXTENTION;        if (IsEastHeading(heading))            return iconName + e + ICON_FILE_EXTENTION;        /*A bunch more lines*/}private bool IsNorthHeading(int heading){    return heading < 23 || heading > 337;}/* A bunch more extracted test methods*/
Cleaner way to calculate compass direction?
c#