View Javadoc
1   /*
2    * Copyright (c) Patrick Magauran 2018.
3    *   Licensed under the AGPLv3. All conditions of said license apply.
4    *       This file is part of ABOS.
5    *
6    *       ABOS is free software: you can redistribute it and/or modify
7    *       it under the terms of the GNU Affero General Public License as published by
8    *       the Free Software Foundation, either version 3 of the License, or
9    *       (at your option) any later version.
10   *
11   *       ABOS is distributed in the hope that it will be useful,
12   *       but WITHOUT ANY WARRANTY; without even the implied warranty of
13   *       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   *       GNU Affero General Public License for more details.
15   *
16   *       You should have received a copy of the GNU Affero General Public License
17   *       along with ABOS.  If not, see <http://www.gnu.org/licenses/>.
18   */
19  
20  package Utilities;
21  
22  public class Coords {
23  
24      private double lat;
25      private double lon;
26  
27      public Coords(double lat, double lon) {
28          this.lat = lat;
29          this.lon = lon;
30      }
31  
32      public Coords() {
33          this(-200.0, -200.0);
34      }
35  
36      public double getLat() {
37          return lat;
38      }
39  
40      public void setLat(double lat) {
41          this.lat = lat;
42      }
43  
44      public double getLon() {
45          return lon;
46      }
47  
48      public void setLon(double lon) {
49          this.lon = lon;
50      }
51  }