org.geolatte.geom.G3D Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geolatte-geom Show documentation
Show all versions of geolatte-geom Show documentation
This geoLatte-geom library offers a geometry model that conforms to the OGC Simple Features for SQL
specification.
The newest version!
package org.geolatte.geom;
/**
* A geographic {@code Position} with an altitude.
*
* @author Karel Maesen, Geovise BVBA
* creation-date: 2/19/14
*/
public class G3D extends G2D {
public G3D() {
super();
}
public G3D(double lon, double lat, double alt) {
super(lon, lat, alt);
}
protected G3D(double... coords) {
super(coords);
}
public double getHeight() {
return getCoordinate(2);
}
@Override
public int getCoordinateDimension() {
return 3;
}
}