actuate
Version:
Actuate is a flexible, fast "tween" library for animations
51 lines (33 loc) • 1.21 kB
JavaScript
// Class: motion.easing._Quart.QuartEaseInOut
var $global = typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : this
$global.Object.defineProperty(exports, "__esModule", {value: true});
var __map_reserved = {};
// Imports
var $hxClasses = require("./../../../hxClasses_stub").default;
function motion_easing_IEasing() {return require("./../../../motion/easing/IEasing");}
// Constructor
var QuartEaseInOut = function() {
}
// Meta
QuartEaseInOut.__name__ = ["motion","easing","_Quart","QuartEaseInOut"];
QuartEaseInOut.__isInterface__ = false;
QuartEaseInOut.__interfaces__ = [(motion_easing_IEasing().default)];
QuartEaseInOut.prototype = {
calculate: function(k) {
if((k *= 2) < 1) {
return 0.5 * k * k * k * k;
}
return -0.5 * ((k -= 2) * k * k * k - 2);
},
ease: function(t,b,c,d) {
if((t /= d / 2) < 1) {
return c / 2 * t * t * t * t + b;
}
return -c / 2 * ((t -= 2) * t * t * t - 2) + b;
}
};
QuartEaseInOut.prototype.__class__ = QuartEaseInOut.prototype.constructor = $hxClasses["motion.easing._Quart.QuartEaseInOut"] = QuartEaseInOut;
// Init
// Statics
// Export
exports.default = QuartEaseInOut;