Table of Contents

Class IntInterpolator

Namespace
SharpConsoleUI.Animation
Assembly
SharpConsoleUI.dll

Interpolates between two int values with rounding.

public sealed class IntInterpolator : IInterpolator<int>
Inheritance
IntInterpolator
Implements
Inherited Members
Extension Methods

Fields

Instance

Singleton instance.

public static readonly IntInterpolator Instance

Field Value

IntInterpolator

Methods

Interpolate(int, int, double)

Computes the interpolated value between from and to.

public int Interpolate(int from, int to, double t)

Parameters

from int
to int
t double

Returns

int