public class ShapeTestUtil extends Object
GeoTestUtil
Constructor and Description |
---|
ShapeTestUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsSlowly(XYPolygon polygon,
double x,
double y)
Simple slow point in polygon check (for testing)
|
static XYPolygon |
createRegularPolygon(double centerX,
double centerY,
double radius,
int gons)
Makes an n-gon, centered at the provided x/y, and each vertex approximately
distanceMeters away from the center.
|
static XYRectangle |
nextBox(Random random) |
static XYCircle |
nextCircle() |
static float |
nextFloat(Random random) |
static XYLine |
nextLine() |
static XYPolygon |
nextPolygon()
returns next pseudorandom polygon
|
public static XYPolygon nextPolygon()
public static XYLine nextLine()
public static XYCircle nextCircle()
public static XYRectangle nextBox(Random random)
public static XYPolygon createRegularPolygon(double centerX, double centerY, double radius, int gons)
public static float nextFloat(Random random)
public static boolean containsSlowly(XYPolygon polygon, double x, double y)
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.