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

« back to all changes in this revision

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