Class CreateRandomShapeFunctions
java.lang.Object
org.locationtech.jtstest.function.CreateRandomShapeFunctions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static double
haltonOrdinate
(int index, int base) static Geometry
haltonPoints
(Geometry g, int nPts) static Geometry
haltonPoints57
(Geometry g, int nPts) static Geometry
haltonPointsWithBases
(Geometry g, int nPts, int basei, int basej) static Geometry
randomLineString
(Geometry g, int nPts) private static Coordinate
randomPointInTriangle
(Coordinate p0, Coordinate p1, Coordinate p2) static Geometry
randomPoints
(Geometry g, int nPts) static Geometry
randomPointsInGrid
(Geometry g, int nPts) static Geometry
randomPointsInGridCircles
(Geometry g, int nPts) static Geometry
randomPointsInGridWithGutter
(Geometry g, int nPts, double gutterFraction) static Geometry
randomPointsInPolygon
(Geometry g, int nPts) static Geometry
randomPointsInTriangle
(Geometry g, int nPts) private static Coordinate
randomPtInRectangleAround
(Coordinate centre, double width, double height) private static int
randomQuadrant
(int exclude) static Geometry
randomRadialPoints
(Geometry g, int nPts) static Geometry
randomRectilinearWalk
(Geometry g, int nPts) static Geometry
randomSegments
(Geometry g, int nPts) static Geometry
randomSegmentsInGrid
(Geometry g, int nPts)
-
Constructor Details
-
CreateRandomShapeFunctions
public CreateRandomShapeFunctions()
-
-
Method Details
-
randomPointsInGrid
-
randomPointsInGridCircles
-
randomPointsInGridWithGutter
-
randomPoints
-
randomPointsInPolygon
-
randomPointsInTriangle
-
randomPointInTriangle
-
randomRadialPoints
-
haltonPoints
-
haltonPoints57
-
haltonPointsWithBases
-
haltonOrdinate
private static double haltonOrdinate(int index, int base) -
randomSegments
-
randomSegmentsInGrid
-
randomLineString
-
randomRectilinearWalk
-
randomQuadrant
private static int randomQuadrant(int exclude) -
randomPtInRectangleAround
-