class DoubleAt extends Serializable
Represents a decaying scalar value at a particular point in time.
The value decays according to halfLife. Another way to think about DoubleAt is that it represents a particular decay curve (and in particular, a point along that curve). Two DoubleAt values may be equivalent if they are two points on the same curve.
The timeToZero
and timeToUnit
methods can be used to "normalize" DoubleAt values. If two DoubleAt
values do not produce the same (approximate) Double values from these methods, they represent different
curves.
- Self Type
- DoubleAt
- Alphabetic
- By Inheritance
- DoubleAt
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def *(n: Double): DoubleAt
- def +(rhs: DoubleAt): DoubleAt
- def -(rhs: DoubleAt): DoubleAt
- def /(rhs: DoubleAt): Double
- def <(rhs: DoubleAt): Boolean
- def <=(rhs: DoubleAt): Boolean
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def >(rhs: DoubleAt): Boolean
- def >=(rhs: DoubleAt): Boolean
- def abs: DoubleAt
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def at(time: Long): Double
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def compare(rhs: DoubleAt): Int
We consider two DoubleAt values equal not just if their elements are equal, but also if they represent the same value at different points of decay.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(that: Any): Boolean
- Definition Classes
- DoubleAt → AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- DoubleAt → AnyRef → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def max(rhs: DoubleAt): DoubleAt
- def min(rhs: DoubleAt): DoubleAt
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def time: Long
- val timeInHL: Double
- def timeToUnit: Double
This is the scaled time when the current value will reach 1 (or -1 for negative values)
This is the scaled time when the current value will reach 1 (or -1 for negative values)
This method is a way of collapsing a DoubleAt into a single value (the time in the past or future where its value would be 1, the unit value).
- def timeToZero: Double
Time when this value will reach the smallest double value bigger than zero, unless we are already at zero in which case we return the current time
- def toString(): String
- Definition Classes
- DoubleAt → AnyRef → Any
- def unary_-: DoubleAt
- val value: Double
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()