Package-level declarations

Types

Link copied to clipboard
class CheapRuler(val lat: Double) : Ruler

A collection of very fast approximations to common geodesic measurements. Useful for performance-sensitive code that measures things on a city scale.

Link copied to clipboard
Link copied to clipboard
abstract class Ruler

Properties

Link copied to clipboard
const val meters: Double = 1000.0

This code is a Kotlin port of the mapbox/cheap-ruler JavaScript code. The original code is under this ISC license, reproduced here for ease:

Functions

Link copied to clipboard
Link copied to clipboard
fun wrap(deg: Double): Double

normalize a degree value into -180..180 range