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

com.github.tsingjyujing.geo.element.mutable.DoubleValue.scala Maven / Gradle / Ivy

There is a newer version: 2.8.9-2.11
Show newest version
package com.github.tsingjyujing.geo.element.mutable

import com.github.tsingjyujing.geo.basic.operations.{Addable, Productable}

/**
  * A pack of double to support common operations
  *
  * @param value
  */
final case class DoubleValue(var value: Double) extends Addable[DoubleValue] with Productable[DoubleValue] {

    override def +(v: DoubleValue) = DoubleValue(value + v.value)

    override def *(v: DoubleValue) = DoubleValue(value * v.value)

    implicit def toDouble: Double = value


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy