@ac-kit/math-linear 0.2.1 → 0.4.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/CHANGELOG.md +337 -0
- package/README.md +232 -16
- package/dist/_brand.d.ts +14 -0
- package/dist/_brand.d.ts.map +1 -0
- package/dist/_brand.js +2 -0
- package/dist/_brand.js.map +1 -0
- package/dist/_invert.d.ts +214 -0
- package/dist/_invert.d.ts.map +1 -0
- package/dist/_invert.js +884 -0
- package/dist/_invert.js.map +1 -0
- package/dist/_slerp.d.ts +29 -0
- package/dist/_slerp.d.ts.map +1 -1
- package/dist/_slerp.js +103 -0
- package/dist/_slerp.js.map +1 -1
- package/dist/_strided-range.d.ts +23 -0
- package/dist/_strided-range.d.ts.map +1 -0
- package/dist/_strided-range.js +75 -0
- package/dist/_strided-range.js.map +1 -0
- package/dist/_trs.d.ts +38 -0
- package/dist/_trs.d.ts.map +1 -0
- package/dist/_trs.js +132 -0
- package/dist/_trs.js.map +1 -0
- package/dist/affine2-array.d.ts +53 -0
- package/dist/affine2-array.d.ts.map +1 -0
- package/dist/affine2-array.js +107 -0
- package/dist/affine2-array.js.map +1 -0
- package/dist/affine2-componentwise.d.ts +28 -0
- package/dist/affine2-componentwise.d.ts.map +1 -0
- package/dist/affine2-componentwise.js +66 -0
- package/dist/affine2-componentwise.js.map +1 -0
- package/dist/affine2.d.ts +156 -0
- package/dist/affine2.d.ts.map +1 -0
- package/dist/affine2.js +437 -0
- package/dist/affine2.js.map +1 -0
- package/dist/affine3-array.d.ts +53 -0
- package/dist/affine3-array.d.ts.map +1 -0
- package/dist/affine3-array.js +137 -0
- package/dist/affine3-array.js.map +1 -0
- package/dist/affine3-componentwise.d.ts +32 -0
- package/dist/affine3-componentwise.d.ts.map +1 -0
- package/dist/affine3-componentwise.js +100 -0
- package/dist/affine3-componentwise.js.map +1 -0
- package/dist/affine3.d.ts +205 -0
- package/dist/affine3.d.ts.map +1 -0
- package/dist/affine3.js +792 -0
- package/dist/affine3.js.map +1 -0
- package/dist/checked/index.d.ts +35 -0
- package/dist/checked/index.d.ts.map +1 -0
- package/dist/checked/index.js +58 -0
- package/dist/checked/index.js.map +1 -0
- package/dist/euler.d.ts +65 -0
- package/dist/euler.d.ts.map +1 -0
- package/dist/euler.js +217 -0
- package/dist/euler.js.map +1 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -1
- package/dist/kl-activations.d.ts.map +1 -1
- package/dist/kl-activations.js +4 -3
- package/dist/kl-activations.js.map +1 -1
- package/dist/mat2x2-array.d.ts +36 -0
- package/dist/mat2x2-array.d.ts.map +1 -0
- package/dist/mat2x2-array.js +71 -0
- package/dist/mat2x2-array.js.map +1 -0
- package/dist/mat2x2-componentwise.d.ts +86 -0
- package/dist/mat2x2-componentwise.d.ts.map +1 -0
- package/dist/mat2x2-componentwise.js +199 -0
- package/dist/mat2x2-componentwise.js.map +1 -0
- package/dist/mat2x2.d.ts +79 -25
- package/dist/mat2x2.d.ts.map +1 -1
- package/dist/mat2x2.js +192 -93
- package/dist/mat2x2.js.map +1 -1
- package/dist/mat3x3-array.d.ts +36 -0
- package/dist/mat3x3-array.d.ts.map +1 -0
- package/dist/mat3x3-array.js +91 -0
- package/dist/mat3x3-array.js.map +1 -0
- package/dist/mat3x3-componentwise.d.ts +86 -0
- package/dist/mat3x3-componentwise.d.ts.map +1 -0
- package/dist/mat3x3-componentwise.js +299 -0
- package/dist/mat3x3-componentwise.js.map +1 -0
- package/dist/mat3x3.d.ts +153 -48
- package/dist/mat3x3.d.ts.map +1 -1
- package/dist/mat3x3.js +470 -192
- package/dist/mat3x3.js.map +1 -1
- package/dist/mat4x4-array.d.ts +46 -0
- package/dist/mat4x4-array.d.ts.map +1 -0
- package/dist/mat4x4-array.js +133 -0
- package/dist/mat4x4-array.js.map +1 -0
- package/dist/mat4x4-componentwise.d.ts +87 -0
- package/dist/mat4x4-componentwise.d.ts.map +1 -0
- package/dist/mat4x4-componentwise.js +434 -0
- package/dist/mat4x4-componentwise.js.map +1 -0
- package/dist/mat4x4.d.ts +221 -67
- package/dist/mat4x4.d.ts.map +1 -1
- package/dist/mat4x4.js +972 -334
- package/dist/mat4x4.js.map +1 -1
- package/dist/projection.d.ts +113 -0
- package/dist/projection.d.ts.map +1 -0
- package/dist/projection.js +418 -0
- package/dist/projection.js.map +1 -0
- package/dist/quaternion-array.d.ts +47 -0
- package/dist/quaternion-array.d.ts.map +1 -0
- package/dist/quaternion-array.js +86 -0
- package/dist/quaternion-array.js.map +1 -0
- package/dist/quaternion.d.ts +106 -22
- package/dist/quaternion.d.ts.map +1 -1
- package/dist/quaternion.js +253 -182
- package/dist/quaternion.js.map +1 -1
- package/dist/transform.d.ts +220 -0
- package/dist/transform.d.ts.map +1 -0
- package/dist/transform.js +412 -0
- package/dist/transform.js.map +1 -0
- package/dist/tridiagonal.d.ts +52 -0
- package/dist/tridiagonal.d.ts.map +1 -0
- package/dist/tridiagonal.js +90 -0
- package/dist/tridiagonal.js.map +1 -0
- package/dist/upload.d.ts +55 -0
- package/dist/upload.d.ts.map +1 -0
- package/dist/upload.js +129 -0
- package/dist/upload.js.map +1 -0
- package/dist/vec2-array-componentwise.d.ts +207 -0
- package/dist/vec2-array-componentwise.d.ts.map +1 -0
- package/dist/vec2-array-componentwise.js +472 -0
- package/dist/vec2-array-componentwise.js.map +1 -0
- package/dist/vec2-array.d.ts +53 -0
- package/dist/vec2-array.d.ts.map +1 -0
- package/dist/vec2-array.js +123 -0
- package/dist/vec2-array.js.map +1 -0
- package/dist/vec2-componentwise.d.ts +311 -0
- package/dist/vec2-componentwise.d.ts.map +1 -0
- package/dist/vec2-componentwise.js +542 -0
- package/dist/vec2-componentwise.js.map +1 -0
- package/dist/vec2.d.ts +97 -82
- package/dist/vec2.d.ts.map +1 -1
- package/dist/vec2.js +121 -216
- package/dist/vec2.js.map +1 -1
- package/dist/vec3-array-componentwise.d.ts +207 -0
- package/dist/vec3-array-componentwise.d.ts.map +1 -0
- package/dist/vec3-array-componentwise.js +510 -0
- package/dist/vec3-array-componentwise.js.map +1 -0
- package/dist/vec3-array.d.ts +102 -0
- package/dist/vec3-array.d.ts.map +1 -0
- package/dist/vec3-array.js +299 -0
- package/dist/vec3-array.js.map +1 -0
- package/dist/vec3-componentwise.d.ts +310 -0
- package/dist/vec3-componentwise.d.ts.map +1 -0
- package/dist/vec3-componentwise.js +594 -0
- package/dist/vec3-componentwise.js.map +1 -0
- package/dist/vec3.d.ts +177 -87
- package/dist/vec3.d.ts.map +1 -1
- package/dist/vec3.js +391 -272
- package/dist/vec3.js.map +1 -1
- package/dist/vec4-array-componentwise.d.ts +198 -0
- package/dist/vec4-array-componentwise.d.ts.map +1 -0
- package/dist/vec4-array-componentwise.js +521 -0
- package/dist/vec4-array-componentwise.js.map +1 -0
- package/dist/vec4-array.d.ts +12 -0
- package/dist/vec4-array.d.ts.map +1 -0
- package/dist/vec4-array.js +43 -0
- package/dist/vec4-array.js.map +1 -0
- package/dist/vec4-componentwise.d.ts +299 -0
- package/dist/vec4-componentwise.d.ts.map +1 -0
- package/dist/vec4-componentwise.js +637 -0
- package/dist/vec4-componentwise.js.map +1 -0
- package/dist/vec4.d.ts +59 -53
- package/dist/vec4.d.ts.map +1 -1
- package/dist/vec4.js +74 -249
- package/dist/vec4.js.map +1 -1
- package/dist/view-basis.d.ts +15 -0
- package/dist/view-basis.d.ts.map +1 -0
- package/dist/view-basis.js +29 -0
- package/dist/view-basis.js.map +1 -0
- package/dist/viewport.d.ts +114 -0
- package/dist/viewport.d.ts.map +1 -0
- package/dist/viewport.js +250 -0
- package/dist/viewport.js.map +1 -0
- package/package.json +19 -9
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// Generated from scripts/templates/value-array.liquid by scripts/generate-componentwise.ts. Do not edit.
|
|
2
|
+
import { assertInteger } from "@ac-kit/core";
|
|
3
|
+
/**
|
|
4
|
+
* Creates a buffer for `count` affine2 elements: a zero-filled `Float64Array`
|
|
5
|
+
* of `count × 6` numbers, element `i` at `[i·6, i·6 + 6)`, a zero element being
|
|
6
|
+
* the all-zero transform (use {@link affine2Store} with the identity to fill it
|
|
7
|
+
* with identities). Allocates.
|
|
8
|
+
*
|
|
9
|
+
* @throws {RangeError} When `count` is not a non-negative safe integer or
|
|
10
|
+
* `count × 6` is not a valid typed array length.
|
|
11
|
+
*/
|
|
12
|
+
export function affine2ArrayCreate(count) {
|
|
13
|
+
assertInteger(count, "affine2ArrayCreate: count", 0);
|
|
14
|
+
return new Float64Array(count * 6);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Writes element `index` of `array`, the numbers at `[index·6, index·6 + 6)`,
|
|
18
|
+
* into `out`. Each component is written as `+array[i]`, so an index past the
|
|
19
|
+
* end of `array` gives `NaN`, never `undefined`: the transform stays clean
|
|
20
|
+
* whatever the caller does. Checking the index is the job of the checked
|
|
21
|
+
* layer.
|
|
22
|
+
*
|
|
23
|
+
* The transform is copied: it is never a view of `array`. O(1).
|
|
24
|
+
*/
|
|
25
|
+
export function affine2Load(out, array, index) {
|
|
26
|
+
const base = index * 6;
|
|
27
|
+
// The `!` is for the compiler: past the end `+undefined` is `NaN`.
|
|
28
|
+
out[0] = +array[base];
|
|
29
|
+
out[1] = +array[base + 1];
|
|
30
|
+
out[2] = +array[base + 2];
|
|
31
|
+
out[3] = +array[base + 3];
|
|
32
|
+
out[4] = +array[base + 4];
|
|
33
|
+
out[5] = +array[base + 5];
|
|
34
|
+
return out;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Writes `value` into `array` as element `index`, at `[index·6, index·6 + 6)`.
|
|
38
|
+
* An element past the end of `array` writes nothing, as a typed array drops an
|
|
39
|
+
* out-of-range write. O(1).
|
|
40
|
+
*/
|
|
41
|
+
export function affine2Store(array, index, value) {
|
|
42
|
+
const base = index * 6;
|
|
43
|
+
array[base] = value[0];
|
|
44
|
+
array[base + 1] = value[1];
|
|
45
|
+
array[base + 2] = value[2];
|
|
46
|
+
array[base + 3] = value[3];
|
|
47
|
+
array[base + 4] = value[4];
|
|
48
|
+
array[base + 5] = value[5];
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Like {@link affine2Load} for interleaved data: element `index` starts at
|
|
52
|
+
* `offset + index·stride`, both counted in numbers, and its 6 components follow
|
|
53
|
+
* one another. An index past the end gives `NaN` components. O(1).
|
|
54
|
+
*/
|
|
55
|
+
export function affine2LoadStrided(out, array, offset, stride, index) {
|
|
56
|
+
const base = offset + index * stride;
|
|
57
|
+
// The `!` is for the compiler: past the end `+undefined` is `NaN`.
|
|
58
|
+
out[0] = +array[base];
|
|
59
|
+
out[1] = +array[base + 1];
|
|
60
|
+
out[2] = +array[base + 2];
|
|
61
|
+
out[3] = +array[base + 3];
|
|
62
|
+
out[4] = +array[base + 4];
|
|
63
|
+
out[5] = +array[base + 5];
|
|
64
|
+
return out;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Like {@link affine2Store} for interleaved data: element `index` starts at
|
|
68
|
+
* `offset + index·stride`, both counted in numbers. A component past the end of
|
|
69
|
+
* `array` writes nothing. O(1).
|
|
70
|
+
*/
|
|
71
|
+
export function affine2StoreStrided(array, offset, stride, index, value) {
|
|
72
|
+
const base = offset + index * stride;
|
|
73
|
+
array[base] = value[0];
|
|
74
|
+
array[base + 1] = value[1];
|
|
75
|
+
array[base + 2] = value[2];
|
|
76
|
+
array[base + 3] = value[3];
|
|
77
|
+
array[base + 4] = value[4];
|
|
78
|
+
array[base + 5] = value[5];
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Narrows `value` to binary32 and writes its 6 components into `array` from
|
|
82
|
+
* element `offset` on, unrolled: the way to stage a vertex, instance or uniform
|
|
83
|
+
* value for the GPU, where `array.set` costs several times as much for one
|
|
84
|
+
* value. A component past the end of `array` writes nothing. O(1).
|
|
85
|
+
*/
|
|
86
|
+
export function affine2StoreFloat32(array, offset, value) {
|
|
87
|
+
array[offset] = value[0];
|
|
88
|
+
array[offset + 1] = value[1];
|
|
89
|
+
array[offset + 2] = value[2];
|
|
90
|
+
array[offset + 3] = value[3];
|
|
91
|
+
array[offset + 4] = value[4];
|
|
92
|
+
array[offset + 5] = value[5];
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Whether every number of `array` is finite: the check for a buffer of affine2
|
|
96
|
+
* elements read from untrusted data or about to be uploaded. The length is not
|
|
97
|
+
* required to be a multiple of 6 (see `assertFiniteBuffer` for that). O(n).
|
|
98
|
+
*/
|
|
99
|
+
export function affine2ArrayIsFinite(array) {
|
|
100
|
+
for (let index = 0; index < array.length; index++) {
|
|
101
|
+
if (!Number.isFinite(array[index])) {
|
|
102
|
+
return false;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return true;
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=affine2-array.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"affine2-array.js","sourceRoot":"","sources":["../src/affine2-array.ts"],"names":[],"mappings":"AAAA,yGAAyG;AAEzG,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAI7C;;;;;;;;GAQG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAAa;IAC/C,aAAa,CAAC,KAAK,EAAE,2BAA2B,EAAE,CAAC,CAAC,CAAC;IACrD,OAAO,IAAI,YAAY,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;AACpC,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,WAAW,CAC1B,GAAY,EACZ,KAAmB,EACnB,KAAa;IAEb,MAAM,IAAI,GAAG,KAAK,GAAG,CAAC,CAAC;IACvB,mEAAmE;IACnE,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAE,CAAC;IACvB,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAA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,CAAC,CAAC;IACzB,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IAC7B,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IAC7B,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IAC7B,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IAC7B,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;AAC9B,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,KAAmB;IACvD,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;QACnD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;YACpC,OAAO,KAAK,CAAC;QACd,CAAC;IACF,CAAC;IACD,OAAO,IAAI,CAAC;AACb,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type IsCloseToOptions } from "@ac-kit/core";
|
|
2
|
+
import type { ReadonlyAffine2, Affine2 } from "./affine2.js";
|
|
3
|
+
/**
|
|
4
|
+
* Writes the entries in storage order into `out`: the columns of the matrix one
|
|
5
|
+
* after the other, `a, b, c, d, e, f`.
|
|
6
|
+
*/
|
|
7
|
+
export declare function affine2Set(out: Affine2, m00: number, m10: number, m01: number, m11: number, m02: number, m12: number): Affine2;
|
|
8
|
+
/** Writes a copy of `a` into `out`. `out` may be `a`. */
|
|
9
|
+
export declare function affine2Copy(out: Affine2, a: ReadonlyAffine2): Affine2;
|
|
10
|
+
/** Writes the identity transform `[1, 0, 0, 1, 0, 0]` into `out`. */
|
|
11
|
+
export declare function affine2Identity(out: Affine2): Affine2;
|
|
12
|
+
/**
|
|
13
|
+
* Exact entry-wise equality: `−0` equals `+0`, and `NaN` equals nothing, itself
|
|
14
|
+
* included. See {@link affine2IsClose} for a tolerant test.
|
|
15
|
+
*/
|
|
16
|
+
export declare function affine2Equals(a: ReadonlyAffine2, b: ReadonlyAffine2): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Entry-wise approximate equality, each pair compared by `@ac-kit/core`'s
|
|
19
|
+
* `isCloseTo` with `options`: none means exact.
|
|
20
|
+
*
|
|
21
|
+
* Not transitive, so it is not an equality in the sense a `Set` or `Map` needs,
|
|
22
|
+
* and never a basis for ordering — use {@link affine2Equals} there. The
|
|
23
|
+
* tolerance is required: a transform carries no units of its own, so only the
|
|
24
|
+
* caller knows what counts as close (and the same tolerance covers a matrix
|
|
25
|
+
* entry and a translation).
|
|
26
|
+
*/
|
|
27
|
+
export declare function affine2IsClose(a: ReadonlyAffine2, b: ReadonlyAffine2, options: IsCloseToOptions): boolean;
|
|
28
|
+
//# sourceMappingURL=affine2-componentwise.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"affine2-componentwise.d.ts","sourceRoot":"","sources":["../src/affine2-componentwise.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhE,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE7D;;;GAGG;AACH,wBAAgB,UAAU,CACzB,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,GACT,OAAO,CAQT;AAED,yDAAyD;AACzD,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,eAAe,GAAG,OAAO,CAQrE;AAED,qEAAqE;AACrE,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAQrD;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,eAAe,EAAE,CAAC,EAAE,eAAe,GAAG,OAAO,CAS7E;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC7B,CAAC,EAAE,eAAe,EAClB,CAAC,EAAE,eAAe,EAClB,OAAO,EAAE,gBAAgB,GACvB,OAAO,CAST"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// Generated from scripts/templates/affine-componentwise.liquid by scripts/generate-componentwise.ts. Do not edit.
|
|
2
|
+
import { isCloseTo } from "@ac-kit/core";
|
|
3
|
+
/**
|
|
4
|
+
* Writes the entries in storage order into `out`: the columns of the matrix one
|
|
5
|
+
* after the other, `a, b, c, d, e, f`.
|
|
6
|
+
*/
|
|
7
|
+
export function affine2Set(out, m00, m10, m01, m11, m02, m12) {
|
|
8
|
+
out[0] = m00;
|
|
9
|
+
out[1] = m10;
|
|
10
|
+
out[2] = m01;
|
|
11
|
+
out[3] = m11;
|
|
12
|
+
out[4] = m02;
|
|
13
|
+
out[5] = m12;
|
|
14
|
+
return out;
|
|
15
|
+
}
|
|
16
|
+
/** Writes a copy of `a` into `out`. `out` may be `a`. */
|
|
17
|
+
export function affine2Copy(out, a) {
|
|
18
|
+
out[0] = a[0];
|
|
19
|
+
out[1] = a[1];
|
|
20
|
+
out[2] = a[2];
|
|
21
|
+
out[3] = a[3];
|
|
22
|
+
out[4] = a[4];
|
|
23
|
+
out[5] = a[5];
|
|
24
|
+
return out;
|
|
25
|
+
}
|
|
26
|
+
/** Writes the identity transform `[1, 0, 0, 1, 0, 0]` into `out`. */
|
|
27
|
+
export function affine2Identity(out) {
|
|
28
|
+
out[0] = 1;
|
|
29
|
+
out[1] = 0;
|
|
30
|
+
out[2] = 0;
|
|
31
|
+
out[3] = 1;
|
|
32
|
+
out[4] = 0;
|
|
33
|
+
out[5] = 0;
|
|
34
|
+
return out;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Exact entry-wise equality: `−0` equals `+0`, and `NaN` equals nothing, itself
|
|
38
|
+
* included. See {@link affine2IsClose} for a tolerant test.
|
|
39
|
+
*/
|
|
40
|
+
export function affine2Equals(a, b) {
|
|
41
|
+
return (a[0] === b[0] &&
|
|
42
|
+
a[1] === b[1] &&
|
|
43
|
+
a[2] === b[2] &&
|
|
44
|
+
a[3] === b[3] &&
|
|
45
|
+
a[4] === b[4] &&
|
|
46
|
+
a[5] === b[5]);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Entry-wise approximate equality, each pair compared by `@ac-kit/core`'s
|
|
50
|
+
* `isCloseTo` with `options`: none means exact.
|
|
51
|
+
*
|
|
52
|
+
* Not transitive, so it is not an equality in the sense a `Set` or `Map` needs,
|
|
53
|
+
* and never a basis for ordering — use {@link affine2Equals} there. The
|
|
54
|
+
* tolerance is required: a transform carries no units of its own, so only the
|
|
55
|
+
* caller knows what counts as close (and the same tolerance covers a matrix
|
|
56
|
+
* entry and a translation).
|
|
57
|
+
*/
|
|
58
|
+
export function affine2IsClose(a, b, options) {
|
|
59
|
+
return (isCloseTo(a[0], b[0], options) &&
|
|
60
|
+
isCloseTo(a[1], b[1], options) &&
|
|
61
|
+
isCloseTo(a[2], b[2], options) &&
|
|
62
|
+
isCloseTo(a[3], b[3], options) &&
|
|
63
|
+
isCloseTo(a[4], b[4], options) &&
|
|
64
|
+
isCloseTo(a[5], b[5], options));
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=affine2-componentwise.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"affine2-componentwise.js","sourceRoot":"","sources":["../src/affine2-componentwise.ts"],"names":[],"mappings":"AAAA,kHAAkH;AAElH,OAAO,EAAE,SAAS,EAAyB,MAAM,cAAc,CAAC;AAIhE;;;GAGG;AACH,MAAM,UAAU,UAAU,CACzB,GAAY,EACZ,GAAW,EAC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
import type { ReadonlyVec2 } from "./vec2.js";
|
|
4
|
+
/**
|
|
5
|
+
* A 2D affine transform in the order of Canvas, SVG and `DOMMatrix`, `a, b, c,
|
|
6
|
+
* d, e, f`: the columns `(a, b)`, `(c, d)` and `(e, f)` of the 3 × 3 matrix
|
|
7
|
+
* whose bottom row is `0, 0, 1` and is not stored, so `[a, b, c, d, e, f]` is
|
|
8
|
+
* `[m00, m10, m01, m11, m02, m12]`, the translation in the last two. A plain
|
|
9
|
+
* array of six binary64 numbers carrying a type-level brand; a buffer of them
|
|
10
|
+
* is a `Float64Array` of `count × 6` numbers.
|
|
11
|
+
*
|
|
12
|
+
* Only {@link affine2Create}, {@link affine2Of}, {@link affine2Clone},
|
|
13
|
+
* {@link affine2FromArray} and the functions that write an `out` make one; see
|
|
14
|
+
* {@link Vec3} for the rules that bind callers who bypass the types.
|
|
15
|
+
*/
|
|
16
|
+
export type Affine2 = [
|
|
17
|
+
m00: number,
|
|
18
|
+
m10: number,
|
|
19
|
+
m01: number,
|
|
20
|
+
m11: number,
|
|
21
|
+
m02: number,
|
|
22
|
+
m12: number
|
|
23
|
+
] & Brand_<"Affine2">;
|
|
24
|
+
/** An {@link Affine2} that is only read. */
|
|
25
|
+
export type ReadonlyAffine2 = readonly [
|
|
26
|
+
m00: number,
|
|
27
|
+
m10: number,
|
|
28
|
+
m01: number,
|
|
29
|
+
m11: number,
|
|
30
|
+
m02: number,
|
|
31
|
+
m12: number
|
|
32
|
+
] & Brand_<"Affine2">;
|
|
33
|
+
/**
|
|
34
|
+
* Creates the identity transform `[1, 0, 0, 1, 0, 0]`.
|
|
35
|
+
*
|
|
36
|
+
* Allocates; keep it out of hot loops.
|
|
37
|
+
*/
|
|
38
|
+
export declare function affine2Create(): Affine2;
|
|
39
|
+
/**
|
|
40
|
+
* Creates the transform with the entries in storage order, the columns of the
|
|
41
|
+
* matrix one after the other: `a, b, c, d, e, f`.
|
|
42
|
+
*
|
|
43
|
+
* Allocates; keep it out of hot loops.
|
|
44
|
+
*/
|
|
45
|
+
export declare function affine2Of(m00: number, m10: number, m01: number, m11: number, m02: number, m12: number): Affine2;
|
|
46
|
+
/**
|
|
47
|
+
* Creates a copy of `a`. Like every creator it starts from a clean array.
|
|
48
|
+
*
|
|
49
|
+
* Allocates; keep it out of hot loops.
|
|
50
|
+
*/
|
|
51
|
+
export declare function affine2Clone(a: ReadonlyAffine2): Affine2;
|
|
52
|
+
/**
|
|
53
|
+
* The checked way in from untyped data (JSON, messages, arrays of unknown
|
|
54
|
+
* origin): `source[offset … offset + 6)` copied into `out`, each element that
|
|
55
|
+
* is not a number written as `NaN`, an index past the end of `source` too, so
|
|
56
|
+
* `out` never holds a non-number. A cold path. O(1).
|
|
57
|
+
*
|
|
58
|
+
* `source` may be `out` itself: the six elements are read before the first
|
|
59
|
+
* write.
|
|
60
|
+
*
|
|
61
|
+
* @param out The transform to fill.
|
|
62
|
+
* @param source The array to read, of any length and any content.
|
|
63
|
+
* @param offset The index of the first entry in `source`.
|
|
64
|
+
* @returns `out`.
|
|
65
|
+
*/
|
|
66
|
+
export declare function affine2FromArray(out: Affine2, source: ArrayLike<number>, offset?: number): Affine2;
|
|
67
|
+
/**
|
|
68
|
+
* Whether every entry is a finite number: the check to run after parsing
|
|
69
|
+
* untrusted data or before an upload, as operations never check. An entry that
|
|
70
|
+
* is not a number at all counts as not finite.
|
|
71
|
+
*/
|
|
72
|
+
export declare function affine2IsFinite(a: ReadonlyAffine2): boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Writes the composition `a · b` into `out`: `b` is applied first, then `a`.
|
|
75
|
+
* Not commutative. Plain arithmetic, straight-line. `out` may be `a` or `b`.
|
|
76
|
+
*/
|
|
77
|
+
export declare function affine2Multiply(out: Affine2, a: ReadonlyAffine2, b: ReadonlyAffine2): Affine2;
|
|
78
|
+
/**
|
|
79
|
+
* The determinant of the linear part, `a · d − b · c`: the signed area scale of
|
|
80
|
+
* the transform, negative for a reflection.
|
|
81
|
+
*/
|
|
82
|
+
export declare function affine2Determinant(a: ReadonlyAffine2): number;
|
|
83
|
+
/**
|
|
84
|
+
* Writes the inverse transform of `a` into `out` and returns `true`. When the
|
|
85
|
+
* determinant is zero or not finite, or the inverse does not fit in binary64,
|
|
86
|
+
* the transform has no usable inverse: `out` is filled with `NaN` and the
|
|
87
|
+
* result is `false`: `true` always comes with a finite `out`, never a stale or
|
|
88
|
+
* partial transform, and nothing throws. A transform whose linear part has very
|
|
89
|
+
* large or very small entries, whose determinant or cofactors overflow or
|
|
90
|
+
* underflow, is inverted all the same (a uniform scale of `1e-200` gives
|
|
91
|
+
* `1e200`; scales of `2^600` and `2^599` with a translation of
|
|
92
|
+
* `Number.MAX_VALUE` invert too), by inverting the linear part as
|
|
93
|
+
* {@link mat2x2Invert} does and taking the translation from that unscaled
|
|
94
|
+
* inverse. Plain arithmetic (the adjugate over the determinant). Each
|
|
95
|
+
* translation component is `−B · t` for the returned linear part `B` and the
|
|
96
|
+
* translation `t`: in plain arithmetic when a forward error bound keeps it
|
|
97
|
+
* within `2^-41` of itself, and otherwise correctly rounded (`dotExactInto`),
|
|
98
|
+
* however its terms cancel (`[[1, −(1 + 2^-52)], [0, 1]]` with a translation of
|
|
99
|
+
* `(−(1 + 2^-51), 1 + 2^-52)` gives `−2^-104`, not `0`). Whether it overflows
|
|
100
|
+
* is decided on the exact `−A⁻¹ · t`, never on the rounded `B`: a component
|
|
101
|
+
* that a rigorous bound cannot keep from the overflow threshold is settled in
|
|
102
|
+
* exact arithmetic, and is then `−A⁻¹ · t` rounded once (a scale of `161/256`
|
|
103
|
+
* with a translation of `161 · 2^1016` is refused, its exact `−2^1024`
|
|
104
|
+
* overflowing where `−B · t` rounds to `−Number.MAX_VALUE`). `out` may be `a`.
|
|
105
|
+
*/
|
|
106
|
+
export declare function affine2Invert(out: Affine2, a: ReadonlyAffine2): boolean;
|
|
107
|
+
/** Writes the translation by `translation` into `out`. */
|
|
108
|
+
export declare function affine2FromTranslation(out: Affine2, translation: ReadonlyVec2): Affine2;
|
|
109
|
+
/** Writes the scale `diag(scale)` into `out`. */
|
|
110
|
+
export declare function affine2FromScale(out: Affine2, scale: ReadonlyVec2): Affine2;
|
|
111
|
+
/**
|
|
112
|
+
* Writes the rotation by `angle` radians, counter-clockwise with `y` up (so
|
|
113
|
+
* clockwise on a screen with `y` down), about the origin into `out`: `[cos,
|
|
114
|
+
* sin, −sin, cos, 0, 0]`.
|
|
115
|
+
*/
|
|
116
|
+
export declare function affine2FromRotation(out: Affine2, angle: number): Affine2;
|
|
117
|
+
/**
|
|
118
|
+
* Writes `T(center) · S(scale) · T(−center)` into `out`: the scale that leaves
|
|
119
|
+
* the point `center` where it is, the zoom about the pointer.
|
|
120
|
+
*/
|
|
121
|
+
export declare function affine2FromScaleAbout(out: Affine2, scale: ReadonlyVec2, center: ReadonlyVec2): Affine2;
|
|
122
|
+
/**
|
|
123
|
+
* Writes `T(center) · R(angle) · T(−center)` into `out`: the rotation by
|
|
124
|
+
* `angle` radians that leaves the point `center` where it is.
|
|
125
|
+
*/
|
|
126
|
+
export declare function affine2FromRotationAbout(out: Affine2, angle: number, center: ReadonlyVec2): Affine2;
|
|
127
|
+
/**
|
|
128
|
+
* Writes the 2D affine of a 3 × 3 matrix into `out`, dropping its bottom row,
|
|
129
|
+
* which an {@link Affine2} does not store (`0, 0, 1` for an affine matrix).
|
|
130
|
+
*/
|
|
131
|
+
export declare function affine2FromMat3x3(out: Affine2, m: ReadonlyMat3x3): Affine2;
|
|
132
|
+
/**
|
|
133
|
+
* Writes `a · T(translation)` into `out`: the translation applied first, in the
|
|
134
|
+
* local space of `a`, as Canvas's `translate`. `out` may be `a`.
|
|
135
|
+
*/
|
|
136
|
+
export declare function affine2Translate(out: Affine2, a: ReadonlyAffine2, translation: ReadonlyVec2): Affine2;
|
|
137
|
+
/**
|
|
138
|
+
* Writes `a · R(angle)` into `out`: the rotation by `angle` radians applied
|
|
139
|
+
* first, in the local space of `a`, as Canvas's `rotate`. `out` may be `a`.
|
|
140
|
+
*/
|
|
141
|
+
export declare function affine2Rotate(out: Affine2, a: ReadonlyAffine2, angle: number): Affine2;
|
|
142
|
+
/**
|
|
143
|
+
* Writes `a · S(scale)` into `out`: the scale applied first, in the local space
|
|
144
|
+
* of `a`, as Canvas's `scale`. `out` may be `a`.
|
|
145
|
+
*/
|
|
146
|
+
export declare function affine2Scale(out: Affine2, a: ReadonlyAffine2, scale: ReadonlyVec2): Affine2;
|
|
147
|
+
/**
|
|
148
|
+
* Writes into `out` the transform that maps the rectangle `[left, right] ×
|
|
149
|
+
* [bottom, top]` to clip space `[−1, 1]²`, `y` up: `left` to −1 and `right` to
|
|
150
|
+
* 1, `bottom` to −1 and `top` to 1. For a pixel canvas with its origin at the
|
|
151
|
+
* top left, `y` down, call it as `(0, width, height, 0)`. An empty rectangle
|
|
152
|
+
* (`left = right` or `bottom = top`) gives non-finite entries and nothing
|
|
153
|
+
* throws, so a canvas of size zero during a resize is harmless.
|
|
154
|
+
*/
|
|
155
|
+
export declare function affine2Orthographic(out: Affine2, left: number, right: number, bottom: number, top: number): Affine2;
|
|
156
|
+
//# sourceMappingURL=affine2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"affine2.d.ts","sourceRoot":"","sources":["../src/affine2.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAY1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE9C;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,OAAO,GAAG;IACrB,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,MAAM;CACX,GACA,MAAM,CAAC,SAAS,CAAC,CAAC;AAEnB,4CAA4C;AAC5C,MAAM,M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