com.vividsolutions.jts.geom.util
public class SineStarFactory extends GeometricShapeFactory
GeometricShapeFactory.Dimensions| Modifier and Type | Field and Description |
|---|---|
protected double |
armLengthRatio |
protected int |
numArms |
dim, geomFact, nPts, precModel| Constructor and Description |
|---|
SineStarFactory()
Creates a factory which will create sine stars using the default
GeometryFactory. |
SineStarFactory(GeometryFactory geomFact)
Creates a factory which will create sine stars using the given
GeometryFactory. |
| Modifier and Type | Method and Description |
|---|---|
Geometry |
createSineStar()
Generates the geometry for the sine star
|
void |
setArmLengthRatio(double armLengthRatio)
Sets the ration of the length of each arm to the distance from the tip
of the arm to the centre of the star.
|
void |
setNumArms(int numArms)
Sets the number of arms in the star
|
createArc, createArcPolygon, createCircle, createCoord, createCoordTrans, createRectangle, createSquircle, createSupercircle, setBase, setCentre, setEnvelope, setHeight, setNumPoints, setSize, setWidthpublic SineStarFactory()
GeometryFactory.geomFact - the factory to usepublic SineStarFactory(GeometryFactory geomFact)
GeometryFactory.geomFact - the factory to usepublic void setNumArms(int numArms)
numArms - the number of arms to generatepublic void setArmLengthRatio(double armLengthRatio)
armLengthRatio - public Geometry createSineStar()