Component2DPredicate

class Component2DPredicate(latShift: Int, lonShift: Int, latBase: Int, lonBase: Int, maxLatDelta: Int, maxLonDelta: Int, relations: ByteArray, val tree: Component2D) : GeoEncodingUtils.Grid

A predicate that checks whether a given point is within a component2D geometry.

Constructors

Link copied to clipboard
constructor(latShift: Int, lonShift: Int, latBase: Int, lonBase: Int, maxLatDelta: Int, maxLonDelta: Int, relations: ByteArray, tree: Component2D)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun test(lat: Int, lon: Int): Boolean

Check whether the given point is within the considered polygon. NOTE: this operates directly on the encoded representation of points.