Package org.geotools.geometry.jts
Class CircularArc
- Object
-
- 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
-
-
Field Summary
Fields Modifier and Type Field Description static double
COLLINEARS
-
Constructor Summary
Constructors Constructor Description CircularArc(double[] controlPoints)
CircularArc(double sx, double sy, double mx, double my, double ex, double ey)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Coordinate
getCenter()
double[]
getControlPoints()
int
getDimension()
Envelope
getEnvelope()
double
getRadius()
double[]
linearize(double tolerance)
static void
setBaseSegmentsQuadrant(int baseSegmentsQuadrant)
Allows to programmatically set the number of segments per quadrant (default to 8)static void
setMaxSegmentsQuadrant(int baseSegmentsQuadrant)
Allows to programmatically set the maximum number of segments per quadrant (default to 10000)String
toString()
-
-
-
Field Detail
-
COLLINEARS
public static final double COLLINEARS
- See Also:
- Constant Field Values
-
-
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()
-
getCenter
public Coordinate getCenter()
-
linearize
public double[] linearize(double tolerance)
-
getEnvelope
public Envelope getEnvelope()
-
-