Home | History | Annotate | Download | only in navigation

Lines Matching defs:centre

33     private Position centre;
35 /* The x and y co-ordinates for the viewport's centre */
56 this.centre = new Position(0, 0);
70 // Determine the map's x,y centre
130 * Sets the map's centre.
132 * @param centre The <code>Position</code> denoting the map's
133 * desired centre.
136 public void setCentre(Position centre) {
137 this.centre = centre;
168 // Get the difference between position and the centre for calculating
170 double distance = NavCalculator.computeLongDiff(centre.getLongitude(),
173 // Use the difference from the centre to calculate the pixel x co-ordinate
177 double dmp = NavCalculator.computeDMPClarkeSpheroid(centre.getLatitude(),
183 if (centre.getLatitude() == position.getLatitude()) {
186 if (centre.getLongitude() == position.getLongitude()) {
191 if (centre.getLatitude() > 0 && position.getLatitude() > centre.getLatitude()) {
192 // Centre is north. Position is north of centre
194 } else if (centre.getLatitude() > 0 && position.getLatitude() < centre.getLatitude()) {
195 // Centre is north. Position is south of centre
197 } else if (centre.getLatitude() < 0 && position.getLatitude() > centre.getLatitude()) {
198 // Centre is south. Position is north of centre
200 } else if (centre.getLatitude() < 0 && position.getLatitude() < centre.getLatitude()) {
201 // Centre is south. Position is south of centre
203 } else if (centre.getLatitude() == 0 && position.getLatitude() > centre.getLatitude()) {
204 // Centre is at the equator. Position is north of the equator
206 } else if (centre.getLatitude() == 0 && position.getLatitude() < centre.getLatitude()) {
207 // Centre is at the equator. Position is south of the equator
212 if (centre.getLongitude() < 0 && position.getLongitude() < centre.getLongitude()) {
213 // Centre is west. Position is west of centre
215 } else if (centre.getLongitude() < 0 && position.getLongitude() > centre.getLongitude()) {
216 // Centre is west. Position is south of centre
218 } else if (centre.getLongitude() > 0 && position.getLongitude() < centre.getLongitude()) {
219 // Centre is east. Position is west of centre
221 } else if (centre.getLongitude() > 0 && position.getLongitude() > centre.getLongitude()) {
222 // Centre is east. Position is east of centre
224 } else if (centre.getLongitude() == 0 && position.getLongitude() > centre.getLongitude()) {
225 // Centre is at the equator. Position is east of centre
227 } else if (centre.getLongitude() == 0 && position.getLongitude() < centre.getLongitude()) {
228 // Centre is at the equator. Position is west of centre
252 // Get the difference between position and the centre
267 lon = (posVec.getX() < xCentre ? centre.getLongitude() - lonDistanceInDegrees
268 : centre.getLongitude() + lonDistanceInDegrees);
296 * Defines the centre of the map in pixels.
298 * @param posVec <code>Vector3f</code> object denoting the map's new centre.
305 centre = newCentre;
313 * Returns the WU (x,y,z) centre of the map.
315 * @return <code>Vector3f</code> object marking the map's (x,y) centre.
323 * Returns the <code>Position</code> centre of the map.
326 * centre.
330 return centre;