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

geotrellis.raster.DoubleBasedArray.scala Maven / Gradle / Ivy

The newest version!
package geotrellis.raster

import geotrellis._

/**
 * This trait defines apply/update in terms of applyDouble/updateDouble.
 */
trait DoubleBasedArray {
  def apply(i:Int):Int = d2i(applyDouble(i))
  def update(i:Int, z:Int):Unit = updateDouble(i, i2d(z))

  def applyDouble(i:Int):Double
  def updateDouble(i:Int, z:Double):Unit
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy