Package-level declarations

Types

Link copied to clipboard
class BoundingCoords(var x1: Double, var y1: Double, var x2: Double, var y2: Double)

BoundingCoords.kt

Link copied to clipboard
data class CoordinateBounds(val north: Double, val south: Double, val west: Double, val east: Double)
Link copied to clipboard
Link copied to clipboard
typealias Line = Pair<Vec2, Vec2>
Link copied to clipboard
typealias Poly = List<Vec2>
Link copied to clipboard
Shader utility functions.
Link copied to clipboard
class TextureUtil(inputContext: Context)
Link copied to clipboard
data class TileInfo(val x: Int, val y: Int, val z: Int)
Link copied to clipboard
class TimeInterval(var seconds: Long)
Link copied to clipboard
Link copied to clipboard
data class Vec2(val x: Float, val y: Float)

Properties

Link copied to clipboard
const val A: Int = 6378137
Link copied to clipboard
const val MAX_EXTENT: Double = 2.0037508342789244E7
Link copied to clipboard
val METERS_PER_LAT: Int = 111320
Link copied to clipboard
Link copied to clipboard
const val p4: Boolean = true
Link copied to clipboard
Link copied to clipboard
const val TILE_SIZE: Int = 256
Link copied to clipboard
const val WORLD_SIZE: Double

Functions

Link copied to clipboard
fun clamp(value: Double, min: Double, max: Double): Double

Constrain a value to lie between two values.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun coordToTile(coord: Coordinate, zoom: Int): TileInfo
Link copied to clipboard
Link copied to clipboard
fun CtoF(c: Double): Double
Link copied to clipboard
Link copied to clipboard
fun dbzToMMRate(dbz: Double, perSecond: Boolean = false): Double
Link copied to clipboard
Link copied to clipboard
fun FtoC(f: Double): Double
Link copied to clipboard
Link copied to clipboard
fun ftToM(ft: Double): Double
Link copied to clipboard
fun hgToMb(hg: Double): Double
Link copied to clipboard
fun inBounds(coord: Coordinate, bounds: CoordinateBounds, allowIntersect: Boolean = true): Boolean
Link copied to clipboard
fun intersectLines(l1: Line, l2: Line): List<Vec2>

Returns array...

Link copied to clipboard
fun inToMM(ins: Double): Double
Link copied to clipboard
Link copied to clipboard
fun kmToM(km: Double): Double
Link copied to clipboard
fun kmToMi(km: Double): Double
Link copied to clipboard
Link copied to clipboard
fun kphToMs(kph: Double): Double
Link copied to clipboard
fun mbToHg(mb: Double): Double
Link copied to clipboard
fun mbToPa(mb: Double): Double
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun miToM(mi: Double): Double
Link copied to clipboard
fun mmToIn(mm: Double): Double
Link copied to clipboard
Link copied to clipboard
fun mphToMs(mph: Double): Double
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
Link copied to clipboard
fun paToMb(pa: Double): Double
Link copied to clipboard
fun scaleZoom(scale: Double): Double
Link copied to clipboard
fun tileScale(zoom: Int): Double
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun tileToMeters(x: Int, y: Int, z: Int): Point
Link copied to clipboard
Link copied to clipboard
fun union(p1: Poly, p2: Poly, checkForLoops: Boolean = true): Poly

Finds longest clockwise path through given polygons

Link copied to clipboard
Link copied to clipboard
fun unitToTile(unit: Point, zoom: Int): TileInfo
Link copied to clipboard
fun worldSize(zoom: Int, tileSize: Int = TILE_SIZE): Int
Link copied to clipboard
fun zoomScale(zoom: Double): Double
fun zoomScale(zoom: Int): Double