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

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

Added visualizations

  • Property mode set to 100644
File size: 381 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.sinIn = sinIn;
7exports.sinInOut = sinInOut;
8exports.sinOut = sinOut;
9var pi = Math.PI,
10 halfPi = pi / 2;
11function sinIn(t) {
12 return +t === 1 ? 1 : 1 - Math.cos(t * halfPi);
13}
14function sinOut(t) {
15 return Math.sin(t * halfPi);
16}
17function sinInOut(t) {
18 return (1 - Math.cos(pi * t)) / 2;
19}
Note: See TracBrowser for help on using the repository browser.