@fluixi/utils 1.0.0-alpha.83 → 1.0.0-alpha.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2858 -1
- package/dist/index.mjs +2838 -1
- package/dist/lib/array/advanced.cjs +2227 -1
- package/dist/lib/array/advanced.mjs +2204 -1
- package/dist/lib/array/array.cjs +57 -1
- package/dist/lib/array/array.mjs +36 -1
- package/dist/lib/array/index.cjs +2344 -1
- package/dist/lib/array/index.mjs +2322 -1
- package/dist/lib/array/utils.cjs +103 -1
- package/dist/lib/array/utils.mjs +82 -1
- package/dist/lib/color/color.cjs +2190 -1
- package/dist/lib/color/color.mjs +2167 -1
- package/dist/lib/color/constants.cjs +380 -1
- package/dist/lib/color/constants.mjs +359 -1
- package/dist/lib/color/conversions.cjs +629 -1
- package/dist/lib/color/conversions.mjs +608 -1
- package/dist/lib/color/helpers.cjs +2534 -1
- package/dist/lib/color/helpers.mjs +2511 -1
- package/dist/lib/color/index.cjs +2641 -1
- package/dist/lib/color/index.mjs +2619 -1
- package/dist/lib/color/types.cjs +18 -1
- package/dist/lib/color/utils.cjs +962 -1
- package/dist/lib/color/utils.mjs +939 -1
- package/dist/lib/compare/comparators.cjs +171 -1
- package/dist/lib/compare/comparators.mjs +150 -1
- package/dist/lib/compare/index.cjs +172 -1
- package/dist/lib/compare/index.mjs +152 -1
- package/dist/lib/crypto/hash.cjs +83 -1
- package/dist/lib/crypto/hash.mjs +62 -1
- package/dist/lib/crypto/index.cjs +85 -1
- package/dist/lib/crypto/index.mjs +62 -1
- package/dist/lib/dom/events.cjs +40 -1
- package/dist/lib/dom/events.mjs +19 -1
- package/dist/lib/dom/index.cjs +78 -1
- package/dist/lib/dom/index.mjs +56 -1
- package/dist/lib/dom/utils.cjs +57 -1
- package/dist/lib/dom/utils.mjs +36 -1
- package/dist/lib/functions/functions.cjs +366 -1
- package/dist/lib/functions/functions.mjs +345 -1
- package/dist/lib/functions/index.cjs +369 -1
- package/dist/lib/functions/index.mjs +347 -1
- package/dist/lib/functions/types.cjs +18 -1
- package/dist/lib/helpers.cjs +78 -1
- package/dist/lib/helpers.mjs +59 -1
- package/dist/lib/index.cjs +2857 -1
- package/dist/lib/index.mjs +2836 -1
- package/dist/lib/maths/constants.cjs +70 -1
- package/dist/lib/maths/constants.mjs +50 -1
- package/dist/lib/maths/fn/advanced.cjs +231 -1
- package/dist/lib/maths/fn/advanced.mjs +208 -1
- package/dist/lib/maths/fn/basic.cjs +212 -1
- package/dist/lib/maths/fn/basic.mjs +191 -1
- package/dist/lib/maths/fn/complex.cjs +268 -1
- package/dist/lib/maths/fn/complex.mjs +247 -1
- package/dist/lib/maths/fn/index.cjs +877 -1
- package/dist/lib/maths/fn/index.mjs +855 -1
- package/dist/lib/maths/fn/trigo.cjs +179 -1
- package/dist/lib/maths/fn/trigo.mjs +156 -1
- package/dist/lib/maths/fn/vector.cjs +728 -1
- package/dist/lib/maths/fn/vector.mjs +707 -1
- package/dist/lib/maths/formatter.cjs +61 -1
- package/dist/lib/maths/formatter.mjs +40 -1
- package/dist/lib/maths/guards.cjs +164 -1
- package/dist/lib/maths/guards.mjs +144 -1
- package/dist/lib/maths/index.cjs +1152 -1
- package/dist/lib/maths/index.mjs +1130 -1
- package/dist/lib/maths/parser.cjs +75 -1
- package/dist/lib/maths/parser.mjs +54 -1
- package/dist/lib/maths/random.cjs +49 -1
- package/dist/lib/maths/random.mjs +28 -1
- package/dist/lib/maths/types/advanced.cjs +18 -1
- package/dist/lib/maths/types/basic.cjs +18 -1
- package/dist/lib/maths/types/index.cjs +19 -1
- package/dist/lib/maths/types/index.mjs +1 -0
- package/dist/lib/maths/types/negative.cjs +18 -1
- package/dist/lib/maths/types/operations.cjs +18 -1
- package/dist/lib/object/clone.cjs +88 -1
- package/dist/lib/object/clone.mjs +65 -1
- package/dist/lib/object/diff.cjs +573 -1
- package/dist/lib/object/diff.mjs +550 -1
- package/dist/lib/object/getter-setter.cjs +2351 -1
- package/dist/lib/object/getter-setter.mjs +2330 -1
- package/dist/lib/object/index.cjs +3956 -6
- package/dist/lib/object/index.mjs +3936 -6
- package/dist/lib/object/merge.cjs +1029 -1
- package/dist/lib/object/merge.mjs +1006 -1
- package/dist/lib/object/object.cjs +280 -1
- package/dist/lib/object/object.mjs +257 -1
- package/dist/lib/object/omit.cjs +2022 -1
- package/dist/lib/object/omit.mjs +1999 -1
- package/dist/lib/object/reconcile.cjs +126 -1
- package/dist/lib/object/reconcile.mjs +105 -1
- package/dist/lib/object/selector.cjs +303 -1
- package/dist/lib/object/selector.mjs +282 -1
- package/dist/lib/object/sort.cjs +209 -1
- package/dist/lib/object/sort.mjs +186 -1
- package/dist/lib/object/transform.cjs +2211 -1
- package/dist/lib/object/transform.mjs +2190 -1
- package/dist/lib/object/types.cjs +18 -1
- package/dist/lib/object/utils.cjs +326 -6
- package/dist/lib/object/utils.mjs +305 -6
- package/dist/lib/primitive/boolean/boolean.cjs +407 -1
- package/dist/lib/primitive/boolean/boolean.mjs +386 -1
- package/dist/lib/primitive/boolean/index.cjs +382 -1
- package/dist/lib/primitive/boolean/index.mjs +359 -1
- package/dist/lib/primitive/boolean/types.cjs +18 -1
- package/dist/lib/primitive/date/date.cjs +1126 -1
- package/dist/lib/primitive/date/date.mjs +1105 -1
- package/dist/lib/primitive/date/index.cjs +1128 -1
- package/dist/lib/primitive/date/index.mjs +1105 -1
- package/dist/lib/primitive/date/types.cjs +18 -1
- package/dist/lib/primitive/index.cjs +2338 -5
- package/dist/lib/primitive/index.mjs +2316 -5
- package/dist/lib/primitive/string/index.cjs +875 -5
- package/dist/lib/primitive/string/index.mjs +852 -5
- package/dist/lib/primitive/string/parser-2.cjs +543 -8
- package/dist/lib/primitive/string/parser-2.mjs +522 -8
- package/dist/lib/primitive/string/parser.cjs +236 -3
- package/dist/lib/primitive/string/parser.mjs +215 -3
- package/dist/lib/primitive/string/string.cjs +926 -5
- package/dist/lib/primitive/string/string.mjs +903 -5
- package/dist/lib/primitive/string/types.cjs +18 -1
- package/dist/lib/primitive/types.cjs +18 -1
- package/dist/lib/url/index.cjs +327 -1
- package/dist/lib/url/index.mjs +304 -1
- package/dist/lib/url/parser.cjs +325 -1
- package/dist/lib/url/parser.mjs +304 -1
- package/dist/lib/url/types.cjs +18 -1
- package/package.json +5 -5
|
@@ -1 +1,179 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/lib/maths/fn/trigo.ts
|
|
21
|
+
var trigo_exports = {};
|
|
22
|
+
__export(trigo_exports, {
|
|
23
|
+
acos: () => acos,
|
|
24
|
+
acosh: () => acosh,
|
|
25
|
+
asin: () => asin,
|
|
26
|
+
asinh: () => asinh,
|
|
27
|
+
atan: () => atan,
|
|
28
|
+
atan2: () => atan2,
|
|
29
|
+
atanh: () => atanh,
|
|
30
|
+
cos: () => cos,
|
|
31
|
+
cosh: () => cosh,
|
|
32
|
+
cot: () => cot,
|
|
33
|
+
csc: () => csc,
|
|
34
|
+
degToGrad: () => degToGrad,
|
|
35
|
+
degToRad: () => degToRad,
|
|
36
|
+
gradToDeg: () => gradToDeg,
|
|
37
|
+
normalizeDegrees: () => normalizeDegrees,
|
|
38
|
+
normalizeRadians: () => normalizeRadians,
|
|
39
|
+
radToDeg: () => radToDeg,
|
|
40
|
+
sec: () => sec,
|
|
41
|
+
sin: () => sin,
|
|
42
|
+
sinh: () => sinh,
|
|
43
|
+
tan: () => tan,
|
|
44
|
+
tanh: () => tanh
|
|
45
|
+
});
|
|
46
|
+
module.exports = __toCommonJS(trigo_exports);
|
|
47
|
+
|
|
48
|
+
// src/lib/maths/constants.ts
|
|
49
|
+
var PI = 3.141592653589793;
|
|
50
|
+
var E = 2.718281828459045;
|
|
51
|
+
var PHI = 1.618033988749894;
|
|
52
|
+
var SQRT2 = 1.4142135623730951;
|
|
53
|
+
var SQRT1_2 = 0.7071067811865476;
|
|
54
|
+
var LN2 = 0.6931471805599453;
|
|
55
|
+
var LN10 = 2.302585092994046;
|
|
56
|
+
var LOG2E = 1.4426950408889634;
|
|
57
|
+
var LOG10E = 0.4342944819032518;
|
|
58
|
+
var DEGREES_IN_CIRCLE = 360;
|
|
59
|
+
var RADIANS_IN_CIRCLE = 2 * PI;
|
|
60
|
+
var GRADIANS_IN_CIRCLE = 400;
|
|
61
|
+
var DEGREES_PER_RADIAN = 180 / PI;
|
|
62
|
+
var RADIANS_PER_DEGREE = PI / 180;
|
|
63
|
+
var Constants = {
|
|
64
|
+
PI,
|
|
65
|
+
E,
|
|
66
|
+
PHI,
|
|
67
|
+
SQRT2,
|
|
68
|
+
SQRT1_2,
|
|
69
|
+
LN2,
|
|
70
|
+
LN10,
|
|
71
|
+
LOG2E,
|
|
72
|
+
LOG10E,
|
|
73
|
+
DEGREES_IN_CIRCLE,
|
|
74
|
+
RADIANS_IN_CIRCLE,
|
|
75
|
+
GRADIANS_IN_CIRCLE,
|
|
76
|
+
DEGREES_PER_RADIAN,
|
|
77
|
+
RADIANS_PER_DEGREE
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
// src/lib/maths/fn/trigo.ts
|
|
81
|
+
function degToRad(degrees) {
|
|
82
|
+
return degrees * Constants.RADIANS_PER_DEGREE;
|
|
83
|
+
}
|
|
84
|
+
function radToDeg(radians) {
|
|
85
|
+
return radians * Constants.DEGREES_PER_RADIAN;
|
|
86
|
+
}
|
|
87
|
+
function degToGrad(degrees) {
|
|
88
|
+
return degrees * (Constants.GRADIANS_IN_CIRCLE / Constants.DEGREES_IN_CIRCLE);
|
|
89
|
+
}
|
|
90
|
+
function gradToDeg(gradians) {
|
|
91
|
+
return gradians * (Constants.DEGREES_IN_CIRCLE / Constants.GRADIANS_IN_CIRCLE);
|
|
92
|
+
}
|
|
93
|
+
function normalizeRadians(radians) {
|
|
94
|
+
const twoPi = Constants.RADIANS_IN_CIRCLE;
|
|
95
|
+
let normalized = radians % twoPi;
|
|
96
|
+
if (normalized < 0) normalized += twoPi;
|
|
97
|
+
return normalized;
|
|
98
|
+
}
|
|
99
|
+
function normalizeDegrees(degrees) {
|
|
100
|
+
let normalized = degrees % Constants.DEGREES_IN_CIRCLE;
|
|
101
|
+
if (normalized < 0) normalized += Constants.DEGREES_IN_CIRCLE;
|
|
102
|
+
return normalized;
|
|
103
|
+
}
|
|
104
|
+
function sin(radians) {
|
|
105
|
+
return Math.sin(radians);
|
|
106
|
+
}
|
|
107
|
+
function cos(radians) {
|
|
108
|
+
return Math.cos(radians);
|
|
109
|
+
}
|
|
110
|
+
function tan(radians) {
|
|
111
|
+
const cosine = Math.cos(radians);
|
|
112
|
+
if (Math.abs(cosine) < 1e-10) {
|
|
113
|
+
throw new Error("Tangent undefined for this angle (cosine is zero)");
|
|
114
|
+
}
|
|
115
|
+
return Math.tan(radians);
|
|
116
|
+
}
|
|
117
|
+
function asin(value) {
|
|
118
|
+
if (value < -1 || value > 1) {
|
|
119
|
+
throw new Error("Arcsine is only defined for values between -1 and 1");
|
|
120
|
+
}
|
|
121
|
+
return Math.asin(value);
|
|
122
|
+
}
|
|
123
|
+
function acos(value) {
|
|
124
|
+
if (value < -1 || value > 1) {
|
|
125
|
+
throw new Error("Arccosine is only defined for values between -1 and 1");
|
|
126
|
+
}
|
|
127
|
+
return Math.acos(value);
|
|
128
|
+
}
|
|
129
|
+
function atan(value) {
|
|
130
|
+
return Math.atan(value);
|
|
131
|
+
}
|
|
132
|
+
function atan2(y, x) {
|
|
133
|
+
return Math.atan2(y, x);
|
|
134
|
+
}
|
|
135
|
+
function sinh(x) {
|
|
136
|
+
return Math.sinh(x);
|
|
137
|
+
}
|
|
138
|
+
function cosh(x) {
|
|
139
|
+
return Math.cosh(x);
|
|
140
|
+
}
|
|
141
|
+
function tanh(x) {
|
|
142
|
+
return Math.tanh(x);
|
|
143
|
+
}
|
|
144
|
+
function asinh(x) {
|
|
145
|
+
return Math.asinh(x);
|
|
146
|
+
}
|
|
147
|
+
function acosh(x) {
|
|
148
|
+
if (x < 1) {
|
|
149
|
+
throw new Error("Inverse hyperbolic cosine is only defined for x >= 1");
|
|
150
|
+
}
|
|
151
|
+
return Math.acosh(x);
|
|
152
|
+
}
|
|
153
|
+
function atanh(x) {
|
|
154
|
+
if (Math.abs(x) >= 1) {
|
|
155
|
+
throw new Error("Inverse hyperbolic tangent is only defined for |x| < 1");
|
|
156
|
+
}
|
|
157
|
+
return Math.atanh(x);
|
|
158
|
+
}
|
|
159
|
+
function sec(radians) {
|
|
160
|
+
const cosine = Math.cos(radians);
|
|
161
|
+
if (Math.abs(cosine) < 1e-10) {
|
|
162
|
+
throw new Error("Secant undefined for this angle (cosine is zero)");
|
|
163
|
+
}
|
|
164
|
+
return 1 / cosine;
|
|
165
|
+
}
|
|
166
|
+
function csc(radians) {
|
|
167
|
+
const sine = Math.sin(radians);
|
|
168
|
+
if (Math.abs(sine) < 1e-10) {
|
|
169
|
+
throw new Error("Cosecant undefined for this angle (sine is zero)");
|
|
170
|
+
}
|
|
171
|
+
return 1 / sine;
|
|
172
|
+
}
|
|
173
|
+
function cot(radians) {
|
|
174
|
+
const tangent = Math.tan(radians);
|
|
175
|
+
if (Math.abs(tangent) < 1e-10) {
|
|
176
|
+
throw new Error("Cotangent undefined for this angle (tangent is zero)");
|
|
177
|
+
}
|
|
178
|
+
return 1 / tangent;
|
|
179
|
+
}
|
|
@@ -1 +1,156 @@
|
|
|
1
|
-
|
|
1
|
+
// src/lib/maths/constants.ts
|
|
2
|
+
var PI = 3.141592653589793;
|
|
3
|
+
var E = 2.718281828459045;
|
|
4
|
+
var PHI = 1.618033988749894;
|
|
5
|
+
var SQRT2 = 1.4142135623730951;
|
|
6
|
+
var SQRT1_2 = 0.7071067811865476;
|
|
7
|
+
var LN2 = 0.6931471805599453;
|
|
8
|
+
var LN10 = 2.302585092994046;
|
|
9
|
+
var LOG2E = 1.4426950408889634;
|
|
10
|
+
var LOG10E = 0.4342944819032518;
|
|
11
|
+
var DEGREES_IN_CIRCLE = 360;
|
|
12
|
+
var RADIANS_IN_CIRCLE = 2 * PI;
|
|
13
|
+
var GRADIANS_IN_CIRCLE = 400;
|
|
14
|
+
var DEGREES_PER_RADIAN = 180 / PI;
|
|
15
|
+
var RADIANS_PER_DEGREE = PI / 180;
|
|
16
|
+
var Constants = {
|
|
17
|
+
PI,
|
|
18
|
+
E,
|
|
19
|
+
PHI,
|
|
20
|
+
SQRT2,
|
|
21
|
+
SQRT1_2,
|
|
22
|
+
LN2,
|
|
23
|
+
LN10,
|
|
24
|
+
LOG2E,
|
|
25
|
+
LOG10E,
|
|
26
|
+
DEGREES_IN_CIRCLE,
|
|
27
|
+
RADIANS_IN_CIRCLE,
|
|
28
|
+
GRADIANS_IN_CIRCLE,
|
|
29
|
+
DEGREES_PER_RADIAN,
|
|
30
|
+
RADIANS_PER_DEGREE
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
// src/lib/maths/fn/trigo.ts
|
|
34
|
+
function degToRad(degrees) {
|
|
35
|
+
return degrees * Constants.RADIANS_PER_DEGREE;
|
|
36
|
+
}
|
|
37
|
+
function radToDeg(radians) {
|
|
38
|
+
return radians * Constants.DEGREES_PER_RADIAN;
|
|
39
|
+
}
|
|
40
|
+
function degToGrad(degrees) {
|
|
41
|
+
return degrees * (Constants.GRADIANS_IN_CIRCLE / Constants.DEGREES_IN_CIRCLE);
|
|
42
|
+
}
|
|
43
|
+
function gradToDeg(gradians) {
|
|
44
|
+
return gradians * (Constants.DEGREES_IN_CIRCLE / Constants.GRADIANS_IN_CIRCLE);
|
|
45
|
+
}
|
|
46
|
+
function normalizeRadians(radians) {
|
|
47
|
+
const twoPi = Constants.RADIANS_IN_CIRCLE;
|
|
48
|
+
let normalized = radians % twoPi;
|
|
49
|
+
if (normalized < 0) normalized += twoPi;
|
|
50
|
+
return normalized;
|
|
51
|
+
}
|
|
52
|
+
function normalizeDegrees(degrees) {
|
|
53
|
+
let normalized = degrees % Constants.DEGREES_IN_CIRCLE;
|
|
54
|
+
if (normalized < 0) normalized += Constants.DEGREES_IN_CIRCLE;
|
|
55
|
+
return normalized;
|
|
56
|
+
}
|
|
57
|
+
function sin(radians) {
|
|
58
|
+
return Math.sin(radians);
|
|
59
|
+
}
|
|
60
|
+
function cos(radians) {
|
|
61
|
+
return Math.cos(radians);
|
|
62
|
+
}
|
|
63
|
+
function tan(radians) {
|
|
64
|
+
const cosine = Math.cos(radians);
|
|
65
|
+
if (Math.abs(cosine) < 1e-10) {
|
|
66
|
+
throw new Error("Tangent undefined for this angle (cosine is zero)");
|
|
67
|
+
}
|
|
68
|
+
return Math.tan(radians);
|
|
69
|
+
}
|
|
70
|
+
function asin(value) {
|
|
71
|
+
if (value < -1 || value > 1) {
|
|
72
|
+
throw new Error("Arcsine is only defined for values between -1 and 1");
|
|
73
|
+
}
|
|
74
|
+
return Math.asin(value);
|
|
75
|
+
}
|
|
76
|
+
function acos(value) {
|
|
77
|
+
if (value < -1 || value > 1) {
|
|
78
|
+
throw new Error("Arccosine is only defined for values between -1 and 1");
|
|
79
|
+
}
|
|
80
|
+
return Math.acos(value);
|
|
81
|
+
}
|
|
82
|
+
function atan(value) {
|
|
83
|
+
return Math.atan(value);
|
|
84
|
+
}
|
|
85
|
+
function atan2(y, x) {
|
|
86
|
+
return Math.atan2(y, x);
|
|
87
|
+
}
|
|
88
|
+
function sinh(x) {
|
|
89
|
+
return Math.sinh(x);
|
|
90
|
+
}
|
|
91
|
+
function cosh(x) {
|
|
92
|
+
return Math.cosh(x);
|
|
93
|
+
}
|
|
94
|
+
function tanh(x) {
|
|
95
|
+
return Math.tanh(x);
|
|
96
|
+
}
|
|
97
|
+
function asinh(x) {
|
|
98
|
+
return Math.asinh(x);
|
|
99
|
+
}
|
|
100
|
+
function acosh(x) {
|
|
101
|
+
if (x < 1) {
|
|
102
|
+
throw new Error("Inverse hyperbolic cosine is only defined for x >= 1");
|
|
103
|
+
}
|
|
104
|
+
return Math.acosh(x);
|
|
105
|
+
}
|
|
106
|
+
function atanh(x) {
|
|
107
|
+
if (Math.abs(x) >= 1) {
|
|
108
|
+
throw new Error("Inverse hyperbolic tangent is only defined for |x| < 1");
|
|
109
|
+
}
|
|
110
|
+
return Math.atanh(x);
|
|
111
|
+
}
|
|
112
|
+
function sec(radians) {
|
|
113
|
+
const cosine = Math.cos(radians);
|
|
114
|
+
if (Math.abs(cosine) < 1e-10) {
|
|
115
|
+
throw new Error("Secant undefined for this angle (cosine is zero)");
|
|
116
|
+
}
|
|
117
|
+
return 1 / cosine;
|
|
118
|
+
}
|
|
119
|
+
function csc(radians) {
|
|
120
|
+
const sine = Math.sin(radians);
|
|
121
|
+
if (Math.abs(sine) < 1e-10) {
|
|
122
|
+
throw new Error("Cosecant undefined for this angle (sine is zero)");
|
|
123
|
+
}
|
|
124
|
+
return 1 / sine;
|
|
125
|
+
}
|
|
126
|
+
function cot(radians) {
|
|
127
|
+
const tangent = Math.tan(radians);
|
|
128
|
+
if (Math.abs(tangent) < 1e-10) {
|
|
129
|
+
throw new Error("Cotangent undefined for this angle (tangent is zero)");
|
|
130
|
+
}
|
|
131
|
+
return 1 / tangent;
|
|
132
|
+
}
|
|
133
|
+
export {
|
|
134
|
+
acos,
|
|
135
|
+
acosh,
|
|
136
|
+
asin,
|
|
137
|
+
asinh,
|
|
138
|
+
atan,
|
|
139
|
+
atan2,
|
|
140
|
+
atanh,
|
|
141
|
+
cos,
|
|
142
|
+
cosh,
|
|
143
|
+
cot,
|
|
144
|
+
csc,
|
|
145
|
+
degToGrad,
|
|
146
|
+
degToRad,
|
|
147
|
+
gradToDeg,
|
|
148
|
+
normalizeDegrees,
|
|
149
|
+
normalizeRadians,
|
|
150
|
+
radToDeg,
|
|
151
|
+
sec,
|
|
152
|
+
sin,
|
|
153
|
+
sinh,
|
|
154
|
+
tan,
|
|
155
|
+
tanh
|
|
156
|
+
};
|