public class SineStarFactory extends GeometricShapeFactory
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 |
---|---|
static Geometry |
create(Coordinate origin,
double size,
int nPts,
int nArms,
double armLengthRatio)
Creates a sine star with the given parameters.
|
Geometry |
createSineStar()
Generates the geometry for the sine star
|
void |
setArmLengthRatio(double armLengthRatio)
Sets the ratio of the length of each arm to the radius of the star.
|
void |
setNumArms(int numArms)
Sets the number of arms in the star
|
createArc, createArcPolygon, createCircle, createEllipse, createRectangle, createSquircle, createSupercircle, setBase, setCentre, setEnvelope, setHeight, setNumPoints, setRotation, setSize, setWidth
public SineStarFactory()
GeometryFactory
.public SineStarFactory(GeometryFactory geomFact)
GeometryFactory
.geomFact
- the factory to usepublic static Geometry create(Coordinate origin, double size, int nPts, int nArms, double armLengthRatio)
origin
- the origin pointsize
- the size of the starnPts
- the number of points in the starnArms
- the number of arms to generatearmLengthRatio
- the arm length ratiopublic void setNumArms(int numArms)
numArms
- the number of arms to generatepublic void setArmLengthRatio(double armLengthRatio)
armLengthRatio
- the ratio determining the length of them arms.public Geometry createSineStar()
Copyright © 2024. All rights reserved.