~ubuntu-branches/ubuntu/raring/geotranz/raring

« back to all changes in this revision

Viewing changes to geotrans2/java_gui/geotrans/projections/Geodetic.java

  • Committer: Bazaar Package Importer
  • Author(s): Roberto Lumbreras
  • Date: 2008-10-17 14:43:09 UTC
  • Revision ID: james.westby@ubuntu.com-20081017144309-jb7uzfi1y1lvez8j
Tags: upstream-2.4.2
ImportĀ upstreamĀ versionĀ 2.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Geodetic.java
 
3
 *
 
4
 * Created on April 10, 2001, 1:08 PM
 
5
 */
 
6
 
 
7
package geotrans.projections;
 
8
 
 
9
/**
 
10
 *
 
11
 * @author  amyc
 
12
 * @version 
 
13
 */
 
14
 
 
15
public class Geodetic extends Object {
 
16
 
 
17
    private int heightType;
 
18
    
 
19
    // Coordinates
 
20
    private double longitude;
 
21
    private double latitude;
 
22
    private double height;
 
23
    
 
24
    /** Creates new Geodetic */
 
25
    public Geodetic() {
 
26
    }
 
27
    
 
28
    public Geodetic(int htType)
 
29
    {
 
30
        heightType = htType;
 
31
    }
 
32
    
 
33
    public Geodetic(double lon, 
 
34
                    double lat, 
 
35
                    double ht)
 
36
    {
 
37
        longitude = lon;
 
38
        latitude = lat;
 
39
        height = ht;
 
40
    }
 
41
    
 
42
    public int getHeightType()
 
43
    {
 
44
        return heightType;
 
45
    }
 
46
    
 
47
    public double getLongitude()
 
48
    {
 
49
        return longitude;
 
50
    }
 
51
    
 
52
    public double getLatitude()
 
53
    {
 
54
        return latitude;
 
55
    }
 
56
    
 
57
    public double getHeight()
 
58
    {
 
59
        return height;
 
60
    }
 
61
}