source:
node_modules/d3-ease/src/circle.js
| Last change on this file was e4c61dd, checked in by , 6 months ago | |
|---|---|
|
|
| File size: 261 bytes | |
| Line | |
|---|---|
| 1 | export function circleIn(t) { |
| 2 | return 1 - Math.sqrt(1 - t * t); |
| 3 | } |
| 4 | |
| 5 | export function circleOut(t) { |
| 6 | return Math.sqrt(1 - --t * t); |
| 7 | } |
| 8 | |
| 9 | export 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.
