source: node_modules/d3-ease/src/circle.js@ e4c61dd

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

Prototype 1.1

  • Property mode set to 100644
File size: 261 bytes
Line 
1export function circleIn(t) {
2 return 1 - Math.sqrt(1 - t * t);
3}
4
5export function circleOut(t) {
6 return Math.sqrt(1 - --t * t);
7}
8
9export function circleInOut(t) {
10 return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2;
11}
Note: See TracBrowser for help on using the repository browser.