Commit 015f2e30 by Dmitriy Stepanets

FIxed wind direction

parent f5eb0178
......@@ -138,37 +138,37 @@ public enum WindDirection: String, Codable, CaseIterable {
public var degrees: CGFloat {
switch self {
case .north:
return 0
return 180
case .northNorthEast:
return 22.5
return 202.5
case .northEast:
return 45
return 225
case .eastNorthEast:
return 67.5
return 247.5
case .east:
return 90
return 270
case .eastSouthEast:
return 112.5
return 292.5
case .southEast:
return 135
return 315
case .southSouthEast:
return 157.5
return 337.5
case .south:
return 180
return 0
case .southSouthWest:
return 202.5
return 22.5
case .southWest:
return 225
return 45
case .westSouthWest:
return 247.5
return 67.5
case .west:
return 270
return 90
case .westNorthWest:
return 292.5
return 112.5
case .northWest:
return 315
return 135
case .northNorthWest:
return 337.5
return 157.5
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment