public class OffsetCurveBuilder extends Object
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_THRESHOLD_RATIO |
static int |
QUADRANT_SEGMENTS_DEFAULT |
Constructor and Description |
---|
OffsetCurveBuilder(double offset)
Creates an offset builder with the given offset and the default number of quadrant segments
QUADRANT_SEGMENTS_DEFAULT |
OffsetCurveBuilder(double offset,
int quadrantSegments)
Creates an offset builder with the given offset and number of quadrant segments
|
Modifier and Type | Method and Description |
---|---|
Geometry |
offset(Geometry g)
Builds and return the perpendicular offset geometry.
|
public static int QUADRANT_SEGMENTS_DEFAULT
public static double DEFAULT_THRESHOLD_RATIO
public OffsetCurveBuilder(double offset)
QUADRANT_SEGMENTS_DEFAULT
offset
- The offset distance. The offset line will be on the left for positive values,
on the right otherwisepublic OffsetCurveBuilder(double offset, int quadrantSegments)
offset
- The offset distance. The offset line will be on the left for positive values,
on the right otherwisequadrantSegments
- The number of segments per quadrant, must be positivepublic Geometry offset(Geometry g)
g
- The source geometryCopyright © 1996–2019 Geotools. All rights reserved.