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

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

The newest version!
package geotrellis.raster

import geotrellis._

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

  def applyDouble(i:Int):Double = i2d(apply(i))
  def updateDouble(i:Int, z:Double):Unit = update(i, d2i(z))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy