public class HilbertCurveBuilder extends GeometricShapeBuilder
LineString
representing the Hilbert Curve
at a given level.HilbertCode
Constructor and Description |
---|
HilbertCurveBuilder(GeometryFactory geomFactory)
Creates a new instance using the provided
GeometryFactory . |
Modifier and Type | Method and Description |
---|---|
Geometry |
getGeometry() |
void |
setLevel(int level)
Sets the level of curve to generate.
|
getCentre, getDiameter, getExtent, getRadius, getSquareBaseLine, getSquareExtent, setExtent, setNumPoints
public HilbertCurveBuilder(GeometryFactory geomFactory)
GeometryFactory
.geomFactory
- the geometry factory to usepublic void setLevel(int level)
level
- the order of the curvepublic Geometry getGeometry()
getGeometry
in class GeometricShapeBuilder
Copyright © 2022. All rights reserved.