get

operator fun get(x: Double, y: Double): Double(source)

Gets the value at the given coordinates, using interpolation if necessary.

If both coordinates exist exactly in the grid, the stored value is returned. Otherwise, the configured interpolation strategy is used between the four nearest grid points.

Return

the exact value if coordinates match, or an interpolated value otherwise

Parameters

x

the x-coordinate to query

y

the y-coordinate to query

Throws

if coordinates are outside the grid bounds