Lerp<T> class abstract

Interpolates between two values of type T.

Implementations must satisfy lerp(a, b, 0) == a and lerp(a, b, 1) == b. Behavior for t outside [0, 1] is implementation-defined (linear lerps extrapolate; discrete lerps clamp at the threshold).

Implementers

Constructors

Lerp()
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(T a, T b, double t) → T
The value t of the way from a to b.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited