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

org.geolatte.geom.C3D 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 cartesian {@code Position} having an z-value.
 *
 * @author Karel Maesen, Geovise BVBA
 *         creation-date: 2/19/14
 */
public class C3D extends C2D {

    public C3D() {
        super();
    }

    public C3D(double x, double y, double z) {
        super(x, y, z);
    }

    protected C3D(double... coords) {
        super(coords);
    }

    public double getZ() {
        return getCoordinate(2);
    }

    @Override
    public int getCoordinateDimension() {
        return 3;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy