bufferOp3 static method
Computes the buffer for a geometry for a given buffer distance and accuracy of approximation.
@param g the geometry to buffer @param distance the buffer distance @param quadrantSegments the number of segments used to approximate a quarter circle @return the buffer of the input geometry
Implementation
static Geometry bufferOp3(Geometry g, double distance, int quadrantSegments) {
BufferOp bufOp = new BufferOp(g);
bufOp.setQuadrantSegments(quadrantSegments);
Geometry geomBuf = bufOp.getResultGeometry(distance);
return geomBuf;
}