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

org.maptalks.geojson.Point Maven / Gradle / Ivy

The newest version!
package org.maptalks.geojson;


import java.util.Arrays;

public class Point extends Geometry {
    private double[] coordinates;

    public Point() {
        super();
    }

    public Point(double [] coordinates) {
        super();
        this.setCoordinates(coordinates);
    }


    public double[] getCoordinates() {
        return coordinates;
    }

    public void setCoordinates(double[] coordinates) {
        this.coordinates = coordinates;
    }

    @Override
    public boolean equals(Object obj) {
        if (!(obj instanceof Point)) {
            return false;
        }
        Point o = ((Point) obj);
        return Arrays.equals(this.coordinates, o.coordinates);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy