
rdnaptrans.value.Geographic Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rdnaptrans-java Show documentation
Show all versions of rdnaptrans-java Show documentation
Java implementation of RDNAPTRANS
The newest version!
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package rdnaptrans.value;
/**
* Geographic class.
*
* @author raymond
* @version $Id: $Id
*/
public class Geographic {
/*
** phi latitude in degrees
** lambda longitude in degrees
** h ellipsoidal height
*/
public final double phi;
public final double lambda;
public final double h;
/**
* Constructor for Geographic.
*
* @param phi a double.
* @param lambda a double.
* @param h a double.
*/
public Geographic(double phi, double lambda, double h) {
this.phi = phi;
this.lambda = lambda;
this.h = h;
}
/**
* Constructor for Geographic.
*
* @param phi a double.
* @param lambda a double.
*/
public Geographic(double phi, double lambda) {
this (phi, lambda, 0);
}
/**
* withH.
*
* @param h a double.
* @return a {@link rdnaptrans.value.Geographic} object.
*/
public Geographic withH(double h) {
return new Geographic(phi, lambda, h);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy