Class Path

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Point.LongPoint>, java.util.Collection<Point.LongPoint>, java.util.List<Point.LongPoint>, java.util.RandomAccess

    public class Path
    extends java.util.ArrayList<Point.LongPoint>
    A pure convenience class to avoid writing List everywhere.
    Author:
    Tobias Mahlmann
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected static class  Path.Maxima  
    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double area()  
      Path cleanPolygon()  
      Path cleanPolygon​(double distance)  
      int isPointInPolygon​(Point.LongPoint pt)  
      boolean orientation()  
      void reverse()  
      Path TranslatePath​(Point.LongPoint delta)  
      • Methods inherited from class java.util.ArrayList

        add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
      • Methods inherited from class java.util.AbstractCollection

        containsAll, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, stream, toArray
      • Methods inherited from interface java.util.List

        containsAll
    • Constructor Detail

      • Path

        public Path()
      • Path

        public Path​(int cnt)
    • Method Detail

      • area

        public double area()
      • cleanPolygon

        public Path cleanPolygon()
      • cleanPolygon

        public Path cleanPolygon​(double distance)
      • orientation

        public boolean orientation()
      • reverse

        public void reverse()