Class Length


  • public class Length
    extends java.lang.Object
    Functions for computing length.
    Author:
    Martin Davis
    • Constructor Summary

      Constructors 
      Constructor Description
      Length()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double ofLine​(CoordinateSequence pts)
      Computes the length of a linestring specified by a sequence of points.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Length

        public Length()
    • Method Detail

      • ofLine

        public static double ofLine​(CoordinateSequence pts)
        Computes the length of a linestring specified by a sequence of points.
        Parameters:
        pts - the points specifying the linestring
        Returns:
        the length of the linestring