var Phaser; (function (Phaser) { /// /** * @author Richard Davey * @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 */ (function (Easing) { /** * Sinusoidal easing methods. * * @class Sinusoidal */ var Sinusoidal = (function () { function Sinusoidal() { } Sinusoidal.In = /** * The In ease method. * * @method In * @param {Number} k The value to ease. * @return {Number} The eased value. */ function In(k) { return 1 - Math.cos(k * Math.PI / 2); }; Sinusoidal.Out = /** * The Out ease method. * * @method Out * @param {Number} k The value to ease. * @return {Number} The eased value. */ function Out(k) { return Math.sin(k * Math.PI / 2); }; Sinusoidal.InOut = /** * The InOut ease method. * * @method InOut * @param {Number} k The value to ease. * @return {Number} The eased value. */ function InOut(k) { return 0.5 * (1 - Math.cos(Math.PI * k)); }; return Sinusoidal; })(); Easing.Sinusoidal = Sinusoidal; })(Phaser.Easing || (Phaser.Easing = {})); var Easing = Phaser.Easing; })(Phaser || (Phaser = {}));