Interpolator

doodle.interact.animation.Interpolator$
See theInterpolator companion trait

Attributes

Companion:
trait
Source:
Interpolator.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

Invariant functor instance for Interpolator

Invariant functor instance for Interpolator

Attributes

Source:
Interpolator.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

def kahanSum(total: Double, x: Double, error: Double): (Double, Double)

Perform Kahan summation given the total so far, the value to add to the total, and the error term (which starts at 0.0). Returns the updated total and the new error term.

Perform Kahan summation given the total so far, the value to add to the total, and the error term (which starts at 0.0). Returns the updated total and the new error term.

Kahan's algorithm is a way to sum floating point numbers that reduces error compared to straightforward addition.

Attributes

Source:
Interpolator.scala

Implicits

Implicits

Interpolator instance for Angle

Interpolator instance for Angle

Attributes

Source:
Interpolator.scala

Interpolator instance for Double

Interpolator instance for Double

Attributes

Source:
Interpolator.scala