Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
PeerfactSim.KOM
Commits
bd9f7094
Commit
bd9f7094
authored
Oct 11, 2016
by
Björn Richerzhagen
Browse files
Bugfix: wrong Long/Lat calculations if world is not symmetric
parent
6bd92206
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/movement/modularosm/GPSCalculation.java
View file @
bd9f7094
...
...
@@ -68,25 +68,25 @@ public class GPSCalculation {
public
static
double
getLatUpper
()
{
return
latCenter
+
scaleFactor
*
0.027613
*
Binder
.
getComponentOrNull
(
Topology
.
class
).
getWorldDimensions
().
get
X
()
.
getComponentOrNull
(
Topology
.
class
).
getWorldDimensions
().
get
Y
()
/
1000
;
}
public
static
double
getLatLower
()
{
return
latCenter
-
scaleFactor
*
0.027613
*
Binder
.
getComponentOrNull
(
Topology
.
class
).
getWorldDimensions
().
get
X
()
.
getComponentOrNull
(
Topology
.
class
).
getWorldDimensions
().
get
Y
()
/
1000
;
}
public
static
double
getLonLeft
()
{
return
lonCenter
-
scaleFactor
*
0.0419232
*
Binder
.
getComponentOrNull
(
Topology
.
class
).
getWorldDimensions
().
get
Y
()
.
getComponentOrNull
(
Topology
.
class
).
getWorldDimensions
().
get
X
()
/
1000
;
}
public
static
double
getLonRight
()
{
return
lonCenter
+
scaleFactor
*
0.0419232
*
Binder
.
getComponentOrNull
(
Topology
.
class
).
getWorldDimensions
().
get
Y
()
.
getComponentOrNull
(
Topology
.
class
).
getWorldDimensions
().
get
X
()
/
1000
;
}
...
...
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