source: node_modules/victory-vendor/lib-vendor/d3-shape/src/math.js

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
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.abs = void 0;
7exports.acos = acos;
8exports.asin = asin;
9exports.tau = exports.sqrt = exports.sin = exports.pi = exports.min = exports.max = exports.halfPi = exports.epsilon = exports.cos = exports.atan2 = void 0;
10const abs = exports.abs = Math.abs;
11const atan2 = exports.atan2 = Math.atan2;
12const cos = exports.cos = Math.cos;
13const max = exports.max = Math.max;
14const min = exports.min = Math.min;
15const sin = exports.sin = Math.sin;
16const sqrt = exports.sqrt = Math.sqrt;
17const epsilon = exports.epsilon = 1e-12;
18const pi = exports.pi = Math.PI;
19const halfPi = exports.halfPi = pi / 2;
20const tau = exports.tau = 2 * pi;
21function acos(x) {
22 return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);
23}
24function asin(x) {
25 return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x);
26}
Note: See TracBrowser for help on using the repository browser.