Plasma
WeatherUtils Namespace Reference
The WeatherUtils namespace contains helper functions for weather ions. More...
Functions | |
| QString | degreesToCardinal (float degrees) |
Detailed Description
The WeatherUtils namespace contains helper functions for weather ions.
Function Documentation
| ION_EXPORT QString WeatherUtils::degreesToCardinal | ( | float | degrees | ) |
Converts wind/sun direction given in degrees to the nearest cardinal direction.
- Parameters:
-
degrees wind direction in degrees.
- Returns:
- a cardinal if available, empty string on error.
KDE 4.4 API Reference