All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.geolatte.geom.G3D Maven / Gradle / Ivy

Go to download

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy