Changeset 36245 in osm for applications/editors/josm/plugins
- Timestamp:
- 2024-04-16T14:49:20+02:00 (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/FIT/src/main/java/org/openstreetmap/josm/plugins/fit/lib/global/HeartRateCadenceDistanceSpeed.java
r36158 r36245 100 100 // 56.7421794 = 676960569 / 180 * x => x = 56.7421794 * 180 / 676960569 = 1.5087e-5 (inverse -> 66280.359) 101 101 // 56.7421794 = 676960569 * 180 * x => x = 56.7421794 / (180 * 676960569) = 3.56e-8 (inverse -> 2.1474836E9, or Integer.MAX_VALUE) 102 return original * 180d / Integer.MAX_VALUE; 102 var raw = original * 180d / Integer.MAX_VALUE; 103 while (raw >= 180d) { 104 raw -= 360d; 105 } 106 return raw; 103 107 } 104 108
Note:
See TracChangeset
for help on using the changeset viewer.