Class CreateRandomShapeFunctions


  • public class CreateRandomShapeFunctions
    extends java.lang.Object
    • Constructor Detail

      • CreateRandomShapeFunctions

        public CreateRandomShapeFunctions()
    • Method Detail

      • randomPointsInGrid

        public static Geometry randomPointsInGrid​(Geometry g,
                                                  int nPts)
      • randomPointsInGridCircles

        public static Geometry randomPointsInGridCircles​(Geometry g,
                                                         int nPts)
      • randomPointsInGridWithGutter

        public static Geometry randomPointsInGridWithGutter​(Geometry g,
                                                            int nPts,
                                                            double gutterFraction)
      • randomPointsInPolygon

        public static Geometry randomPointsInPolygon​(Geometry g,
                                                     int nPts)
      • randomPointsInTriangle

        public static Geometry randomPointsInTriangle​(Geometry g,
                                                      int nPts)
      • randomRadialPoints

        public static Geometry randomRadialPoints​(Geometry g,
                                                  int nPts)
      • haltonPoints57

        public static Geometry haltonPoints57​(Geometry g,
                                              int nPts)
      • haltonPointsWithBases

        public static Geometry haltonPointsWithBases​(Geometry g,
                                                     int nPts,
                                                     int basei,
                                                     int basej)
      • haltonOrdinate

        private static double haltonOrdinate​(int index,
                                             int base)
      • randomSegments

        public static Geometry randomSegments​(Geometry g,
                                              int nPts)
      • randomSegmentsInGrid

        public static Geometry randomSegmentsInGrid​(Geometry g,
                                                    int nPts)
      • randomLineString

        public static Geometry randomLineString​(Geometry g,
                                                int nPts)
      • randomRectilinearWalk

        public static Geometry randomRectilinearWalk​(Geometry g,
                                                     int nPts)
      • randomQuadrant

        private static int randomQuadrant​(int exclude)
      • randomPtInRectangleAround

        private static Coordinate randomPtInRectangleAround​(Coordinate centre,
                                                            double width,
                                                            double height)