Clams a number to a given range, default 0.0 to 1.0.
Linear interpolation between low and high, at position t, clamping t to 0 <= t <= 1.
I.e. the function will return low
at minimum and high
at maximum, regardless of t.
Linear interpolation between low and high, at position t.
Tests if the given object represents a valid {@link Coordinate}, i.e. is an array of two or three elements, with element 0 and 1 being numbers.
Returns the maximum of the two numbers, ignoring NaN and infinity.
Returns the minimum of the two numbers, ignoring NaN and infinity.
Recurses through all {@link LayerGroup}s in a {@link Map} and invokes the given visitor function with every {@link Layer} encountered.
Truncates all coordinate arrays to two entries. This is primarily a workaround for the fact that the OpenLayers GML parser reads everything into 3D coordinates, even when the XML specifically states it is 2-dimensional. While this is not usually much of a problem, the WKT Writer respects the number of dimensions in a geometry, resulting in a lot of redundant zero Z-values. This function can be used to truncate coordinates to 2D.
Creates an {@link Extent} with the corners defined by the coordinates. The given min and max will automatically be swapped if needed.
Converts the given object to a {@link Geometry}, by either extracting it from a Feature or creating a Geometry representing the same point or box.
Recurses through all {@link LayerGroup}s in a {@link Map} and returns an array of actual {@link Layer}s found.