Commit f03696e5 authored by Julian Zobel's avatar Julian Zobel
Browse files

World Dimensions as PosVec in GPSCalc

parent 857e9bf0
...@@ -107,6 +107,10 @@ public class GPSCalculation { ...@@ -107,6 +107,10 @@ public class GPSCalculation {
.getWorldDimensions().getY(); .getWorldDimensions().getY();
} }
public static PositionVector getWorldDimensions() {
return new PositionVector(getWorldDimensionsX(), getWorldDimensionsY());
}
public static double getLatUpper() { public static double getLatUpper() {
return latCenter + ((Binder.getComponentOrNull(Topology.class) return latCenter + ((Binder.getComponentOrNull(Topology.class)
.getWorldDimensions().getY()/2) / 111111d); .getWorldDimensions().getY()/2) / 111111d);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment