source: node_modules/victory-vendor/lib-vendor/d3-ease/src/cubic.js

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 355 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.cubicIn = cubicIn;
7exports.cubicInOut = cubicInOut;
8exports.cubicOut = cubicOut;
9function cubicIn(t) {
10 return t * t * t;
11}
12function cubicOut(t) {
13 return --t * t * t + 1;
14}
15function cubicInOut(t) {
16 return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;
17}
Note: See TracBrowser for help on using the repository browser.