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

« back to all changes in this revision

Viewing changes to geotrans2/java_gui/geotrans/projections/PolarStereographic.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
 * PolarStereographic.java
 
3
 *
 
4
 * Created on April 10, 2001, 12:55 PM
 
5
 */
 
6
 
 
7
package geotrans.projections;
 
8
 
 
9
/**
 
10
 *
 
11
 * @author  amyc
 
12
 * @version 
 
13
 */
 
14
public class PolarStereographic extends Object {
 
15
 
 
16
    // Parameters
 
17
    double  latitude_of_true_scale;   
 
18
    double  longitude_down_from_pole; 
 
19
    private double false_easting;     
 
20
    private double false_northing;    
 
21
    
 
22
    // Coordinates
 
23
    private double easting;
 
24
    private double northing;
 
25
 
 
26
    /** Creates new PolarStereographic */
 
27
    public PolarStereographic() {
 
28
    }
 
29
 
 
30
    public PolarStereographic(double lat_of_true_scale, 
 
31
                              double lon_down_from_pole,
 
32
                              double feast,
 
33
                              double fnorth) 
 
34
    {
 
35
        latitude_of_true_scale = lat_of_true_scale;
 
36
        longitude_down_from_pole = lon_down_from_pole;
 
37
        false_easting = feast;
 
38
        false_northing = fnorth;
 
39
    }
 
40
    
 
41
    public PolarStereographic(double east, 
 
42
                              double north) 
 
43
    {
 
44
        easting = east;
 
45
        northing = north;
 
46
    }
 
47
    
 
48
    public double getLatitudeOfTrueScale()
 
49
    {
 
50
        return latitude_of_true_scale;
 
51
    }
 
52
    
 
53
    public double getLongitudeDownFromPole()
 
54
    {
 
55
        return longitude_down_from_pole;
 
56
    }
 
57
 
 
58
    public double getFalseEasting()
 
59
    {
 
60
        return false_easting;
 
61
    }
 
62
    
 
63
    public double getFalseNorthing()
 
64
    {
 
65
        return false_northing;
 
66
    }
 
67
 
 
68
    public double getEasting()
 
69
    {
 
70
        return easting;
 
71
    }
 
72
    
 
73
    public double getNorthing()
 
74
    {
 
75
        return northing;
 
76
    }
 
77
}