trait Interpolation[A] extends AnyRef

A trait for interpolating between two values of a certain type over time (from 0 to 1)

Self Type
Interpolation[A]
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Interpolation
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def apply(left: A, right: A, t: Double): A

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(that: Interpolation[A]): Interpolation[A]

    Combine with another interpolation of the same type

    Combine with another interpolation of the same type

    Note that this operation is not commutative. It has a left bias, i.e. the combined interpolations are applied from left to right, always modifying the left argument.

  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def lens[B](l: Lens[B, A]): Interpolation[B]

    Obtain an interpolation of type B that varies a value of type A “inside” it using the current interpolation

    Obtain an interpolation of type B that varies a value of type A “inside” it using the current interpolation

    Note that this operation is left-biased, i.e. it applies the set function of the lens to the left argument.

  13. def list: Interpolation[List[A]]

    Derive an interpolation for a List (that assumes lists of the same length)

  14. def listMap[B](implicit evidence1: =:=[A, Option[B]], evidence2: =:=[Option[B], A]): Interpolation[ListMap[String, B]]

    Derive an interpolation for a ListMap

    Derive an interpolation for a ListMap

    This method will compare the keys in both maps and use Option[B] for left and right arguments associated with each key, based on whether the key is only in the left map (Some, None), only in the right one (None, Some), or in both (Some, Some).

  15. def mapTime(f: (Double) => Double): Interpolation[A]

    Map the time interval with the given function

    Map the time interval with the given function

    For example, the function (_ * 2) will make the interpolation twice faster, and it will happen in the first half of the full time interval.

  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  19. def option(default: A): Interpolation[Option[A]]

    Derive an interpolation for Option[A] by providing a default to use in place of a missing argument (i.e.

    Derive an interpolation for Option[A] by providing a default to use in place of a missing argument (i.e. None)

  20. def option(default: (A) => A): Interpolation[Option[A]]

    Derive an interpolation for Option[A] by providing a function to calculate the missing argument (i.e.

    Derive an interpolation for Option[A] by providing a function to calculate the missing argument (i.e. None) from the remaining one (i.e. Some)

  21. def option(leftOnly: SemiInterpolation[A], rightOnly: SemiInterpolation[A]): Interpolation[Option[A]]

    Derive an interpolation for Option[A] by providing semi-interpolations for the remaining arguments when either left or right arguments are None

  22. def optional[B](o: Optional[B, A]): Interpolation[B]

    Obtain an interpolation of type B that varies a value of type A “inside” it using the current interpolation

    Obtain an interpolation of type B that varies a value of type A “inside” it using the current interpolation

    Note that this operation is left-biased, i.e. it applies the set function of the optional to the left argument.

  23. def sample(left: A, right: A, n: Int, inclusive: Boolean = true): LazyList[A]

    Sample the range between left and right using n values

  24. def seq: Interpolation[Seq[A]]

    Derive an interpolation for a sequence (that assumes sequences of the same length)

  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def timespan(from: Double, to: Double): Interpolation[A]

    Make the interpolation happen in the given timespan, instead of [0; 1]

    Make the interpolation happen in the given timespan, instead of [0; 1]

    This is essentially a more convenient alternative to mapTime. For example, timespan(0, 1.0/2) is equivalent to mapTime(_ * 2).

  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. def withLeft(left: A): SemiInterpolation[A]

    Derive a semi-interpolation by using a fixed left argument

  32. def withLeft(rightToLeft: (A) => A): SemiInterpolation[A]

    Derive a semi-interpolation by providing a function to calculate the left argument from the right one

  33. def withRight(right: A): SemiInterpolation[A]

    Derive a semi-interpolation by using a fixed right argument

  34. def withRight(leftToRight: (A) => A): SemiInterpolation[A]

    Derive a semi-interpolation by providing a function to calculate the right argument from the left one

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped