C# Класс hyades.utils.Interpolator

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
end float
progress float
start float
tag object
value float

Открытые методы

Метод Описание
ForceFinish ( ) : void

Forces the interpolator to set itself to its final position and fire off its delegates before invalidating itself.

Interpolator ( float startValue, float endValue, Action step, Action completed ) : System

Creates a new Interpolator.

Interpolator ( float startValue, float endValue, float interpolationLength, Action step, Action completed ) : System

Creates a new Interpolator.

Stop ( ) : void

Stops the Interpolator.

Update ( double elapsed ) : void

Updates the Interpolator.

Приватные методы

Метод Описание
Interpolator ( ) : System

Internal constructor used by InterpolatorCollection

Reset ( float s, float e, float l, Action stepFunc, Action completedFunc ) : void

Описание методов

ForceFinish() публичный Метод

Forces the interpolator to set itself to its final position and fire off its delegates before invalidating itself.
public ForceFinish ( ) : void
Результат void

Interpolator() публичный Метод

Creates a new Interpolator.
public Interpolator ( float startValue, float endValue, Action step, Action completed ) : System
startValue float The starting value.
endValue float The ending value.
step Action An optional delegate to invoke each update.
completed Action An optional delegate to invoke upon completion.
Результат System

Interpolator() публичный Метод

Creates a new Interpolator.
public Interpolator ( float startValue, float endValue, float interpolationLength, Action step, Action completed ) : System
startValue float The starting value.
endValue float The ending value.
interpolationLength float The amount of time, in seconds, for the interpolation to occur.
step Action An optional delegate to invoke each update.
completed Action An optional delegate to invoke upon completion.
Результат System

Stop() публичный Метод

Stops the Interpolator.
public Stop ( ) : void
Результат void

Update() публичный Метод

Updates the Interpolator.
public Update ( double elapsed ) : void
elapsed double
Результат void

Описание свойств

end публичное свойство

public float end
Результат float

progress публичное свойство

public float progress
Результат float

start публичное свойство

public float start
Результат float

tag публичное свойство

public object tag
Результат object

value публичное свойство

public float value
Результат float