ShapeTestUtil

generates random cartesian geometry; heavy reuse of GeoTestUtil

Functions

Link copied to clipboard

Simple slow point in polygon check (for testing)

Link copied to clipboard
fun createRegularPolygon(centerX: Double, centerY: Double, radius: Double, gons: Int): XYPolygon

Makes an n-gon, centered at the provided x/y, and each vertex approximately distanceMeters away from the center.

Link copied to clipboard
fun nextBox(random: Random): XYRectangle
Link copied to clipboard
Link copied to clipboard
fun nextFloat(random: Random): Float
Link copied to clipboard
Link copied to clipboard

returns next pseudorandom polygon

Link copied to clipboard