Trait/Object

reftree.geometry

Interpolation

Related Docs: object Interpolation | package geometry

Permalink

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. All

Abstract Value Members

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

    Permalink

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(that: Interpolation[A]): Interpolation[A]

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. def lens[B](l: Lens[B, A]): Interpolation[B]

    Permalink

    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.

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

    Permalink

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

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

    Permalink

    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).

  16. def mapTime(f: (Double) ⇒ Double): Interpolation[A]

    Permalink

    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.

  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. def option(default: A): Interpolation[Option[A]]

    Permalink

    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)

  21. def option(default: (A) ⇒ A): Interpolation[Option[A]]

    Permalink

    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)

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

    Permalink

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

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

    Permalink

    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.

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

    Permalink

    Sample the range between left and right using n values

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

    Permalink

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

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def timespan(from: Double, to: Double): Interpolation[A]

    Permalink

    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).

  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. def withLeft(left: A): SemiInterpolation[A]

    Permalink

    Derive a semi-interpolation by using a fixed left argument

  33. def withLeft(rightToLeft: (A) ⇒ A): SemiInterpolation[A]

    Permalink

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

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

    Permalink

    Derive a semi-interpolation by using a fixed right argument

  35. def withRight(leftToRight: (A) ⇒ A): SemiInterpolation[A]

    Permalink

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

Inherited from AnyRef

Inherited from Any

Ungrouped