Class CircularArc


  • public class CircularArc
    extends Object
    Represents an arc by three points, and provides methods to linearize it to a given max distance from the actual circle
    Author:
    Andrea Aime - GeoSolutions
    • Constructor Detail

      • CircularArc

        public CircularArc​(double[] controlPoints)
      • CircularArc

        public CircularArc​(double sx,
                           double sy,
                           double mx,
                           double my,
                           double ex,
                           double ey)
    • Method Detail

      • setBaseSegmentsQuadrant

        public static void setBaseSegmentsQuadrant​(int baseSegmentsQuadrant)
        Allows to programmatically set the number of segments per quadrant (default to 8)
      • setMaxSegmentsQuadrant

        public static void setMaxSegmentsQuadrant​(int baseSegmentsQuadrant)
        Allows to programmatically set the maximum number of segments per quadrant (default to 10000)
      • getDimension

        public int getDimension()
      • getControlPoints

        public double[] getControlPoints()
      • getRadius

        public double getRadius()
      • linearize

        public double[] linearize​(double tolerance)
      • getEnvelope

        public Envelope getEnvelope()