Class PointsToCoordinateComparator

java.lang.Object
org.hortonmachine.lesto.modules.raster.adaptivetinfilter.PointsToCoordinateComparator
All Implemented Interfaces:
java.util.Comparator<org.locationtech.jts.geom.Coordinate>

public class PointsToCoordinateComparator
extends java.lang.Object
implements java.util.Comparator<org.locationtech.jts.geom.Coordinate>
A comparator for 3d distance from a given coordinate.
Author:
Andrea Antonello (www.hydrologis.com)
  • Constructor Summary

    Constructors 
    Constructor Description
    PointsToCoordinateComparator​(org.locationtech.jts.geom.Coordinate coordinate)  
  • Method Summary

    Modifier and Type Method Description
    int compare​(org.locationtech.jts.geom.Coordinate o1, org.locationtech.jts.geom.Coordinate o2)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.Comparator

    equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
  • Constructor Details

  • Method Details

    • compare

      public int compare​(org.locationtech.jts.geom.Coordinate o1, org.locationtech.jts.geom.Coordinate o2)
      Specified by:
      compare in interface java.util.Comparator<org.locationtech.jts.geom.Coordinate>