source: node_modules/victory-vendor/lib-vendor/d3-ease/src/circle.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: 412 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.circleIn = circleIn;
7exports.circleInOut = circleInOut;
8exports.circleOut = circleOut;
9function circleIn(t) {
10 return 1 - Math.sqrt(1 - t * t);
11}
12function circleOut(t) {
13 return Math.sqrt(1 - --t * t);
14}
15function circleInOut(t) {
16 return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2;
17}
Note: See TracBrowser for help on using the repository browser.