|
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 |
|
|---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
|---|
| 4 | value: true
|
|---|
| 5 | });
|
|---|
| 6 | exports.circleIn = circleIn;
|
|---|
| 7 | exports.circleInOut = circleInOut;
|
|---|
| 8 | exports.circleOut = circleOut;
|
|---|
| 9 | function circleIn(t) {
|
|---|
| 10 | return 1 - Math.sqrt(1 - t * t);
|
|---|
| 11 | }
|
|---|
| 12 | function circleOut(t) {
|
|---|
| 13 | return Math.sqrt(1 - --t * t);
|
|---|
| 14 | }
|
|---|
| 15 | function 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.