All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.data2viz.geo.projection.EquirectangularProjection.kt Maven / Gradle / Ivy

There is a newer version: 0.8.0-RC5
Show newest version
package io.data2viz.geo.projection

fun equirectangularProjection() = equirectangularProjection {}
fun equirectangularProjection(init: Projection.() -> Unit) = projection(EquirectangularProjection()) {
    scale = 152.63
    init()
}

class EquirectangularProjection : ProjectableInvertable {
    override fun project(lambda: Double, phi: Double) = doubleArrayOf(lambda, phi)
    override fun invert(x: Double, y: Double) = doubleArrayOf(x, y)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy