Interface CurvedGeometry<T extends Geometry>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getCoordinatesDimension()
      Returns the dimension of the geometry without forcing access to the coordinate sequence
      double getTolerance()
      The default linearization tolerance
      T linearize()
      Linearizes the geometry using the built-in linearization tolerance
      T linearize​(double tolerance)
      Linearizes the geometry using the provided tolerance, the result is guaranteed to be less than tolerance away from the curved geometry unless the number of points needed to linearize the geometry exceeds the build-in per quadrant maximum, see CircularArc.MAX_SEGMENTS_QUADRANT
      String toCurvedText()
      Parallel method to Geometry.toText() that will output the geometry as curved instead of as linear
    • Method Detail

      • linearize

        T linearize()
        Linearizes the geometry using the built-in linearization tolerance
      • linearize

        T linearize​(double tolerance)
        Linearizes the geometry using the provided tolerance, the result is guaranteed to be less than tolerance away from the curved geometry unless the number of points needed to linearize the geometry exceeds the build-in per quadrant maximum, see CircularArc.MAX_SEGMENTS_QUADRANT
        Parameters:
        tolerance - Linearization tolerance, should be zero or positive. When zero is used, the maximum number of allowed linearization points will be used, see CircularArc.MAX_SEGMENTS_QUADRANT
      • toCurvedText

        String toCurvedText()
        Parallel method to Geometry.toText() that will output the geometry as curved instead of as linear
      • getTolerance

        double getTolerance()
        The default linearization tolerance
      • getCoordinatesDimension

        int getCoordinatesDimension()
        Returns the dimension of the geometry without forcing access to the coordinate sequence