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

A managed collection of interpolators.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Create ( float start, float end, Action step, Action completed ) : Interpolator

Creates a new Interpolator.

Create ( float start, float end, float length, Action step, Action completed ) : Interpolator

Creates a new Interpolator.

GetInstance ( ) : InterpolatorCollection
Update ( double elapsed ) : void

Updates all active Interpolators in the collection.

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

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

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

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

Creates a new Interpolator.
public Create ( float start, float end, Action step, Action completed ) : Interpolator
start float The starting value.
end float The ending value.
step Action An optional callback to invoke when the Interpolator is updated.
completed Action An optional callback to invoke when the Interpolator completes.
Результат Interpolator

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

Creates a new Interpolator.
public Create ( float start, float end, float length, Action step, Action completed ) : Interpolator
start float The starting value.
end float The ending value.
length float The length of time, in seconds, to perform the interpolation.
step Action An optional callback to invoke when the Interpolator is updated.
completed Action An optional callback to invoke when the Interpolator completes.
Результат Interpolator

GetInstance() публичный статический Метод

public static GetInstance ( ) : InterpolatorCollection
Результат InterpolatorCollection

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

Updates all active Interpolators in the collection.
public Update ( double elapsed ) : void
elapsed double
Результат void