linearly 0.24.2 → 0.25.0
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/lib/cjs/mat2.d.ts +10 -10
- package/lib/cjs/mat2.js +10 -10
- package/lib/cjs/mat2d.d.ts +11 -11
- package/lib/cjs/mat2d.js +11 -11
- package/lib/cjs/mat3.d.ts +9 -9
- package/lib/cjs/mat3.js +9 -9
- package/lib/cjs/mat4.d.ts +9 -9
- package/lib/cjs/mat4.js +9 -9
- package/lib/cjs/quat.d.ts +5 -5
- package/lib/cjs/quat.js +5 -5
- package/lib/cjs/scalar.d.ts +15 -15
- package/lib/cjs/scalar.d.ts.map +1 -1
- package/lib/cjs/scalar.js +22 -16
- package/lib/cjs/vec2.d.ts +157 -74
- package/lib/cjs/vec2.d.ts.map +1 -1
- package/lib/cjs/vec2.js +179 -97
- package/lib/cjs/vec3.d.ts +37 -15
- package/lib/cjs/vec3.d.ts.map +1 -1
- package/lib/cjs/vec3.js +62 -24
- package/lib/cjs/vec4.d.ts +26 -4
- package/lib/cjs/vec4.d.ts.map +1 -1
- package/lib/cjs/vec4.js +54 -13
- package/lib/esm/mat2.d.ts +10 -10
- package/lib/esm/mat2.js +10 -10
- package/lib/esm/mat2d.d.ts +11 -11
- package/lib/esm/mat2d.js +11 -11
- package/lib/esm/mat3.d.ts +9 -9
- package/lib/esm/mat3.js +9 -9
- package/lib/esm/mat4.d.ts +9 -9
- package/lib/esm/mat4.js +9 -9
- package/lib/esm/quat.d.ts +5 -5
- package/lib/esm/quat.js +5 -5
- package/lib/esm/scalar.d.ts +15 -15
- package/lib/esm/scalar.d.ts.map +1 -1
- package/lib/esm/scalar.js +22 -16
- package/lib/esm/vec2.d.ts +157 -74
- package/lib/esm/vec2.d.ts.map +1 -1
- package/lib/esm/vec2.js +179 -97
- package/lib/esm/vec3.d.ts +37 -15
- package/lib/esm/vec3.d.ts.map +1 -1
- package/lib/esm/vec3.js +62 -24
- package/lib/esm/vec4.d.ts +26 -4
- package/lib/esm/vec4.d.ts.map +1 -1
- package/lib/esm/vec4.js +54 -13
- package/package.json +1 -1
package/lib/cjs/mat2.d.ts
CHANGED
|
@@ -107,7 +107,7 @@ export declare namespace mat2 {
|
|
|
107
107
|
function fromRotScale(r?: number | null, s?: vec2 | null): number[];
|
|
108
108
|
/**
|
|
109
109
|
* Alias for {@link fromRotScale}
|
|
110
|
-
* @category
|
|
110
|
+
* @category Shorthands
|
|
111
111
|
*/
|
|
112
112
|
const rs: typeof fromRotScale;
|
|
113
113
|
/**
|
|
@@ -143,47 +143,47 @@ export declare namespace mat2 {
|
|
|
143
143
|
function equals(a: mat2, b: mat2): boolean;
|
|
144
144
|
/**
|
|
145
145
|
* Alias for {@link identity}
|
|
146
|
-
* @category
|
|
146
|
+
* @category Shorthands
|
|
147
147
|
*/
|
|
148
148
|
const id: mat2;
|
|
149
149
|
/**
|
|
150
150
|
* Alias for {@link identity}
|
|
151
|
-
* @category
|
|
151
|
+
* @category Shorthands
|
|
152
152
|
*/
|
|
153
153
|
const ident: mat2;
|
|
154
154
|
/**
|
|
155
155
|
* Alias for {@link subtract}
|
|
156
|
-
* @category
|
|
156
|
+
* @category Shorthands
|
|
157
157
|
*/
|
|
158
158
|
const sub: typeof subtract;
|
|
159
159
|
/**
|
|
160
160
|
* Alias for {@link multiply}
|
|
161
|
-
* @category
|
|
161
|
+
* @category Shorthands
|
|
162
162
|
*/
|
|
163
163
|
const mul: typeof multiply;
|
|
164
164
|
/**
|
|
165
165
|
* Alias for {@link determinant}
|
|
166
|
-
* @category
|
|
166
|
+
* @category Shorthands
|
|
167
167
|
*/
|
|
168
168
|
const det: typeof determinant;
|
|
169
169
|
/**
|
|
170
170
|
* Alias for {@link invert}
|
|
171
|
-
* @category
|
|
171
|
+
* @category Shorthands
|
|
172
172
|
*/
|
|
173
173
|
const inv: typeof invert;
|
|
174
174
|
/**
|
|
175
175
|
* Alias for {@link fromRotation}
|
|
176
|
-
* @category
|
|
176
|
+
* @category Shorthands
|
|
177
177
|
*/
|
|
178
178
|
const rotation: typeof fromRotation;
|
|
179
179
|
/**
|
|
180
180
|
* Alias for {@link fromScaling}
|
|
181
|
-
* @category
|
|
181
|
+
* @category Shorthands
|
|
182
182
|
*/
|
|
183
183
|
const scaling: typeof fromScaling;
|
|
184
184
|
/**
|
|
185
185
|
* Alias for {@link fromSkew}
|
|
186
|
-
* @category
|
|
186
|
+
* @category Shorthands
|
|
187
187
|
*/
|
|
188
188
|
const skewing: typeof fromSkew;
|
|
189
189
|
}
|
package/lib/cjs/mat2.js
CHANGED
|
@@ -217,7 +217,7 @@ var mat2;
|
|
|
217
217
|
mat2.fromRotScale = fromRotScale;
|
|
218
218
|
/**
|
|
219
219
|
* Alias for {@link fromRotScale}
|
|
220
|
-
* @category
|
|
220
|
+
* @category Shorthands
|
|
221
221
|
*/
|
|
222
222
|
mat2.rs = fromRotScale;
|
|
223
223
|
/**
|
|
@@ -305,47 +305,47 @@ var mat2;
|
|
|
305
305
|
mat2.equals = equals;
|
|
306
306
|
/**
|
|
307
307
|
* Alias for {@link identity}
|
|
308
|
-
* @category
|
|
308
|
+
* @category Shorthands
|
|
309
309
|
*/
|
|
310
310
|
mat2.id = mat2.identity;
|
|
311
311
|
/**
|
|
312
312
|
* Alias for {@link identity}
|
|
313
|
-
* @category
|
|
313
|
+
* @category Shorthands
|
|
314
314
|
*/
|
|
315
315
|
mat2.ident = mat2.identity;
|
|
316
316
|
/**
|
|
317
317
|
* Alias for {@link subtract}
|
|
318
|
-
* @category
|
|
318
|
+
* @category Shorthands
|
|
319
319
|
*/
|
|
320
320
|
mat2.sub = subtract;
|
|
321
321
|
/**
|
|
322
322
|
* Alias for {@link multiply}
|
|
323
|
-
* @category
|
|
323
|
+
* @category Shorthands
|
|
324
324
|
*/
|
|
325
325
|
mat2.mul = multiply;
|
|
326
326
|
/**
|
|
327
327
|
* Alias for {@link determinant}
|
|
328
|
-
* @category
|
|
328
|
+
* @category Shorthands
|
|
329
329
|
*/
|
|
330
330
|
mat2.det = determinant;
|
|
331
331
|
/**
|
|
332
332
|
* Alias for {@link invert}
|
|
333
|
-
* @category
|
|
333
|
+
* @category Shorthands
|
|
334
334
|
*/
|
|
335
335
|
mat2.inv = invert;
|
|
336
336
|
/**
|
|
337
337
|
* Alias for {@link fromRotation}
|
|
338
|
-
* @category
|
|
338
|
+
* @category Shorthands
|
|
339
339
|
*/
|
|
340
340
|
mat2.rotation = fromRotation;
|
|
341
341
|
/**
|
|
342
342
|
* Alias for {@link fromScaling}
|
|
343
|
-
* @category
|
|
343
|
+
* @category Shorthands
|
|
344
344
|
*/
|
|
345
345
|
mat2.scaling = fromScaling;
|
|
346
346
|
/**
|
|
347
347
|
* Alias for {@link fromSkew}
|
|
348
|
-
* @category
|
|
348
|
+
* @category Shorthands
|
|
349
349
|
*/
|
|
350
350
|
mat2.skewing = fromSkew;
|
|
351
351
|
})(mat2 || (exports.mat2 = mat2 = {}));
|
package/lib/cjs/mat2d.d.ts
CHANGED
|
@@ -196,57 +196,57 @@ export declare namespace mat2d {
|
|
|
196
196
|
const toString: (m: mat2d, fractionDigits?: number) => string;
|
|
197
197
|
/**
|
|
198
198
|
* Alias for {@link identity}
|
|
199
|
-
* @category
|
|
199
|
+
* @category Shorthands
|
|
200
200
|
*/
|
|
201
201
|
const id: mat2d;
|
|
202
202
|
/**
|
|
203
203
|
* Alias for {@link identity}
|
|
204
|
-
* @category
|
|
204
|
+
* @category Shorthands
|
|
205
205
|
*/
|
|
206
206
|
const ident: mat2d;
|
|
207
207
|
/**
|
|
208
208
|
* Alias for {@link subtract}
|
|
209
|
-
* @category
|
|
209
|
+
* @category Shorthands
|
|
210
210
|
*/
|
|
211
211
|
const sub: typeof subtract;
|
|
212
212
|
/**
|
|
213
213
|
* Alias for {@link multiply}
|
|
214
|
-
* @category
|
|
214
|
+
* @category Shorthands
|
|
215
215
|
*/
|
|
216
216
|
const mul: typeof multiply;
|
|
217
217
|
/**
|
|
218
218
|
* Alias for {@link determinant}
|
|
219
|
-
* @category
|
|
219
|
+
* @category Shorthands
|
|
220
220
|
*/
|
|
221
221
|
const det: typeof determinant;
|
|
222
222
|
/**
|
|
223
223
|
* Alias for {@link invert}
|
|
224
|
-
* @category
|
|
224
|
+
* @category Shorthands
|
|
225
225
|
*/
|
|
226
226
|
const inv: typeof invert;
|
|
227
227
|
/**
|
|
228
228
|
* Alias for {@link fromTranslation}
|
|
229
|
-
* @category
|
|
229
|
+
* @category Shorthands
|
|
230
230
|
*/
|
|
231
231
|
const translation: typeof fromTranslation;
|
|
232
232
|
/**
|
|
233
233
|
* Alias for {@link fromRotation}
|
|
234
|
-
* @category
|
|
234
|
+
* @category Shorthands
|
|
235
235
|
*/
|
|
236
236
|
const rotation: typeof fromRotation;
|
|
237
237
|
/**
|
|
238
238
|
* Alias for {@link fromScaling}
|
|
239
|
-
* @category
|
|
239
|
+
* @category Shorthands
|
|
240
240
|
*/
|
|
241
241
|
const scaling: typeof fromScaling;
|
|
242
242
|
/**
|
|
243
243
|
* Alias for {@link fromSkew}
|
|
244
|
-
* @category
|
|
244
|
+
* @category Shorthands
|
|
245
245
|
*/
|
|
246
246
|
const skewing: typeof fromSkew;
|
|
247
247
|
/**
|
|
248
248
|
* Alias for {@link fromTRS}
|
|
249
|
-
* @category
|
|
249
|
+
* @category Shorthands
|
|
250
250
|
*/
|
|
251
251
|
const trs: typeof fromTRS;
|
|
252
252
|
}
|
package/lib/cjs/mat2d.js
CHANGED
|
@@ -477,57 +477,57 @@ var mat2d;
|
|
|
477
477
|
mat2d.toString = Common.createMatToStringFunction(2, 3);
|
|
478
478
|
/**
|
|
479
479
|
* Alias for {@link identity}
|
|
480
|
-
* @category
|
|
480
|
+
* @category Shorthands
|
|
481
481
|
*/
|
|
482
482
|
mat2d.id = mat2d.identity;
|
|
483
483
|
/**
|
|
484
484
|
* Alias for {@link identity}
|
|
485
|
-
* @category
|
|
485
|
+
* @category Shorthands
|
|
486
486
|
*/
|
|
487
487
|
mat2d.ident = mat2d.identity;
|
|
488
488
|
/**
|
|
489
489
|
* Alias for {@link subtract}
|
|
490
|
-
* @category
|
|
490
|
+
* @category Shorthands
|
|
491
491
|
*/
|
|
492
492
|
mat2d.sub = subtract;
|
|
493
493
|
/**
|
|
494
494
|
* Alias for {@link multiply}
|
|
495
|
-
* @category
|
|
495
|
+
* @category Shorthands
|
|
496
496
|
*/
|
|
497
497
|
mat2d.mul = multiply;
|
|
498
498
|
/**
|
|
499
499
|
* Alias for {@link determinant}
|
|
500
|
-
* @category
|
|
500
|
+
* @category Shorthands
|
|
501
501
|
*/
|
|
502
502
|
mat2d.det = determinant;
|
|
503
503
|
/**
|
|
504
504
|
* Alias for {@link invert}
|
|
505
|
-
* @category
|
|
505
|
+
* @category Shorthands
|
|
506
506
|
*/
|
|
507
507
|
mat2d.inv = invert;
|
|
508
508
|
/**
|
|
509
509
|
* Alias for {@link fromTranslation}
|
|
510
|
-
* @category
|
|
510
|
+
* @category Shorthands
|
|
511
511
|
*/
|
|
512
512
|
mat2d.translation = fromTranslation;
|
|
513
513
|
/**
|
|
514
514
|
* Alias for {@link fromRotation}
|
|
515
|
-
* @category
|
|
515
|
+
* @category Shorthands
|
|
516
516
|
*/
|
|
517
517
|
mat2d.rotation = fromRotation;
|
|
518
518
|
/**
|
|
519
519
|
* Alias for {@link fromScaling}
|
|
520
|
-
* @category
|
|
520
|
+
* @category Shorthands
|
|
521
521
|
*/
|
|
522
522
|
mat2d.scaling = fromScaling;
|
|
523
523
|
/**
|
|
524
524
|
* Alias for {@link fromSkew}
|
|
525
|
-
* @category
|
|
525
|
+
* @category Shorthands
|
|
526
526
|
*/
|
|
527
527
|
mat2d.skewing = fromSkew;
|
|
528
528
|
/**
|
|
529
529
|
* Alias for {@link fromTRS}
|
|
530
|
-
* @category
|
|
530
|
+
* @category Shorthands
|
|
531
531
|
*/
|
|
532
532
|
mat2d.trs = fromTRS;
|
|
533
533
|
})(mat2d || (exports.mat2d = mat2d = {}));
|
package/lib/cjs/mat3.d.ts
CHANGED
|
@@ -179,47 +179,47 @@ export declare namespace mat3 {
|
|
|
179
179
|
const toString: (m: mat3, fractionDigits?: number) => string;
|
|
180
180
|
/**
|
|
181
181
|
* Alias for {@link identity}
|
|
182
|
-
* @category
|
|
182
|
+
* @category Shorthands
|
|
183
183
|
*/
|
|
184
184
|
const id: mat3;
|
|
185
185
|
/**
|
|
186
186
|
* Alias for {@link identity}
|
|
187
|
-
* @category
|
|
187
|
+
* @category Shorthands
|
|
188
188
|
*/
|
|
189
189
|
const ident: mat3;
|
|
190
190
|
/**
|
|
191
191
|
* Alias for {@link subtract}
|
|
192
|
-
* @category
|
|
192
|
+
* @category Shorthands
|
|
193
193
|
*/
|
|
194
194
|
const sub: typeof subtract;
|
|
195
195
|
/**
|
|
196
196
|
* Alias for {@link multiply}
|
|
197
|
-
* @category
|
|
197
|
+
* @category Shorthands
|
|
198
198
|
*/
|
|
199
199
|
const mul: typeof multiply;
|
|
200
200
|
/**
|
|
201
201
|
* Alias for {@link determinant}
|
|
202
|
-
* @category
|
|
202
|
+
* @category Shorthands
|
|
203
203
|
*/
|
|
204
204
|
const det: typeof determinant;
|
|
205
205
|
/**
|
|
206
206
|
* Alias for {@link invert}
|
|
207
|
-
* @category
|
|
207
|
+
* @category Shorthands
|
|
208
208
|
*/
|
|
209
209
|
const inv: typeof invert;
|
|
210
210
|
/**
|
|
211
211
|
* Alias for {@link fromTranslation}
|
|
212
|
-
* @category
|
|
212
|
+
* @category Shorthands
|
|
213
213
|
*/
|
|
214
214
|
const translation: typeof fromTranslation;
|
|
215
215
|
/**
|
|
216
216
|
* Alias for {@link fromRotation}
|
|
217
|
-
* @category
|
|
217
|
+
* @category Shorthands
|
|
218
218
|
*/
|
|
219
219
|
const rotation: typeof fromRotation;
|
|
220
220
|
/**
|
|
221
221
|
* Alias for {@link fromScaling}
|
|
222
|
-
* @category
|
|
222
|
+
* @category Shorthands
|
|
223
223
|
*/
|
|
224
224
|
const scaling: typeof fromScaling;
|
|
225
225
|
}
|
package/lib/cjs/mat3.js
CHANGED
|
@@ -526,47 +526,47 @@ var mat3;
|
|
|
526
526
|
mat3.toString = Common.createMatToStringFunction(3, 3);
|
|
527
527
|
/**
|
|
528
528
|
* Alias for {@link identity}
|
|
529
|
-
* @category
|
|
529
|
+
* @category Shorthands
|
|
530
530
|
*/
|
|
531
531
|
mat3.id = mat3.identity;
|
|
532
532
|
/**
|
|
533
533
|
* Alias for {@link identity}
|
|
534
|
-
* @category
|
|
534
|
+
* @category Shorthands
|
|
535
535
|
*/
|
|
536
536
|
mat3.ident = mat3.identity;
|
|
537
537
|
/**
|
|
538
538
|
* Alias for {@link subtract}
|
|
539
|
-
* @category
|
|
539
|
+
* @category Shorthands
|
|
540
540
|
*/
|
|
541
541
|
mat3.sub = subtract;
|
|
542
542
|
/**
|
|
543
543
|
* Alias for {@link multiply}
|
|
544
|
-
* @category
|
|
544
|
+
* @category Shorthands
|
|
545
545
|
*/
|
|
546
546
|
mat3.mul = multiply;
|
|
547
547
|
/**
|
|
548
548
|
* Alias for {@link determinant}
|
|
549
|
-
* @category
|
|
549
|
+
* @category Shorthands
|
|
550
550
|
*/
|
|
551
551
|
mat3.det = determinant;
|
|
552
552
|
/**
|
|
553
553
|
* Alias for {@link invert}
|
|
554
|
-
* @category
|
|
554
|
+
* @category Shorthands
|
|
555
555
|
*/
|
|
556
556
|
mat3.inv = invert;
|
|
557
557
|
/**
|
|
558
558
|
* Alias for {@link fromTranslation}
|
|
559
|
-
* @category
|
|
559
|
+
* @category Shorthands
|
|
560
560
|
*/
|
|
561
561
|
mat3.translation = fromTranslation;
|
|
562
562
|
/**
|
|
563
563
|
* Alias for {@link fromRotation}
|
|
564
|
-
* @category
|
|
564
|
+
* @category Shorthands
|
|
565
565
|
*/
|
|
566
566
|
mat3.rotation = fromRotation;
|
|
567
567
|
/**
|
|
568
568
|
* Alias for {@link fromScaling}
|
|
569
|
-
* @category
|
|
569
|
+
* @category Shorthands
|
|
570
570
|
*/
|
|
571
571
|
mat3.scaling = fromScaling;
|
|
572
572
|
})(mat3 || (exports.mat3 = mat3 = {}));
|
package/lib/cjs/mat4.d.ts
CHANGED
|
@@ -388,47 +388,47 @@ export declare namespace mat4 {
|
|
|
388
388
|
export const toString: (m: mat4, fractionDigits?: number) => string;
|
|
389
389
|
/**
|
|
390
390
|
* Alias for {@link identity}
|
|
391
|
-
* @category
|
|
391
|
+
* @category Shorthands
|
|
392
392
|
*/
|
|
393
393
|
export const id: mat4;
|
|
394
394
|
/**
|
|
395
395
|
* Alias for {@link identity}
|
|
396
|
-
* @category
|
|
396
|
+
* @category Shorthands
|
|
397
397
|
*/
|
|
398
398
|
export const ident: mat4;
|
|
399
399
|
/**
|
|
400
400
|
* Alias for {@link subtract}
|
|
401
|
-
* @category
|
|
401
|
+
* @category Shorthands
|
|
402
402
|
*/
|
|
403
403
|
export const sub: typeof subtract;
|
|
404
404
|
/**
|
|
405
405
|
* Alias for {@link multiply}
|
|
406
|
-
* @category
|
|
406
|
+
* @category Shorthands
|
|
407
407
|
*/
|
|
408
408
|
export const mul: typeof multiply;
|
|
409
409
|
/**
|
|
410
410
|
* Alias for {@link determinant}
|
|
411
|
-
* @category
|
|
411
|
+
* @category Shorthands
|
|
412
412
|
*/
|
|
413
413
|
export const det: typeof determinant;
|
|
414
414
|
/**
|
|
415
415
|
* Alias for {@link invert}
|
|
416
|
-
* @category
|
|
416
|
+
* @category Shorthands
|
|
417
417
|
*/
|
|
418
418
|
export const inv: typeof invert;
|
|
419
419
|
/**
|
|
420
420
|
* Alias for {@link fromTranslation}
|
|
421
|
-
* @category
|
|
421
|
+
* @category Shorthands
|
|
422
422
|
*/
|
|
423
423
|
export const translation: typeof fromTranslation;
|
|
424
424
|
/**
|
|
425
425
|
* Alias for {@link fromRotation}
|
|
426
|
-
* @category
|
|
426
|
+
* @category Shorthands
|
|
427
427
|
*/
|
|
428
428
|
export const rotation: typeof fromRotation;
|
|
429
429
|
/**
|
|
430
430
|
* Alias for {@link fromScaling}
|
|
431
|
-
* @category
|
|
431
|
+
* @category Shorthands
|
|
432
432
|
*/
|
|
433
433
|
export const scaling: typeof fromScaling;
|
|
434
434
|
export {};
|
package/lib/cjs/mat4.js
CHANGED
|
@@ -1368,47 +1368,47 @@ var mat4;
|
|
|
1368
1368
|
mat4.toString = Common.createMatToStringFunction(4, 4);
|
|
1369
1369
|
/**
|
|
1370
1370
|
* Alias for {@link identity}
|
|
1371
|
-
* @category
|
|
1371
|
+
* @category Shorthands
|
|
1372
1372
|
*/
|
|
1373
1373
|
mat4.id = mat4.identity;
|
|
1374
1374
|
/**
|
|
1375
1375
|
* Alias for {@link identity}
|
|
1376
|
-
* @category
|
|
1376
|
+
* @category Shorthands
|
|
1377
1377
|
*/
|
|
1378
1378
|
mat4.ident = mat4.identity;
|
|
1379
1379
|
/**
|
|
1380
1380
|
* Alias for {@link subtract}
|
|
1381
|
-
* @category
|
|
1381
|
+
* @category Shorthands
|
|
1382
1382
|
*/
|
|
1383
1383
|
mat4.sub = subtract;
|
|
1384
1384
|
/**
|
|
1385
1385
|
* Alias for {@link multiply}
|
|
1386
|
-
* @category
|
|
1386
|
+
* @category Shorthands
|
|
1387
1387
|
*/
|
|
1388
1388
|
mat4.mul = multiply;
|
|
1389
1389
|
/**
|
|
1390
1390
|
* Alias for {@link determinant}
|
|
1391
|
-
* @category
|
|
1391
|
+
* @category Shorthands
|
|
1392
1392
|
*/
|
|
1393
1393
|
mat4.det = determinant;
|
|
1394
1394
|
/**
|
|
1395
1395
|
* Alias for {@link invert}
|
|
1396
|
-
* @category
|
|
1396
|
+
* @category Shorthands
|
|
1397
1397
|
*/
|
|
1398
1398
|
mat4.inv = invert;
|
|
1399
1399
|
/**
|
|
1400
1400
|
* Alias for {@link fromTranslation}
|
|
1401
|
-
* @category
|
|
1401
|
+
* @category Shorthands
|
|
1402
1402
|
*/
|
|
1403
1403
|
mat4.translation = fromTranslation;
|
|
1404
1404
|
/**
|
|
1405
1405
|
* Alias for {@link fromRotation}
|
|
1406
|
-
* @category
|
|
1406
|
+
* @category Shorthands
|
|
1407
1407
|
*/
|
|
1408
1408
|
mat4.rotation = fromRotation;
|
|
1409
1409
|
/**
|
|
1410
1410
|
* Alias for {@link fromScaling}
|
|
1411
|
-
* @category
|
|
1411
|
+
* @category Shorthands
|
|
1412
1412
|
*/
|
|
1413
1413
|
mat4.scaling = fromScaling;
|
|
1414
1414
|
})(mat4 || (exports.mat4 = mat4 = {}));
|
package/lib/cjs/quat.d.ts
CHANGED
|
@@ -228,27 +228,27 @@ export declare namespace quat {
|
|
|
228
228
|
function setAxes(view: vec3, right: vec3, up: vec3): quat;
|
|
229
229
|
/**
|
|
230
230
|
* Alias for {@link identity}
|
|
231
|
-
* @category
|
|
231
|
+
* @category Shorthands
|
|
232
232
|
*/
|
|
233
233
|
const id: quat;
|
|
234
234
|
/**
|
|
235
235
|
* Alias for {@link identity}
|
|
236
|
-
* @category
|
|
236
|
+
* @category Shorthands
|
|
237
237
|
*/
|
|
238
238
|
const ident: quat;
|
|
239
239
|
/**
|
|
240
240
|
* Alias for {@link multiply}
|
|
241
|
-
* @category
|
|
241
|
+
* @category Shorthands
|
|
242
242
|
*/
|
|
243
243
|
const mul: typeof multiply;
|
|
244
244
|
/**
|
|
245
245
|
* Alias for {@link squaredLength}
|
|
246
|
-
* @category
|
|
246
|
+
* @category Shorthands
|
|
247
247
|
*/
|
|
248
248
|
const sqrLen: typeof vec4.squaredLength;
|
|
249
249
|
/**
|
|
250
250
|
* Alias for {@link length}
|
|
251
|
-
* @category
|
|
251
|
+
* @category Shorthands
|
|
252
252
|
*/
|
|
253
253
|
const len: typeof vec4.length;
|
|
254
254
|
}
|
package/lib/cjs/quat.js
CHANGED
|
@@ -530,27 +530,27 @@ var quat;
|
|
|
530
530
|
quat.setAxes = setAxes;
|
|
531
531
|
/**
|
|
532
532
|
* Alias for {@link identity}
|
|
533
|
-
* @category
|
|
533
|
+
* @category Shorthands
|
|
534
534
|
*/
|
|
535
535
|
quat.id = quat.identity;
|
|
536
536
|
/**
|
|
537
537
|
* Alias for {@link identity}
|
|
538
|
-
* @category
|
|
538
|
+
* @category Shorthands
|
|
539
539
|
*/
|
|
540
540
|
quat.ident = quat.identity;
|
|
541
541
|
/**
|
|
542
542
|
* Alias for {@link multiply}
|
|
543
|
-
* @category
|
|
543
|
+
* @category Shorthands
|
|
544
544
|
*/
|
|
545
545
|
quat.mul = multiply;
|
|
546
546
|
/**
|
|
547
547
|
* Alias for {@link squaredLength}
|
|
548
|
-
* @category
|
|
548
|
+
* @category Shorthands
|
|
549
549
|
*/
|
|
550
550
|
quat.sqrLen = quat.squaredLength;
|
|
551
551
|
/**
|
|
552
552
|
* Alias for {@link length}
|
|
553
|
-
* @category
|
|
553
|
+
* @category Shorthands
|
|
554
554
|
*/
|
|
555
555
|
quat.len = quat.length;
|
|
556
556
|
})(quat || (exports.quat = quat = {}));
|
package/lib/cjs/scalar.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ export declare namespace scalar {
|
|
|
69
69
|
*/
|
|
70
70
|
function inverseLerp(a: number, b: number, t: number): number;
|
|
71
71
|
/**
|
|
72
|
-
* Takes the value in the range `(omin, omax)` and shifts it to the corresponding value in the new range `(nmin, nmax)`. The function clamps the given value the range `(omin, omax)` before fitting, so the resulting value will be guaranteed to be in the range `(nmin, nmax)`. To avoid clamping use efit instead.
|
|
72
|
+
* Takes the value in the range `(omin, omax)` and shifts it to the corresponding value in the new range `(nmin, nmax)`. The function clamps the given value the range `(omin, omax)` before fitting, so the resulting value will be guaranteed to be in the range `(nmin, nmax)`. To avoid clamping use {@link efit} instead. If `omin` and `omax` are the same, the function returns the average of `nmin` and `nmax`.
|
|
73
73
|
* @see https://www.sidefx.com/docs/houdini/vex/functions/fit.html
|
|
74
74
|
* @param value
|
|
75
75
|
* @param omin
|
|
@@ -80,7 +80,7 @@ export declare namespace scalar {
|
|
|
80
80
|
*/
|
|
81
81
|
function fit(value: number, omin: number, omax: number, nmin: number, nmax: number): number;
|
|
82
82
|
/**
|
|
83
|
-
* Takes the value in the range `(omin, omax)` and shifts it to the corresponding value in the new range `(nmin, nmax)`. Unlike `fit`, this function does not clamp values to the given range.
|
|
83
|
+
* Takes the value in the range `(omin, omax)` and shifts it to the corresponding value in the new range `(nmin, nmax)`. Unlike `fit`, this function does not clamp values to the given range. If `omin` and `omax` are the same, the function returns the average of `nmin` and `nmax`.
|
|
84
84
|
* @see https://www.sidefx.com/docs/houdini/vex/functions/fit.html
|
|
85
85
|
* @param value
|
|
86
86
|
* @param omin
|
|
@@ -139,68 +139,68 @@ export declare namespace scalar {
|
|
|
139
139
|
function equals(a: number, b: number): boolean;
|
|
140
140
|
/**
|
|
141
141
|
* Alias for {@link scalar.subtract}
|
|
142
|
-
* @category
|
|
142
|
+
* @category Shorthands
|
|
143
143
|
*/
|
|
144
144
|
const sub: typeof subtract;
|
|
145
145
|
/**
|
|
146
146
|
* Alias for {@link scalar.multiply}
|
|
147
|
-
* @category
|
|
147
|
+
* @category Shorthands
|
|
148
148
|
*/
|
|
149
149
|
const mul: typeof multiply;
|
|
150
150
|
/**
|
|
151
151
|
* Alias for {@link scalar.divide}
|
|
152
|
-
* @category
|
|
152
|
+
* @category Shorthands
|
|
153
153
|
*/
|
|
154
154
|
const div: typeof divide;
|
|
155
155
|
/**
|
|
156
156
|
* Alias for {@link scalar.average}
|
|
157
|
-
* @category
|
|
157
|
+
* @category Shorthands
|
|
158
158
|
*/
|
|
159
159
|
const avg: typeof average;
|
|
160
160
|
/**
|
|
161
161
|
* Alias for {@link scalar.distance}
|
|
162
|
-
* @category
|
|
162
|
+
* @category Shorthands
|
|
163
163
|
*/
|
|
164
164
|
const dist: typeof distance;
|
|
165
165
|
/**
|
|
166
166
|
* Alias for {@link scalar.length}
|
|
167
|
-
* @category
|
|
167
|
+
* @category Shorthands
|
|
168
168
|
*/
|
|
169
169
|
const len: (x: number) => number;
|
|
170
170
|
/**
|
|
171
171
|
* Alias for {@link scalar.squaredDistance}
|
|
172
|
-
* @category
|
|
172
|
+
* @category Shorthands
|
|
173
173
|
*/
|
|
174
174
|
const sqrDist: typeof squaredDistance;
|
|
175
175
|
/**
|
|
176
176
|
* Alias for {@link scalar.squaredLength}
|
|
177
|
-
* @category
|
|
177
|
+
* @category Shorthands
|
|
178
178
|
*/
|
|
179
179
|
const sqrLen: typeof squaredLength;
|
|
180
180
|
/**
|
|
181
181
|
* Alias for {@link scalar.invert}
|
|
182
182
|
* @see https://registry.khronos.org/OpenGL-Refpages/gl4/html/mix.xhtml
|
|
183
|
-
* @category
|
|
183
|
+
* @category Shorthands
|
|
184
184
|
*/
|
|
185
185
|
const mix: typeof lerp;
|
|
186
186
|
/**
|
|
187
187
|
* Alias for {@link scalar.inverseLerp}
|
|
188
|
-
* @category
|
|
188
|
+
* @category Shorthands
|
|
189
189
|
*/
|
|
190
190
|
const invlerp: typeof inverseLerp;
|
|
191
191
|
/**
|
|
192
192
|
* Alias for {@link scalar.radians}
|
|
193
|
-
* @category
|
|
193
|
+
* @category Shorthands
|
|
194
194
|
*/
|
|
195
195
|
const rad: typeof radians;
|
|
196
196
|
/**
|
|
197
197
|
* Alias for {@link scalar.degrees}
|
|
198
|
-
* @category
|
|
198
|
+
* @category Shorthands
|
|
199
199
|
*/
|
|
200
200
|
const deg: typeof degrees;
|
|
201
201
|
/**
|
|
202
202
|
* Alias for {@link scalar.inverseSqrt}
|
|
203
|
-
* @category
|
|
203
|
+
* @category Shorthands
|
|
204
204
|
*/
|
|
205
205
|
const invsqrt: typeof inverseSqrt;
|
|
206
206
|
}
|