This repository was archived by the owner on Aug 18, 2020. It is now read-only.
Commit 91e68bb
committed
Correcting semantic usage of overloaded CloudLocation::operator
When using the - operator with a location one would typically expect the result being a new location which coordinates are calculated by LocNew.lat = Loc.lat - otherLoc.lat and LocNew.lon = Loc.lon - otherLoc.lon - and not a float value representing the euclidean distance.1 parent 38aa0ca commit 91e68bb
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
| 45 | + | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
64 | | - | |
| 67 | + | |
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
| |||
0 commit comments