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
d963d167
Commit
d963d167
authored
May 29, 2017
by
Julian Zobel
Browse files
Added a simple way to get X and Y world dimensions
parent
32e5ffd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/movement/modularosm/GPSCalculation.java
View file @
d963d167
...
...
@@ -78,7 +78,17 @@ public class GPSCalculation {
public
static
int
getZoom
()
{
return
zoom
;
}
public
static
double
getWorldDimensionsX
()
{
return
Binder
.
getComponentOrNull
(
Topology
.
class
)
.
getWorldDimensions
().
getX
();
}
public
static
double
getWorldDimensionsY
()
{
return
Binder
.
getComponentOrNull
(
Topology
.
class
)
.
getWorldDimensions
().
getY
();
}
public
static
double
getLatUpper
()
{
return
latCenter
+
(
Binder
.
getComponentOrNull
(
Topology
.
class
)
.
getWorldDimensions
().
getY
()
/
111111
d
)
*
scaleFactor
;
...
...
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