|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
861 bytes
|
| Line | |
|---|
| 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
|---|
| 4 | value: true
|
|---|
| 5 | });
|
|---|
| 6 | exports.abs = void 0;
|
|---|
| 7 | exports.acos = acos;
|
|---|
| 8 | exports.asin = asin;
|
|---|
| 9 | exports.tau = exports.sqrt = exports.sin = exports.pi = exports.min = exports.max = exports.halfPi = exports.epsilon = exports.cos = exports.atan2 = void 0;
|
|---|
| 10 | const abs = exports.abs = Math.abs;
|
|---|
| 11 | const atan2 = exports.atan2 = Math.atan2;
|
|---|
| 12 | const cos = exports.cos = Math.cos;
|
|---|
| 13 | const max = exports.max = Math.max;
|
|---|
| 14 | const min = exports.min = Math.min;
|
|---|
| 15 | const sin = exports.sin = Math.sin;
|
|---|
| 16 | const sqrt = exports.sqrt = Math.sqrt;
|
|---|
| 17 | const epsilon = exports.epsilon = 1e-12;
|
|---|
| 18 | const pi = exports.pi = Math.PI;
|
|---|
| 19 | const halfPi = exports.halfPi = pi / 2;
|
|---|
| 20 | const tau = exports.tau = 2 * pi;
|
|---|
| 21 | function acos(x) {
|
|---|
| 22 | return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);
|
|---|
| 23 | }
|
|---|
| 24 | function asin(x) {
|
|---|
| 25 | return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x);
|
|---|
| 26 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.