Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
1
1weather
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitriy Stepanets
1weather
Commits
015f2e30
Commit
015f2e30
authored
Aug 20, 2021
by
Dmitriy Stepanets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIxed wind direction
parent
f5eb0178
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
OneWeatherCore/OneWeatherCore/HelperTypes.swift
+16
-16
No files found.
OneWeatherCore/OneWeatherCore/HelperTypes.swift
View file @
015f2e30
...
@@ -138,37 +138,37 @@ public enum WindDirection: String, Codable, CaseIterable {
...
@@ -138,37 +138,37 @@ public enum WindDirection: String, Codable, CaseIterable {
public
var
degrees
:
CGFloat
{
public
var
degrees
:
CGFloat
{
switch
self
{
switch
self
{
case
.
north
:
case
.
north
:
return
0
return
18
0
case
.
northNorthEast
:
case
.
northNorthEast
:
return
22.5
return
2
0
2.5
case
.
northEast
:
case
.
northEast
:
return
4
5
return
22
5
case
.
eastNorthEast
:
case
.
eastNorthEast
:
return
6
7.5
return
24
7.5
case
.
east
:
case
.
east
:
return
9
0
return
27
0
case
.
eastSouthEast
:
case
.
eastSouthEast
:
return
11
2.5
return
29
2.5
case
.
southEast
:
case
.
southEast
:
return
13
5
return
31
5
case
.
southSouthEast
:
case
.
southSouthEast
:
return
15
7.5
return
33
7.5
case
.
south
:
case
.
south
:
return
18
0
return
0
case
.
southSouthWest
:
case
.
southSouthWest
:
return
2
0
2.5
return
22.5
case
.
southWest
:
case
.
southWest
:
return
22
5
return
4
5
case
.
westSouthWest
:
case
.
westSouthWest
:
return
24
7.5
return
6
7.5
case
.
west
:
case
.
west
:
return
27
0
return
9
0
case
.
westNorthWest
:
case
.
westNorthWest
:
return
29
2.5
return
11
2.5
case
.
northWest
:
case
.
northWest
:
return
31
5
return
13
5
case
.
northNorthWest
:
case
.
northNorthWest
:
return
33
7.5
return
15
7.5
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment