@thi.ng/math 5.0.7 → 5.1.2
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/CHANGELOG.md +167 -130
- package/README.md +1 -1
- package/package.json +131 -126
package/CHANGELOG.md
CHANGED
|
@@ -1,228 +1,265 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
## [5.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/math@5.0.6...@thi.ng/math@5.0.7) (2021-11-03)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @thi.ng/math
|
|
9
|
-
|
|
3
|
+
- **Last updated**: 2021-11-21T17:09:28Z
|
|
4
|
+
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
10
5
|
|
|
6
|
+
All notable changes to this project will be documented in this file.
|
|
7
|
+
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
11
8
|
|
|
9
|
+
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
|
+
and/or version bumps of transitive dependencies.
|
|
12
11
|
|
|
12
|
+
## [5.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@5.1.0) (2021-11-17)
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
### Build System
|
|
18
|
-
|
|
19
|
-
* major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
|
|
14
|
+
#### 🚀 Features
|
|
20
15
|
|
|
16
|
+
- Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
|
|
17
|
+
Improving the overall build ergonomics
|
|
18
|
+
- introduced a tools workspaces
|
|
19
|
+
- imported it in all needed packages/examples
|
|
20
|
+
- inclusive project root
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
#### ♻️ Refactoring
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
- testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
|
|
25
|
+
this commit reverts (partly) changes made in:
|
|
26
|
+
ef346d7a8753590dc9094108a3d861a8dbd5dd2c
|
|
27
|
+
overall purpose is better testament ergonomics:
|
|
28
|
+
instead of having to pass NODE_OPTIONS with every invocation
|
|
29
|
+
having a binary to handle this for us.
|
|
25
30
|
|
|
26
|
-
-
|
|
27
|
-
- CJS obsolete due to ESM support in recent versions of node:
|
|
28
|
-
- i.e. launch NodeJS via:
|
|
29
|
-
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
30
|
-
- in the node REPL use `await import(...)` instead of `require()`
|
|
31
|
-
- UMD obsolete due to widespread browser support for ESM
|
|
31
|
+
### [5.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@5.0.1) (2021-10-13)
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
- normalize/restructure/reorg all package.json files
|
|
35
|
-
- cleanup all build scripts, remove obsolete
|
|
36
|
-
- switch from mocha to @thi.ng/testament for all tests
|
|
33
|
+
#### ♻️ Refactoring
|
|
37
34
|
|
|
35
|
+
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
36
|
+
- update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
|
|
37
|
+
- add .js suffix for all relative imports
|
|
38
38
|
|
|
39
|
+
# [5.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@5.0.0) (2021-10-12)
|
|
39
40
|
|
|
41
|
+
#### 🛑 Breaking changes
|
|
40
42
|
|
|
43
|
+
- major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
|
|
44
|
+
- BREAKING CHANGE: discontinue CommonJS & UMD versions
|
|
45
|
+
- only ESM modules will be published from now on
|
|
46
|
+
- CJS obsolete due to ESM support in recent versions of node:
|
|
47
|
+
- i.e. launch NodeJS via:
|
|
48
|
+
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
49
|
+
- in the node REPL use `await import(...)` instead of `require()`
|
|
50
|
+
- UMD obsolete due to widespread browser support for ESM
|
|
51
|
+
Also:
|
|
52
|
+
- normalize/restructure/reorg all package.json files
|
|
53
|
+
- cleanup all build scripts, remove obsolete
|
|
54
|
+
- switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
|
|
41
55
|
|
|
56
|
+
#### ♻️ Refactoring
|
|
42
57
|
|
|
43
|
-
|
|
58
|
+
- update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
|
|
59
|
+
- update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
|
|
60
|
+
- update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
|
|
44
61
|
|
|
45
|
-
###
|
|
62
|
+
### [4.0.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@4.0.6) (2021-09-03)
|
|
46
63
|
|
|
47
|
-
|
|
64
|
+
#### 🩹 Bug fixes
|
|
48
65
|
|
|
49
|
-
|
|
66
|
+
- removing deprecated eqDeltaFixed() ([1de245b](https://github.com/thi-ng/umbrella/commit/1de245b))
|
|
50
67
|
|
|
51
|
-
|
|
68
|
+
# [4.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@4.0.0) (2021-04-24)
|
|
52
69
|
|
|
53
|
-
|
|
54
|
-
- **math:** add/update modulo functions ([be7b02b](https://github.com/thi-ng/umbrella/commit/be7b02beaf4ab1ab1030597a5f4eb94d43e1469b))
|
|
70
|
+
#### 🛑 Breaking changes
|
|
55
71
|
|
|
56
|
-
|
|
72
|
+
- add/update modulo functions ([be7b02b](https://github.com/thi-ng/umbrella/commit/be7b02b))
|
|
73
|
+
- BREAKING CHANGE: Introduction of standard libc math functions causes
|
|
74
|
+
behavior change of existing `fmod()` function...
|
|
75
|
+
- rename `fmod()` => `mod()` to align w/ GLSL counterpart
|
|
76
|
+
- add new `fmod()` w/ standard libc behavior (same as JS % op)
|
|
77
|
+
- add `remainder()` w/ standard libc behavior
|
|
78
|
+
- update doc strings
|
|
57
79
|
|
|
58
|
-
|
|
59
|
-
- rename `fmod()` => `mod()` to align w/ GLSL counterpart
|
|
60
|
-
- add new `fmod()` w/ standard libc behavior (same as JS % op)
|
|
61
|
-
- add `remainder()` w/ standard libc behavior
|
|
62
|
-
- update doc strings
|
|
80
|
+
#### 🚀 Features
|
|
63
81
|
|
|
64
|
-
|
|
82
|
+
- add libc math fns ([28b41a8](https://github.com/thi-ng/umbrella/commit/28b41a8))
|
|
83
|
+
- add copysign()
|
|
84
|
+
- add exp2()
|
|
85
|
+
- add fdim()
|
|
86
|
+
- add fma()
|
|
87
|
+
- add frexp()
|
|
88
|
+
- add ldexp()
|
|
65
89
|
|
|
66
|
-
|
|
90
|
+
## [3.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@3.4.0) (2021-04-03)
|
|
67
91
|
|
|
68
|
-
|
|
92
|
+
#### 🚀 Features
|
|
69
93
|
|
|
70
|
-
|
|
94
|
+
- add lanczos(), fix/update/add sinc ([e661b7a](https://github.com/thi-ng/umbrella/commit/e661b7a))
|
|
95
|
+
- replace broken sinc() fn w/ non-normalized real sinc
|
|
96
|
+
- add sincNormalized()
|
|
97
|
+
- add lanczos()
|
|
71
98
|
|
|
72
|
-
|
|
99
|
+
#### 🩹 Bug fixes
|
|
73
100
|
|
|
74
|
-
|
|
101
|
+
- fix sigmoid01() signature ([378cb17](https://github.com/thi-ng/umbrella/commit/378cb17))
|
|
75
102
|
|
|
76
|
-
|
|
103
|
+
## [3.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@3.3.0) (2021-03-17)
|
|
77
104
|
|
|
78
|
-
|
|
105
|
+
#### 🚀 Features
|
|
79
106
|
|
|
80
|
-
|
|
107
|
+
- add mixBicubic(), mixCubicHermiteFromPoints() ([30dda42](https://github.com/thi-ng/umbrella/commit/30dda42))
|
|
81
108
|
|
|
82
|
-
|
|
109
|
+
#### ⏱ Performance improvements
|
|
83
110
|
|
|
84
|
-
|
|
111
|
+
- replace mixBilinear() w/ inline impl ([bb16dc5](https://github.com/thi-ng/umbrella/commit/bb16dc5))
|
|
112
|
+
- new impl ~1.7x faster
|
|
85
113
|
|
|
86
|
-
|
|
114
|
+
## [3.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@3.2.0) (2021-02-20)
|
|
87
115
|
|
|
88
|
-
|
|
116
|
+
#### 🚀 Features
|
|
89
117
|
|
|
90
|
-
|
|
118
|
+
- add clamp0() ([d18c869](https://github.com/thi-ng/umbrella/commit/d18c869))
|
|
91
119
|
|
|
92
|
-
|
|
120
|
+
## [3.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@3.1.0) (2021-01-10)
|
|
93
121
|
|
|
94
|
-
|
|
122
|
+
#### 🚀 Features
|
|
95
123
|
|
|
96
|
-
|
|
124
|
+
- add floorTo/ceilTo() ([595fe83](https://github.com/thi-ng/umbrella/commit/595fe83))
|
|
97
125
|
|
|
98
|
-
|
|
126
|
+
# [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@3.0.0) (2020-12-22)
|
|
99
127
|
|
|
100
|
-
|
|
128
|
+
#### 🛑 Breaking changes
|
|
101
129
|
|
|
102
|
-
|
|
130
|
+
- fix [#256](https://github.com/thi-ng/umbrella/issues/256) replace enum w/ type alias ([8f00375](https://github.com/thi-ng/umbrella/commit/8f00375))
|
|
131
|
+
- update comparison order in classifyCrossing()
|
|
132
|
+
- BREAKING CHANGE: replace Crossing enum w/ type alias
|
|
133
|
+
- update/fix sigmoid() behavior ([07a278f](https://github.com/thi-ng/umbrella/commit/07a278f))
|
|
134
|
+
- BREAKING CHANGE: add new bias arg for sigmoid() to satisfy more use cases.
|
|
135
|
+
Use sigmoid01() for old behavior.
|
|
136
|
+
- add/update docstrings
|
|
137
|
+
- add desmos links
|
|
103
138
|
|
|
104
|
-
|
|
139
|
+
#### 🚀 Features
|
|
105
140
|
|
|
106
|
-
|
|
141
|
+
- add more parametric T-norms ([38bd40e](https://github.com/thi-ng/umbrella/commit/38bd40e))
|
|
142
|
+
- add gaussian() ([138befe](https://github.com/thi-ng/umbrella/commit/138befe))
|
|
143
|
+
- add various T-norm functions ([ab4a810](https://github.com/thi-ng/umbrella/commit/ab4a810))
|
|
107
144
|
|
|
108
|
-
|
|
109
|
-
- **math:** add more parametric T-norms ([38bd40e](https://github.com/thi-ng/umbrella/commit/38bd40e1595e318c6472a526e03c8c8a06ebf396))
|
|
110
|
-
- **math:** add various T-norm functions ([ab4a810](https://github.com/thi-ng/umbrella/commit/ab4a810981c08c54365d5ea3212cd465d2589cf0))
|
|
145
|
+
### [2.2.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@2.2.2) (2020-12-07)
|
|
111
146
|
|
|
112
|
-
|
|
147
|
+
#### ♻️ Refactoring
|
|
113
148
|
|
|
114
|
-
-
|
|
115
|
-
- **math:** add new bias arg for sigmoid() to satisfy more use cases. Use sigmoid01() for old behavior.
|
|
116
|
-
- add/update docstrings
|
|
117
|
-
- add desmos links
|
|
149
|
+
- update type-only imports in various tests/pkgs ([3fd9c24](https://github.com/thi-ng/umbrella/commit/3fd9c24))
|
|
118
150
|
|
|
119
|
-
|
|
151
|
+
## [2.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@2.2.0) (2020-11-24)
|
|
120
152
|
|
|
121
|
-
|
|
153
|
+
#### 🚀 Features
|
|
122
154
|
|
|
123
|
-
-
|
|
155
|
+
- add generalized schlick curve ([4b6eb84](https://github.com/thi-ng/umbrella/commit/4b6eb84))
|
|
124
156
|
|
|
125
|
-
|
|
157
|
+
## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@2.1.0) (2020-09-13)
|
|
126
158
|
|
|
127
|
-
|
|
159
|
+
#### 🚀 Features
|
|
128
160
|
|
|
129
|
-
-
|
|
161
|
+
- add lens(), invCircular() interpolators ([56dce17](https://github.com/thi-ng/umbrella/commit/56dce17))
|
|
130
162
|
|
|
131
|
-
|
|
163
|
+
#### ♻️ Refactoring
|
|
132
164
|
|
|
133
|
-
|
|
165
|
+
- update deps, imports, use new Fn types ([a40840d](https://github.com/thi-ng/umbrella/commit/a40840d))
|
|
166
|
+
- use new function aliases, update deps ([dd0337f](https://github.com/thi-ng/umbrella/commit/dd0337f))
|
|
134
167
|
|
|
135
|
-
|
|
168
|
+
### [1.7.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.7.5) (2020-04-05)
|
|
136
169
|
|
|
137
|
-
|
|
170
|
+
#### ♻️ Refactoring
|
|
138
171
|
|
|
139
|
-
-
|
|
140
|
-
- this is essentially a revert to 5018009
|
|
141
|
-
- also keep, but deprecate `eqDeltaFixed()` (synonym for `eqDelta` now)
|
|
172
|
+
- switch to non-const enums ([783e5e3](https://github.com/thi-ng/umbrella/commit/783e5e3))
|
|
142
173
|
|
|
143
|
-
|
|
174
|
+
## [1.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.7.0) (2020-02-25)
|
|
144
175
|
|
|
145
|
-
|
|
176
|
+
#### 🚀 Features
|
|
146
177
|
|
|
147
|
-
-
|
|
148
|
-
-
|
|
178
|
+
- add minNonZero2/3() ([49c88d9](https://github.com/thi-ng/umbrella/commit/49c88d9))
|
|
179
|
+
- add safeDiv() (from @nkint PR [#206](https://github.com/thi-ng/umbrella/issues/206)) ([0567b93](https://github.com/thi-ng/umbrella/commit/0567b93))
|
|
149
180
|
|
|
150
|
-
|
|
181
|
+
## [1.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.6.0) (2020-01-24)
|
|
151
182
|
|
|
152
|
-
|
|
183
|
+
#### 🚀 Features
|
|
153
184
|
|
|
154
|
-
-
|
|
155
|
-
-
|
|
185
|
+
- add clamp05, update wrapOnce, wrap01, wrap11 ([19af252](https://github.com/thi-ng/umbrella/commit/19af252))
|
|
186
|
+
- add clamp05()
|
|
187
|
+
- wrap fns now consistently use *closed* intervals
|
|
188
|
+
- add expFactor(), update wrap/wrapOnce() ([bb07348](https://github.com/thi-ng/umbrella/commit/bb07348))
|
|
189
|
+
- rename wrap => wrapOnce()
|
|
190
|
+
- add new wrap() which wraps any value, regardless of
|
|
191
|
+
dist to interval border
|
|
192
|
+
- update docs
|
|
156
193
|
|
|
157
|
-
|
|
194
|
+
## [1.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.5.0) (2019-11-09)
|
|
158
195
|
|
|
159
|
-
|
|
196
|
+
#### 🚀 Features
|
|
160
197
|
|
|
161
|
-
-
|
|
198
|
+
- add mixCubicHermite & tangent fns ([d6b4b37](https://github.com/thi-ng/umbrella/commit/d6b4b37))
|
|
162
199
|
|
|
163
|
-
|
|
200
|
+
## [1.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.4.0) (2019-07-07)
|
|
164
201
|
|
|
165
|
-
|
|
202
|
+
#### 🚀 Features
|
|
166
203
|
|
|
167
|
-
-
|
|
204
|
+
- add signed/unsigned int math ops ([518d79a](https://github.com/thi-ng/umbrella/commit/518d79a))
|
|
168
205
|
|
|
169
|
-
|
|
206
|
+
## [1.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.3.0) (2019-05-22)
|
|
170
207
|
|
|
171
|
-
|
|
208
|
+
#### 🚀 Features
|
|
172
209
|
|
|
173
|
-
-
|
|
174
|
-
-
|
|
210
|
+
- add sigmoid / sigmoid11 fns ([3f085a3](https://github.com/thi-ng/umbrella/commit/3f085a3))
|
|
211
|
+
- add extrema & crossing fns and Crossing enum ([e102f39](https://github.com/thi-ng/umbrella/commit/e102f39))
|
|
175
212
|
|
|
176
|
-
|
|
213
|
+
## [1.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.2.0) (2019-03-18)
|
|
177
214
|
|
|
178
|
-
|
|
215
|
+
#### 🚀 Features
|
|
179
216
|
|
|
180
|
-
-
|
|
181
|
-
-
|
|
182
|
-
-
|
|
217
|
+
- add cos/sin approximations, loc(), add docstrings ([78ed751](https://github.com/thi-ng/umbrella/commit/78ed751))
|
|
218
|
+
- add consts ([28e9898](https://github.com/thi-ng/umbrella/commit/28e9898))
|
|
219
|
+
- more trigonometry ([b5e1c02](https://github.com/thi-ng/umbrella/commit/b5e1c02))
|
|
183
220
|
|
|
184
|
-
|
|
221
|
+
## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.1.0) (2019-02-05)
|
|
185
222
|
|
|
186
|
-
|
|
223
|
+
#### 🚀 Features
|
|
187
224
|
|
|
188
|
-
-
|
|
189
|
-
- **math:** add PHI const ([57d4488](https://github.com/thi-ng/umbrella/commit/57d4488))
|
|
190
|
-
- **math:** add simplifyRatio() ([31e369b](https://github.com/thi-ng/umbrella/commit/31e369b))
|
|
225
|
+
- add PHI const ([57d4488](https://github.com/thi-ng/umbrella/commit/57d4488))
|
|
191
226
|
|
|
192
|
-
#
|
|
227
|
+
# [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@1.0.0) (2019-01-21)
|
|
193
228
|
|
|
194
|
-
|
|
229
|
+
#### 🛑 Breaking changes
|
|
195
230
|
|
|
196
231
|
- update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
|
|
232
|
+
- BREAKING CHANGE: enabled multi-outputs (ES6 modules, CJS, UMD)
|
|
233
|
+
- build scripts now first build ES6 modules in package root, then call
|
|
234
|
+
`scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
|
|
235
|
+
- all imports MUST be updated to only refer to package level
|
|
236
|
+
(not individual files anymore). tree shaking in user land will get rid of
|
|
237
|
+
all unused imported symbols.
|
|
197
238
|
|
|
198
|
-
|
|
239
|
+
#### 🚀 Features
|
|
199
240
|
|
|
200
|
-
-
|
|
201
|
-
-
|
|
202
|
-
- **math:** add cossin(), add opt scale arg for sincos() ([0043fb5](https://github.com/thi-ng/umbrella/commit/0043fb5))
|
|
203
|
-
- **math:** update eqDelta w/ adaptive eps, rename old => eqDeltaFixed ([5018009](https://github.com/thi-ng/umbrella/commit/5018009))
|
|
241
|
+
- add absInnerAngle() ([a78bd87](https://github.com/thi-ng/umbrella/commit/a78bd87))
|
|
242
|
+
- update eqDelta w/ adaptive eps, rename old => eqDeltaFixed ([5018009](https://github.com/thi-ng/umbrella/commit/5018009))
|
|
204
243
|
|
|
205
|
-
|
|
244
|
+
#### ♻️ Refactoring
|
|
206
245
|
|
|
207
|
-
-
|
|
208
|
-
- build scripts now first build ES6 modules in package root, then call `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
|
|
209
|
-
- all imports MUST be updated to only refer to package level (not individual files anymore). tree shaking in user land will get rid of all unused imported symbols.
|
|
246
|
+
- use arrow fns ([560207a](https://github.com/thi-ng/umbrella/commit/560207a))
|
|
210
247
|
|
|
211
|
-
|
|
248
|
+
### [0.2.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@0.2.1) (2018-11-20)
|
|
212
249
|
|
|
213
|
-
|
|
250
|
+
#### 🩹 Bug fixes
|
|
214
251
|
|
|
215
|
-
-
|
|
252
|
+
- fix [#60](https://github.com/thi-ng/umbrella/issues/60), add range check for norm() ([143c47c](https://github.com/thi-ng/umbrella/commit/143c47c))
|
|
216
253
|
|
|
217
|
-
|
|
254
|
+
## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@0.2.0) (2018-10-21)
|
|
218
255
|
|
|
219
|
-
|
|
256
|
+
#### 🚀 Features
|
|
220
257
|
|
|
221
|
-
-
|
|
222
|
-
-
|
|
258
|
+
- migrate mixCubic()/mixQuadratic() from geom package ([4a47daa](https://github.com/thi-ng/umbrella/commit/4a47daa))
|
|
259
|
+
- add sincos() & roundEps() ([f891c41](https://github.com/thi-ng/umbrella/commit/f891c41))
|
|
223
260
|
|
|
224
|
-
|
|
261
|
+
## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/math@0.1.0) (2018-10-17)
|
|
225
262
|
|
|
226
|
-
|
|
263
|
+
#### 🚀 Features
|
|
227
264
|
|
|
228
|
-
-
|
|
265
|
+
- extract maths fns from [@thi.ng/vectors](https://github.com/thi-ng/umbrella/tree/main/packages/vectors) as new package ([4af1fba](https://github.com/thi-ng/umbrella/commit/4af1fba))
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,127 +1,132 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
2
|
+
"name": "@thi.ng/math",
|
|
3
|
+
"version": "5.1.2",
|
|
4
|
+
"description": "Assorted common math functions & utilities",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "./index.js",
|
|
7
|
+
"typings": "./index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/thi-ng/umbrella.git"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/math#readme",
|
|
14
|
+
"funding": [
|
|
15
|
+
{
|
|
16
|
+
"type": "github",
|
|
17
|
+
"url": "https://github.com/sponsors/postspectacular"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "patreon",
|
|
21
|
+
"url": "https://patreon.com/thing_umbrella"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"author": "Karsten Schmidt <k+npm@thi.ng>",
|
|
25
|
+
"license": "Apache-2.0",
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "yarn clean && tsc --declaration",
|
|
28
|
+
"clean": "rimraf '*.js' '*.d.ts' '*.map' doc",
|
|
29
|
+
"doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
|
|
30
|
+
"doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
|
|
31
|
+
"doc:readme": "yarn doc:stats && tools:readme",
|
|
32
|
+
"doc:stats": "tools:module-stats",
|
|
33
|
+
"pub": "yarn npm publish --access public",
|
|
34
|
+
"test": "testament test"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@thi.ng/api": "^8.3.2"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@microsoft/api-extractor": "^7.18.19",
|
|
41
|
+
"@thi.ng/testament": "^0.2.2",
|
|
42
|
+
"rimraf": "^3.0.2",
|
|
43
|
+
"tools": "^0.0.1",
|
|
44
|
+
"typedoc": "^0.22.9",
|
|
45
|
+
"typescript": "^4.5.2"
|
|
46
|
+
},
|
|
47
|
+
"keywords": [
|
|
48
|
+
"animation",
|
|
49
|
+
"bezier",
|
|
50
|
+
"cubic",
|
|
51
|
+
"hermite",
|
|
52
|
+
"interpolation",
|
|
53
|
+
"interval",
|
|
54
|
+
"math",
|
|
55
|
+
"quadratic",
|
|
56
|
+
"smooth",
|
|
57
|
+
"solver",
|
|
58
|
+
"t-norm",
|
|
59
|
+
"trigonometry",
|
|
60
|
+
"typescript"
|
|
61
|
+
],
|
|
62
|
+
"publishConfig": {
|
|
63
|
+
"access": "public"
|
|
64
|
+
},
|
|
65
|
+
"engines": {
|
|
66
|
+
"node": ">=12.7"
|
|
67
|
+
},
|
|
68
|
+
"files": [
|
|
69
|
+
"*.js",
|
|
70
|
+
"*.d.ts"
|
|
71
|
+
],
|
|
72
|
+
"exports": {
|
|
73
|
+
".": {
|
|
74
|
+
"import": "./index.js"
|
|
75
|
+
},
|
|
76
|
+
"./abs": {
|
|
77
|
+
"import": "./abs.js"
|
|
78
|
+
},
|
|
79
|
+
"./angle": {
|
|
80
|
+
"import": "./angle.js"
|
|
81
|
+
},
|
|
82
|
+
"./api": {
|
|
83
|
+
"import": "./api.js"
|
|
84
|
+
},
|
|
85
|
+
"./crossing": {
|
|
86
|
+
"import": "./crossing.js"
|
|
87
|
+
},
|
|
88
|
+
"./eqdelta": {
|
|
89
|
+
"import": "./eqdelta.js"
|
|
90
|
+
},
|
|
91
|
+
"./extrema": {
|
|
92
|
+
"import": "./extrema.js"
|
|
93
|
+
},
|
|
94
|
+
"./fit": {
|
|
95
|
+
"import": "./fit.js"
|
|
96
|
+
},
|
|
97
|
+
"./int": {
|
|
98
|
+
"import": "./int.js"
|
|
99
|
+
},
|
|
100
|
+
"./interval": {
|
|
101
|
+
"import": "./interval.js"
|
|
102
|
+
},
|
|
103
|
+
"./libc": {
|
|
104
|
+
"import": "./libc.js"
|
|
105
|
+
},
|
|
106
|
+
"./min-error": {
|
|
107
|
+
"import": "./min-error.js"
|
|
108
|
+
},
|
|
109
|
+
"./mix": {
|
|
110
|
+
"import": "./mix.js"
|
|
111
|
+
},
|
|
112
|
+
"./prec": {
|
|
113
|
+
"import": "./prec.js"
|
|
114
|
+
},
|
|
115
|
+
"./ratio": {
|
|
116
|
+
"import": "./ratio.js"
|
|
117
|
+
},
|
|
118
|
+
"./safe-div": {
|
|
119
|
+
"import": "./safe-div.js"
|
|
120
|
+
},
|
|
121
|
+
"./solve": {
|
|
122
|
+
"import": "./solve.js"
|
|
123
|
+
},
|
|
124
|
+
"./step": {
|
|
125
|
+
"import": "./step.js"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"thi.ng": {
|
|
129
|
+
"year": 2013
|
|
130
|
+
},
|
|
131
|
+
"gitHead": "e8a7c2a40191b391cef182c2978e5a6c85987a87\n"
|
|
132
|
+
}
|