Class KochSnowflakeBuilder
- java.lang.Object
-
- org.locationtech.jts.shape.GeometricShapeBuilder
-
- org.locationtech.jts.shape.fractal.KochSnowflakeBuilder
-
public class KochSnowflakeBuilder extends GeometricShapeBuilder
-
-
Constructor Summary
Constructors Constructor Description KochSnowflakeBuilder(GeometryFactory geomFactory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSide(int level, Coordinate p0, Coordinate p1)
Geometry
getGeometry()
static int
recursionLevelForSize(int numPts)
-
Methods inherited from class org.locationtech.jts.shape.GeometricShapeBuilder
getCentre, getDiameter, getExtent, getRadius, getSquareBaseLine, getSquareExtent, setExtent, setNumPoints
-
-
-
-
Constructor Detail
-
KochSnowflakeBuilder
public KochSnowflakeBuilder(GeometryFactory geomFactory)
-
-
Method Detail
-
recursionLevelForSize
public static int recursionLevelForSize(int numPts)
-
getGeometry
public Geometry getGeometry()
- Specified by:
getGeometry
in classGeometricShapeBuilder
-
addSide
public void addSide(int level, Coordinate p0, Coordinate p1)
-
-