2013-08-08 18:16:47 +00:00
|
|
|
/// <reference path="../../_definitions.ts" />
|
2013-04-18 13:16:18 +00:00
|
|
|
|
|
|
|
/**
|
2013-08-11 23:52:35 +00:00
|
|
|
* @author Richard Davey <rich@photonstorm.com>
|
|
|
|
* @author sole (http://soledadpenades.com), tween.js
|
|
|
|
* @copyright 2013 Photon Storm Ltd.
|
|
|
|
* @license https://github.com/photonstorm/phaser/blob/master/license.txt MIT License
|
|
|
|
* @module Phaser
|
2013-04-18 15:49:08 +00:00
|
|
|
*/
|
2013-04-18 13:16:18 +00:00
|
|
|
module Phaser.Easing {
|
|
|
|
|
2013-08-11 23:52:35 +00:00
|
|
|
/**
|
|
|
|
* Linear easing methods.
|
|
|
|
*
|
|
|
|
* @class Linear
|
|
|
|
*/
|
2013-04-18 13:16:18 +00:00
|
|
|
export class Linear {
|
|
|
|
|
2013-08-11 23:52:35 +00:00
|
|
|
/**
|
|
|
|
* A Linear Ease only has a None method.
|
|
|
|
*
|
|
|
|
* @method None
|
|
|
|
* @param {Number} k The value to ease.
|
|
|
|
* @return {Number} The eased value.
|
|
|
|
*/
|
2013-04-18 13:16:18 +00:00
|
|
|
public static None(k) {
|
|
|
|
|
|
|
|
return k;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|