Class S2ConvexHullQuery.OrderedCcwAround

  • All Implemented Interfaces:
    java.util.Comparator<S2Point>
    Enclosing class:
    S2ConvexHullQuery

    private static final class S2ConvexHullQuery.OrderedCcwAround
    extends java.lang.Object
    implements java.util.Comparator<S2Point>
    A comparator for sorting points in CCW around a central point "center".
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private S2Point center  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(S2Point x, S2Point y)  
      private boolean lessThan​(S2Point x, S2Point y)  
      • 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
    • Field Detail

      • center

        private final S2Point center
    • Constructor Detail

      • OrderedCcwAround

        OrderedCcwAround​(S2Point center)
    • Method Detail

      • compare

        public int compare​(S2Point x,
                           S2Point y)
        Specified by:
        compare in interface java.util.Comparator<S2Point>