curvy 1.0.1 → 1.0.3
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/curve/cubic2d.d.mts +1 -1
- package/dist/curve/cubic2d.d.ts +1 -1
- package/dist/curve/cubic2d.mjs +4 -4
- package/dist/curve/linear2d.d.mts +1 -1
- package/dist/curve/linear2d.d.ts +1 -1
- package/dist/curve/linear2d.mjs +3 -3
- package/dist/curve/quadratic2d.d.mts +1 -1
- package/dist/curve/quadratic2d.d.ts +1 -1
- package/dist/curve/quadratic2d.mjs +4 -4
- package/dist/interval.mjs +1 -1
- package/dist/matrix/matrix2x2.d.mts +1 -1
- package/dist/matrix/matrix2x2.d.ts +1 -1
- package/dist/matrix/matrix2x2.mjs +3 -3
- package/dist/matrix/matrix3x3.d.mts +1 -1
- package/dist/matrix/matrix3x3.d.ts +1 -1
- package/dist/matrix/matrix3x3.mjs +5 -5
- package/dist/matrix/matrix4x4.d.mts +1 -1
- package/dist/matrix/matrix4x4.d.ts +1 -1
- package/dist/matrix/matrix4x4.mjs +6 -6
- package/dist/path/cubic2d.d.mts +1 -1
- package/dist/path/cubic2d.d.ts +1 -1
- package/dist/path/cubic2d.mjs +5 -4
- package/dist/path/linear2d.d.mts +1 -1
- package/dist/path/linear2d.d.ts +1 -1
- package/dist/path/linear2d.mjs +3 -3
- package/dist/path/quadratic2d.d.mts +1 -1
- package/dist/path/quadratic2d.d.ts +1 -1
- package/dist/path/quadratic2d.mjs +4 -4
- package/dist/polynomial/cubic.d.mts +1 -1
- package/dist/polynomial/cubic.d.ts +1 -1
- package/dist/polynomial/cubic.mjs +3 -3
- package/dist/polynomial/linear.d.mts +1 -1
- package/dist/polynomial/linear.d.ts +1 -1
- package/dist/polynomial/linear.mjs +2 -2
- package/dist/polynomial/quadratic.d.mts +1 -1
- package/dist/polynomial/quadratic.d.ts +1 -1
- package/dist/polynomial/quadratic.mjs +3 -3
- package/dist/shared/{curvy.Cty3LrOR.mjs → curvy.B1zfBfvf.mjs} +6 -2
- package/dist/shared/{curvy.DOSsf40r.mjs → curvy.BPOevbwG.mjs} +7 -8
- package/dist/shared/curvy.BZXFCKQe.mjs +180 -0
- package/dist/shared/{curvy.CT38g_II.d.mts → curvy.Bf5TIk31.d.mts} +1 -1
- package/dist/shared/{curvy.CT38g_II.d.ts → curvy.Bf5TIk31.d.ts} +1 -1
- package/dist/shared/{curvy.DM6AiKbn.mjs → curvy.BrrC9QVB.mjs} +2 -2
- package/dist/shared/{curvy.ChkqgKuv.mjs → curvy.DLOeble8.mjs} +9 -1
- package/dist/shared/{curvy.bvP77ZZm.mjs → curvy.DTco5vku.mjs} +3 -3
- package/dist/shared/{curvy.D7bhnwZy.mjs → curvy.DV4S13Cq.mjs} +3 -2
- package/dist/shared/{curvy.DB7nQmVs.mjs → curvy.O57gIOmy.mjs} +1 -1
- package/dist/shared/{curvy.D7MEXd5g.mjs → curvy.ZjG-q57I.mjs} +2 -2
- package/dist/splines/basis2d.d.mts +38 -0
- package/dist/splines/basis2d.d.ts +38 -0
- package/dist/splines/basis2d.mjs +88 -0
- package/dist/splines/bezier2d.d.mts +9 -4
- package/dist/splines/bezier2d.d.ts +9 -4
- package/dist/splines/bezier2d.mjs +15 -142
- package/dist/splines/cardinal2d.d.mts +49 -0
- package/dist/splines/cardinal2d.d.ts +49 -0
- package/dist/splines/cardinal2d.mjs +122 -0
- package/dist/splines/hermite2d.d.mts +33 -0
- package/dist/splines/hermite2d.d.ts +33 -0
- package/dist/splines/hermite2d.mjs +76 -0
- package/dist/vector/vector2.d.mts +6 -2
- package/dist/vector/vector2.d.ts +6 -2
- package/dist/vector/vector2.mjs +4 -3
- package/dist/vector/vector3.d.mts +6 -2
- package/dist/vector/vector3.d.ts +6 -2
- package/dist/vector/vector3.mjs +4 -3
- package/dist/vector/vector4.d.mts +6 -2
- package/dist/vector/vector4.d.ts +6 -2
- package/dist/vector/vector4.mjs +4 -3
- package/package.json +13 -1
package/dist/curve/cubic2d.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T as TwoDimensional } from '../shared/curvy.Bf5TIk31.mjs';
|
|
2
2
|
import { P as Pipeable } from '../shared/curvy.BN-oFBsc.mjs';
|
|
3
3
|
import { Interval } from '../interval.mjs';
|
|
4
4
|
import { C as CubicPolynomial } from '../shared/curvy.DwHW5Fqt.mjs';
|
package/dist/curve/cubic2d.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T as TwoDimensional } from '../shared/curvy.Bf5TIk31.js';
|
|
2
2
|
import { P as Pipeable } from '../shared/curvy.BN-oFBsc.js';
|
|
3
3
|
import { Interval } from '../interval.js';
|
|
4
4
|
import { C as CubicPolynomial } from '../shared/curvy.CkJRVnqj.js';
|
package/dist/curve/cubic2d.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as dual, r as round, P as Pipeable } from '../shared/curvy.
|
|
1
|
+
import { d as dual, r as round, P as Pipeable } from '../shared/curvy.DLOeble8.mjs';
|
|
2
2
|
import { size, scaleShift, biunit } from '../interval.mjs';
|
|
3
3
|
import { G as GL32_W0, a as GL32_X0, b as GL32_W1, c as GL32_X1, d as GL32_W2, e as GL32_X2, f as GL32_W3, g as GL32_X3, h as GL32_W4, i as GL32_X4, j as GL32_W5, k as GL32_X5, l as GL32_W6, m as GL32_X6, n as GL32_W7, o as GL32_X7, p as GL32_W8, q as GL32_X8, r as GL32_W9, s as GL32_X9, t as GL32_W10, u as GL32_X10, v as GL32_W11, w as GL32_X11, x as GL32_W12, y as GL32_X12, z as GL32_W13, A as GL32_X13, B as GL32_W14, C as GL32_X14, D as GL32_W15, E as GL32_X15 } from '../shared/curvy.DmVFTi0N.mjs';
|
|
4
4
|
import { make, solve as solve$2, derivative as derivative$2 } from '../polynomial/cubic.mjs';
|
|
@@ -6,9 +6,9 @@ import { make as make$2 } from '../polynomial/quadratic.mjs';
|
|
|
6
6
|
import { make as make$1, magnitude, cross } from '../vector/vector2.mjs';
|
|
7
7
|
import { solve as solve$4 } from './linear2d.mjs';
|
|
8
8
|
import { length as length$2, fromPolynomials as fromPolynomials$2, solve as solve$3, derivative as derivative$1 } from './quadratic2d.mjs';
|
|
9
|
-
import '../shared/curvy.
|
|
10
|
-
import '../shared/curvy.
|
|
11
|
-
import '../shared/curvy.
|
|
9
|
+
import '../shared/curvy.ZjG-q57I.mjs';
|
|
10
|
+
import '../shared/curvy.O57gIOmy.mjs';
|
|
11
|
+
import '../shared/curvy.BPOevbwG.mjs';
|
|
12
12
|
import '../polynomial/linear.mjs';
|
|
13
13
|
|
|
14
14
|
const CubicCurve2dTypeId = Symbol("curvy/curve/cubic2d");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T as TwoDimensional } from '../shared/curvy.Bf5TIk31.mjs';
|
|
2
2
|
import { P as Pipeable } from '../shared/curvy.BN-oFBsc.mjs';
|
|
3
3
|
import { Interval } from '../interval.mjs';
|
|
4
4
|
import { L as LinearPolynomial } from '../shared/curvy.DwHW5Fqt.mjs';
|
package/dist/curve/linear2d.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T as TwoDimensional } from '../shared/curvy.Bf5TIk31.js';
|
|
2
2
|
import { P as Pipeable } from '../shared/curvy.BN-oFBsc.js';
|
|
3
3
|
import { Interval } from '../interval.js';
|
|
4
4
|
import { L as LinearPolynomial } from '../shared/curvy.CkJRVnqj.js';
|
package/dist/curve/linear2d.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as dual, r as round, P as Pipeable } from '../shared/curvy.
|
|
1
|
+
import { d as dual, r as round, P as Pipeable } from '../shared/curvy.DLOeble8.mjs';
|
|
2
2
|
import { make, solve as solve$2 } from '../polynomial/linear.mjs';
|
|
3
3
|
import { make as make$1 } from '../vector/vector2.mjs';
|
|
4
|
-
import '../shared/curvy.
|
|
4
|
+
import '../shared/curvy.O57gIOmy.mjs';
|
|
5
5
|
import '../interval.mjs';
|
|
6
|
-
import '../shared/curvy.
|
|
6
|
+
import '../shared/curvy.BPOevbwG.mjs';
|
|
7
7
|
|
|
8
8
|
const LinearCurve2dTypeId = Symbol("curvy/curve/linear2d");
|
|
9
9
|
class LinearCurve2dImpl extends Pipeable {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T as TwoDimensional } from '../shared/curvy.Bf5TIk31.mjs';
|
|
2
2
|
import { P as Pipeable } from '../shared/curvy.BN-oFBsc.mjs';
|
|
3
3
|
import { Interval } from '../interval.mjs';
|
|
4
4
|
import { Q as QuadraticPolynomial } from '../shared/curvy.DwHW5Fqt.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T as TwoDimensional } from '../shared/curvy.Bf5TIk31.js';
|
|
2
2
|
import { P as Pipeable } from '../shared/curvy.BN-oFBsc.js';
|
|
3
3
|
import { Interval } from '../interval.js';
|
|
4
4
|
import { Q as QuadraticPolynomial } from '../shared/curvy.CkJRVnqj.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { d as dual, r as round, P as Pipeable } from '../shared/curvy.
|
|
1
|
+
import { d as dual, r as round, P as Pipeable } from '../shared/curvy.DLOeble8.mjs';
|
|
2
2
|
import { size, scaleShift, biunit } from '../interval.mjs';
|
|
3
3
|
import { G as GL32_W0, a as GL32_X0, b as GL32_W1, c as GL32_X1, d as GL32_W2, e as GL32_X2, f as GL32_W3, g as GL32_X3, h as GL32_W4, i as GL32_X4, j as GL32_W5, k as GL32_X5, l as GL32_W6, m as GL32_X6, n as GL32_W7, o as GL32_X7, p as GL32_W8, q as GL32_X8, r as GL32_W9, s as GL32_X9, t as GL32_W10, u as GL32_X10, v as GL32_W11, w as GL32_X11, x as GL32_W12, y as GL32_X12, z as GL32_W13, A as GL32_X13, B as GL32_W14, C as GL32_X14, D as GL32_W15, E as GL32_X15 } from '../shared/curvy.DmVFTi0N.mjs';
|
|
4
4
|
import { make as make$2 } from '../polynomial/linear.mjs';
|
|
5
5
|
import { make, solve as solve$2, derivative as derivative$2 } from '../polynomial/quadratic.mjs';
|
|
6
6
|
import { make as make$1, magnitude, cross } from '../vector/vector2.mjs';
|
|
7
7
|
import { fromPolynomials as fromPolynomials$2, length as length$2, solve as solve$3, derivative as derivative$3 } from './linear2d.mjs';
|
|
8
|
-
import '../shared/curvy.
|
|
9
|
-
import '../shared/curvy.
|
|
10
|
-
import '../shared/curvy.
|
|
8
|
+
import '../shared/curvy.O57gIOmy.mjs';
|
|
9
|
+
import '../shared/curvy.ZjG-q57I.mjs';
|
|
10
|
+
import '../shared/curvy.BPOevbwG.mjs';
|
|
11
11
|
|
|
12
12
|
const QuadraticCurve2dTypeId = Symbol(
|
|
13
13
|
"curvy/curve/quadratic2d"
|
package/dist/interval.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as TwoDimensionalIndex, e as TwoDimensionalComponent } from '../shared/curvy.Bf5TIk31.mjs';
|
|
2
2
|
import { P as Pipeable } from '../shared/curvy.BN-oFBsc.mjs';
|
|
3
3
|
import { Vector2 } from '../vector/vector2.mjs';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as TwoDimensionalIndex, e as TwoDimensionalComponent } from '../shared/curvy.Bf5TIk31.js';
|
|
2
2
|
import { P as Pipeable } from '../shared/curvy.BN-oFBsc.js';
|
|
3
3
|
import { Vector2 } from '../vector/vector2.js';
|
|
4
4
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as isMatrix2x2$1, m as make, f as fromRows$1, a as fromColumns$1, s as setRow$1, b as setColumn$1, d as determinant$1, v as vectorProductLeft$1, c as vectorProductRight$1, e as solveSystem$1, t as toRows$1, g as toColumns$1, r as rowVector$1, h as columnVector$1, j as transpose$1, k as reverseRows$1, l as reverseColumns$1 } from '../shared/curvy.
|
|
2
|
-
import '../shared/curvy.
|
|
3
|
-
import '../shared/curvy.
|
|
1
|
+
import { i as isMatrix2x2$1, m as make, f as fromRows$1, a as fromColumns$1, s as setRow$1, b as setColumn$1, d as determinant$1, v as vectorProductLeft$1, c as vectorProductRight$1, e as solveSystem$1, t as toRows$1, g as toColumns$1, r as rowVector$1, h as columnVector$1, j as transpose$1, k as reverseRows$1, l as reverseColumns$1 } from '../shared/curvy.BrrC9QVB.mjs';
|
|
2
|
+
import '../shared/curvy.DLOeble8.mjs';
|
|
3
|
+
import '../shared/curvy.BPOevbwG.mjs';
|
|
4
4
|
|
|
5
5
|
const isMatrix2x2 = isMatrix2x2$1;
|
|
6
6
|
const matrix2x2 = make;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as ThreeDimensionalIndex, c as ThreeDimensionalComponent } from '../shared/curvy.Bf5TIk31.mjs';
|
|
2
2
|
import { Vector3 } from '../vector/vector3.mjs';
|
|
3
3
|
import { Matrix2x2 } from './matrix2x2.mjs';
|
|
4
4
|
import '../shared/curvy.BN-oFBsc.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as ThreeDimensionalIndex, c as ThreeDimensionalComponent } from '../shared/curvy.Bf5TIk31.js';
|
|
2
2
|
import { Vector3 } from '../vector/vector3.js';
|
|
3
3
|
import { Matrix2x2 } from './matrix2x2.js';
|
|
4
4
|
import '../shared/curvy.BN-oFBsc.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as isMatrix3x3$1, m as make, f as fromRows$1, a as fromColumns$1, s as setRow$1, b as setColumn$1, d as determinant$1, c as minor$1, v as vectorProductLeft$1, e as vectorProductRight$1, g as solveSystem$1, t as toRows$1, h as toColumns$1, r as rowVector$1, j as columnVector$1, k as transpose$1, l as reverseRows$1, n as reverseColumns$1 } from '../shared/curvy.
|
|
2
|
-
import '../shared/curvy.
|
|
3
|
-
import '../shared/curvy.
|
|
4
|
-
import '../shared/curvy.
|
|
5
|
-
import '../shared/curvy.
|
|
1
|
+
import { i as isMatrix3x3$1, m as make, f as fromRows$1, a as fromColumns$1, s as setRow$1, b as setColumn$1, d as determinant$1, c as minor$1, v as vectorProductLeft$1, e as vectorProductRight$1, g as solveSystem$1, t as toRows$1, h as toColumns$1, r as rowVector$1, j as columnVector$1, k as transpose$1, l as reverseRows$1, n as reverseColumns$1 } from '../shared/curvy.DTco5vku.mjs';
|
|
2
|
+
import '../shared/curvy.BrrC9QVB.mjs';
|
|
3
|
+
import '../shared/curvy.DLOeble8.mjs';
|
|
4
|
+
import '../shared/curvy.BPOevbwG.mjs';
|
|
5
|
+
import '../shared/curvy.DV4S13Cq.mjs';
|
|
6
6
|
|
|
7
7
|
const isMatrix3x3 = isMatrix3x3$1;
|
|
8
8
|
const matrix3x3 = make;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FourDimensionalIndex, a as FourDimensionalComponent } from '../shared/curvy.
|
|
1
|
+
import { F as FourDimensionalIndex, a as FourDimensionalComponent } from '../shared/curvy.Bf5TIk31.mjs';
|
|
2
2
|
import { P as Pipeable } from '../shared/curvy.BN-oFBsc.mjs';
|
|
3
3
|
import { Vector4 } from '../vector/vector4.mjs';
|
|
4
4
|
import { Matrix3x3 } from './matrix3x3.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FourDimensionalIndex, a as FourDimensionalComponent } from '../shared/curvy.
|
|
1
|
+
import { F as FourDimensionalIndex, a as FourDimensionalComponent } from '../shared/curvy.Bf5TIk31.js';
|
|
2
2
|
import { P as Pipeable } from '../shared/curvy.BN-oFBsc.js';
|
|
3
3
|
import { Vector4 } from '../vector/vector4.js';
|
|
4
4
|
import { Matrix3x3 } from './matrix3x3.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as toFourDimensionalIndex } from '../shared/curvy.
|
|
2
|
-
import { d as dual, r as round, i as invariant, P as Pipeable } from '../shared/curvy.
|
|
3
|
-
import { c as components, m as make$3, d as dot } from '../shared/curvy.
|
|
4
|
-
import { d as determinant$2, m as make$2 } from '../shared/curvy.
|
|
5
|
-
import '../shared/curvy.
|
|
6
|
-
import '../shared/curvy.
|
|
1
|
+
import { n as toFourDimensionalIndex } from '../shared/curvy.BrrC9QVB.mjs';
|
|
2
|
+
import { d as dual, r as round, i as invariant, P as Pipeable } from '../shared/curvy.DLOeble8.mjs';
|
|
3
|
+
import { c as components, m as make$3, d as dot } from '../shared/curvy.B1zfBfvf.mjs';
|
|
4
|
+
import { d as determinant$2, m as make$2 } from '../shared/curvy.DTco5vku.mjs';
|
|
5
|
+
import '../shared/curvy.BPOevbwG.mjs';
|
|
6
|
+
import '../shared/curvy.DV4S13Cq.mjs';
|
|
7
7
|
|
|
8
8
|
const Matrix4x4TypeId = Symbol.for("curvy/matrix4x4");
|
|
9
9
|
class Matrix4x4Impl extends Pipeable {
|
package/dist/path/cubic2d.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CubicCurve2d } from '../curve/cubic2d.mjs';
|
|
2
2
|
import { P as Pipeable } from '../shared/curvy.BN-oFBsc.mjs';
|
|
3
3
|
import { Vector2 } from '../vector/vector2.mjs';
|
|
4
|
-
import '../shared/curvy.
|
|
4
|
+
import '../shared/curvy.Bf5TIk31.mjs';
|
|
5
5
|
import '../interval.mjs';
|
|
6
6
|
import '../shared/curvy.DwHW5Fqt.mjs';
|
|
7
7
|
import '../vector/vector3.mjs';
|
package/dist/path/cubic2d.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CubicCurve2d } from '../curve/cubic2d.js';
|
|
2
2
|
import { P as Pipeable } from '../shared/curvy.BN-oFBsc.js';
|
|
3
3
|
import { Vector2 } from '../vector/vector2.js';
|
|
4
|
-
import '../shared/curvy.
|
|
4
|
+
import '../shared/curvy.Bf5TIk31.js';
|
|
5
5
|
import '../interval.js';
|
|
6
6
|
import '../shared/curvy.CkJRVnqj.js';
|
|
7
7
|
import '../vector/vector3.js';
|
package/dist/path/cubic2d.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { length as length$2, solve as solve$2 } from '../curve/cubic2d.mjs';
|
|
2
|
-
import { d as dual, r as round, P as Pipeable } from '../shared/curvy.
|
|
2
|
+
import { d as dual, r as round, P as Pipeable, i as invariant } from '../shared/curvy.DLOeble8.mjs';
|
|
3
3
|
import { unit } from '../interval.mjs';
|
|
4
4
|
import '../shared/curvy.DmVFTi0N.mjs';
|
|
5
5
|
import '../polynomial/cubic.mjs';
|
|
6
|
-
import '../shared/curvy.
|
|
7
|
-
import '../shared/curvy.
|
|
6
|
+
import '../shared/curvy.ZjG-q57I.mjs';
|
|
7
|
+
import '../shared/curvy.O57gIOmy.mjs';
|
|
8
8
|
import '../polynomial/quadratic.mjs';
|
|
9
9
|
import '../vector/vector2.mjs';
|
|
10
|
-
import '../shared/curvy.
|
|
10
|
+
import '../shared/curvy.BPOevbwG.mjs';
|
|
11
11
|
import '../curve/linear2d.mjs';
|
|
12
12
|
import '../polynomial/linear.mjs';
|
|
13
13
|
import '../curve/quadratic2d.mjs';
|
|
@@ -17,6 +17,7 @@ class CubicPath2dImpl extends Pipeable {
|
|
|
17
17
|
[CubicPath2dTypeId] = CubicPath2dTypeId;
|
|
18
18
|
curves;
|
|
19
19
|
constructor(curves) {
|
|
20
|
+
invariant(curves.length > 0, "cubic path requires at least one curve");
|
|
20
21
|
super();
|
|
21
22
|
this.curves = curves;
|
|
22
23
|
}
|
package/dist/path/linear2d.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LinearCurve2d } from '../curve/linear2d.mjs';
|
|
2
2
|
import { P as Pipeable } from '../shared/curvy.BN-oFBsc.mjs';
|
|
3
3
|
import { Vector2 } from '../vector/vector2.mjs';
|
|
4
|
-
import '../shared/curvy.
|
|
4
|
+
import '../shared/curvy.Bf5TIk31.mjs';
|
|
5
5
|
import '../interval.mjs';
|
|
6
6
|
import '../shared/curvy.DwHW5Fqt.mjs';
|
|
7
7
|
import '../vector/vector3.mjs';
|
package/dist/path/linear2d.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LinearCurve2d } from '../curve/linear2d.js';
|
|
2
2
|
import { P as Pipeable } from '../shared/curvy.BN-oFBsc.js';
|
|
3
3
|
import { Vector2 } from '../vector/vector2.js';
|
|
4
|
-
import '../shared/curvy.
|
|
4
|
+
import '../shared/curvy.Bf5TIk31.js';
|
|
5
5
|
import '../interval.js';
|
|
6
6
|
import '../shared/curvy.CkJRVnqj.js';
|
|
7
7
|
import '../vector/vector3.js';
|
package/dist/path/linear2d.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { length as length$2, solve as solve$2 } from '../curve/linear2d.mjs';
|
|
2
|
-
import { d as dual, r as round, P as Pipeable } from '../shared/curvy.
|
|
2
|
+
import { d as dual, r as round, P as Pipeable } from '../shared/curvy.DLOeble8.mjs';
|
|
3
3
|
import { unit } from '../interval.mjs';
|
|
4
4
|
import '../polynomial/linear.mjs';
|
|
5
|
-
import '../shared/curvy.
|
|
5
|
+
import '../shared/curvy.O57gIOmy.mjs';
|
|
6
6
|
import '../vector/vector2.mjs';
|
|
7
|
-
import '../shared/curvy.
|
|
7
|
+
import '../shared/curvy.BPOevbwG.mjs';
|
|
8
8
|
|
|
9
9
|
const LinearPath2dTypeId = Symbol("curvy/path/linear2d");
|
|
10
10
|
class LinearPath2dImpl extends Pipeable {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { QuadraticCurve2d } from '../curve/quadratic2d.mjs';
|
|
2
2
|
import { P as Pipeable } from '../shared/curvy.BN-oFBsc.mjs';
|
|
3
3
|
import { Vector2 } from '../vector/vector2.mjs';
|
|
4
|
-
import '../shared/curvy.
|
|
4
|
+
import '../shared/curvy.Bf5TIk31.mjs';
|
|
5
5
|
import '../interval.mjs';
|
|
6
6
|
import '../shared/curvy.DwHW5Fqt.mjs';
|
|
7
7
|
import '../vector/vector3.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { QuadraticCurve2d } from '../curve/quadratic2d.js';
|
|
2
2
|
import { P as Pipeable } from '../shared/curvy.BN-oFBsc.js';
|
|
3
3
|
import { Vector2 } from '../vector/vector2.js';
|
|
4
|
-
import '../shared/curvy.
|
|
4
|
+
import '../shared/curvy.Bf5TIk31.js';
|
|
5
5
|
import '../interval.js';
|
|
6
6
|
import '../shared/curvy.CkJRVnqj.js';
|
|
7
7
|
import '../vector/vector3.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { length as length$2, solve as solve$2 } from '../curve/quadratic2d.mjs';
|
|
2
|
-
import { d as dual, r as round, P as Pipeable } from '../shared/curvy.
|
|
2
|
+
import { d as dual, r as round, P as Pipeable } from '../shared/curvy.DLOeble8.mjs';
|
|
3
3
|
import { unit } from '../interval.mjs';
|
|
4
4
|
import '../shared/curvy.DmVFTi0N.mjs';
|
|
5
5
|
import '../polynomial/linear.mjs';
|
|
6
|
-
import '../shared/curvy.
|
|
6
|
+
import '../shared/curvy.O57gIOmy.mjs';
|
|
7
7
|
import '../polynomial/quadratic.mjs';
|
|
8
|
-
import '../shared/curvy.
|
|
8
|
+
import '../shared/curvy.ZjG-q57I.mjs';
|
|
9
9
|
import '../vector/vector2.mjs';
|
|
10
|
-
import '../shared/curvy.
|
|
10
|
+
import '../shared/curvy.BPOevbwG.mjs';
|
|
11
11
|
import '../curve/linear2d.mjs';
|
|
12
12
|
|
|
13
13
|
const QuadraticPath2dTypeId = Symbol(
|
|
@@ -2,6 +2,6 @@ import '../shared/curvy.BN-oFBsc.mjs';
|
|
|
2
2
|
import '../interval.mjs';
|
|
3
3
|
import '../vector/vector4.mjs';
|
|
4
4
|
export { C as CubicPolynomial, j as curvature, d as derivative, g as domain, e as extrema, f as fromVector, i as isCubicPolynomial, l as length, m as make, c as monotonicity, h as range, r as roots, s as solve, a as solveInverse, b as toInverseSolver, t as toSolver } from '../shared/curvy.DwHW5Fqt.mjs';
|
|
5
|
-
import '../shared/curvy.
|
|
5
|
+
import '../shared/curvy.Bf5TIk31.mjs';
|
|
6
6
|
import '../vector/vector2.mjs';
|
|
7
7
|
import '../vector/vector3.mjs';
|
|
@@ -2,6 +2,6 @@ import '../shared/curvy.BN-oFBsc.js';
|
|
|
2
2
|
import '../interval.js';
|
|
3
3
|
import '../vector/vector4.js';
|
|
4
4
|
export { C as CubicPolynomial, j as curvature, d as derivative, g as domain, e as extrema, f as fromVector, i as isCubicPolynomial, l as length, m as make, c as monotonicity, h as range, r as roots, s as solve, a as solveInverse, b as toInverseSolver, t as toSolver } from '../shared/curvy.CkJRVnqj.js';
|
|
5
|
-
import '../shared/curvy.
|
|
5
|
+
import '../shared/curvy.Bf5TIk31.js';
|
|
6
6
|
import '../vector/vector2.js';
|
|
7
7
|
import '../vector/vector3.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as dual, r as round } from '../shared/curvy.
|
|
1
|
+
import { d as dual, r as round } from '../shared/curvy.DLOeble8.mjs';
|
|
2
2
|
import { size, filter, fromMinMax, scaleShift, biunit } from '../interval.mjs';
|
|
3
3
|
import { G as GL32_W0, a as GL32_X0, b as GL32_W1, c as GL32_X1, d as GL32_W2, e as GL32_X2, f as GL32_W3, g as GL32_X3, h as GL32_W4, i as GL32_X4, j as GL32_W5, k as GL32_X5, l as GL32_W6, m as GL32_X6, n as GL32_W7, o as GL32_X7, p as GL32_W8, q as GL32_X8, r as GL32_W9, s as GL32_X9, t as GL32_W10, u as GL32_X10, v as GL32_W11, w as GL32_X11, x as GL32_W12, y as GL32_X12, z as GL32_W13, A as GL32_X13, B as GL32_W14, C as GL32_X14, D as GL32_W15, E as GL32_X15 } from '../shared/curvy.DmVFTi0N.mjs';
|
|
4
|
-
import { C as CubicPolynomialImpl, a as CubicPolynomialTypeId, s as solveInverse$2, m as make$2, r as roots$2, b as monotonicity$3, g as guaranteedMonotonicityFromComparison, l as length$3, c as solve$2, d as derivative$2 } from '../shared/curvy.
|
|
5
|
-
import { m as monotonicity$2, a as make$3, l as length$2, s as solve$3 } from '../shared/curvy.
|
|
4
|
+
import { C as CubicPolynomialImpl, a as CubicPolynomialTypeId, s as solveInverse$2, m as make$2, r as roots$2, b as monotonicity$3, g as guaranteedMonotonicityFromComparison, l as length$3, c as solve$2, d as derivative$2 } from '../shared/curvy.ZjG-q57I.mjs';
|
|
5
|
+
import { m as monotonicity$2, a as make$3, l as length$2, s as solve$3 } from '../shared/curvy.O57gIOmy.mjs';
|
|
6
6
|
|
|
7
7
|
const make$1 = (c0 = 0, c1 = 0, c2 = 0, c3 = 0) => new CubicPolynomialImpl(c0, c1, c2, c3);
|
|
8
8
|
const isCubicPolynomial$1 = (v) => typeof v === "object" && v !== null && CubicPolynomialTypeId in v;
|
|
@@ -2,6 +2,6 @@ import '../shared/curvy.BN-oFBsc.mjs';
|
|
|
2
2
|
import '../interval.mjs';
|
|
3
3
|
import '../vector/vector2.mjs';
|
|
4
4
|
export { L as LinearPolynomial, U as antiderivative, T as derivative, V as domain, J as fromPointSlope, K as fromPoints, I as fromVector, G as isLinearPolynomial, X as length, H as make, S as monotonicity, W as range, R as root, M as solve, O as solveInverse, P as toInverseSolver, N as toSolver } from '../shared/curvy.DwHW5Fqt.mjs';
|
|
5
|
-
import '../shared/curvy.
|
|
5
|
+
import '../shared/curvy.Bf5TIk31.mjs';
|
|
6
6
|
import '../vector/vector3.mjs';
|
|
7
7
|
import '../vector/vector4.mjs';
|
|
@@ -2,6 +2,6 @@ import '../shared/curvy.BN-oFBsc.js';
|
|
|
2
2
|
import '../interval.js';
|
|
3
3
|
import '../vector/vector2.js';
|
|
4
4
|
export { L as LinearPolynomial, U as antiderivative, T as derivative, V as domain, J as fromPointSlope, K as fromPoints, I as fromVector, G as isLinearPolynomial, X as length, H as make, S as monotonicity, W as range, R as root, M as solve, O as solveInverse, P as toInverseSolver, N as toSolver } from '../shared/curvy.CkJRVnqj.js';
|
|
5
|
-
import '../shared/curvy.
|
|
5
|
+
import '../shared/curvy.Bf5TIk31.js';
|
|
6
6
|
import '../vector/vector3.js';
|
|
7
7
|
import '../vector/vector4.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as isLinearPolynomial$1, a as make$1, f as fromVector$1, d as fromPointSlope$1, e as fromPoints$1, s as solve$1, t as toSolver$1, c as solveInverse$1, g as toInverseSolver$1, m as monotonicity$1, h as derivative$1, j as antiderivative$1, k as domain$1, r as range$1, l as length$1 } from '../shared/curvy.
|
|
2
|
-
import '../shared/curvy.
|
|
1
|
+
import { i as isLinearPolynomial$1, a as make$1, f as fromVector$1, d as fromPointSlope$1, e as fromPoints$1, s as solve$1, t as toSolver$1, c as solveInverse$1, g as toInverseSolver$1, m as monotonicity$1, h as derivative$1, j as antiderivative$1, k as domain$1, r as range$1, l as length$1 } from '../shared/curvy.O57gIOmy.mjs';
|
|
2
|
+
import '../shared/curvy.DLOeble8.mjs';
|
|
3
3
|
import '../interval.mjs';
|
|
4
4
|
|
|
5
5
|
const isLinearPolynomial = isLinearPolynomial$1;
|
|
@@ -2,6 +2,6 @@ import '../shared/curvy.BN-oFBsc.mjs';
|
|
|
2
2
|
import '../interval.mjs';
|
|
3
3
|
import '../vector/vector3.mjs';
|
|
4
4
|
export { Q as QuadraticPolynomial, A as antiderivative, F as curvature, w as derivative, B as domain, y as extreme, o as fromVector, k as isQuadraticPolynomial, E as length, n as make, z as monotonicity, D as range, x as roots, p as solve, u as solveInverse, v as toInverseSolver, q as toSolver } from '../shared/curvy.DwHW5Fqt.mjs';
|
|
5
|
-
import '../shared/curvy.
|
|
5
|
+
import '../shared/curvy.Bf5TIk31.mjs';
|
|
6
6
|
import '../vector/vector2.mjs';
|
|
7
7
|
import '../vector/vector4.mjs';
|
|
@@ -2,6 +2,6 @@ import '../shared/curvy.BN-oFBsc.js';
|
|
|
2
2
|
import '../interval.js';
|
|
3
3
|
import '../vector/vector3.js';
|
|
4
4
|
export { Q as QuadraticPolynomial, A as antiderivative, F as curvature, w as derivative, B as domain, y as extreme, o as fromVector, k as isQuadraticPolynomial, E as length, n as make, z as monotonicity, D as range, x as roots, p as solve, u as solveInverse, v as toInverseSolver, q as toSolver } from '../shared/curvy.CkJRVnqj.js';
|
|
5
|
-
import '../shared/curvy.
|
|
5
|
+
import '../shared/curvy.Bf5TIk31.js';
|
|
6
6
|
import '../vector/vector2.js';
|
|
7
7
|
import '../vector/vector4.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as isQuadraticPolynomial$1, m as make$1, f as fromVector$1, c as solve$1, t as toSolver$1, s as solveInverse$1, e as toInverseSolver$1, d as derivative$1, r as roots$1, h as extreme$1, b as monotonicity$1, j as antiderivative$1, k as domain$1, n as range$1, l as length$1, o as curvature$1 } from '../shared/curvy.
|
|
2
|
-
import '../shared/curvy.
|
|
1
|
+
import { i as isQuadraticPolynomial$1, m as make$1, f as fromVector$1, c as solve$1, t as toSolver$1, s as solveInverse$1, e as toInverseSolver$1, d as derivative$1, r as roots$1, h as extreme$1, b as monotonicity$1, j as antiderivative$1, k as domain$1, n as range$1, l as length$1, o as curvature$1 } from '../shared/curvy.ZjG-q57I.mjs';
|
|
2
|
+
import '../shared/curvy.DLOeble8.mjs';
|
|
3
3
|
import '../interval.mjs';
|
|
4
|
-
import '../shared/curvy.
|
|
4
|
+
import '../shared/curvy.O57gIOmy.mjs';
|
|
5
5
|
|
|
6
6
|
const isQuadraticPolynomial = isQuadraticPolynomial$1;
|
|
7
7
|
const make = make$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as dual, r as round, P as Pipeable } from './curvy.
|
|
1
|
+
import { d as dual, r as round, P as Pipeable } from './curvy.DLOeble8.mjs';
|
|
2
2
|
|
|
3
3
|
const Vector4TypeId = Symbol.for("curvy/vector4");
|
|
4
4
|
class Vector4Impl extends Pipeable {
|
|
@@ -66,5 +66,9 @@ const hadamard = dual(
|
|
|
66
66
|
2,
|
|
67
67
|
(a, b) => make(a.x * b.x, a.y * b.y, a.z * b.z, a.w * b.w)
|
|
68
68
|
);
|
|
69
|
+
const scale = dual(
|
|
70
|
+
2,
|
|
71
|
+
(v, s) => s === 1 ? v : make(v.x * s, v.y * s, v.z * s, v.w * s)
|
|
72
|
+
);
|
|
69
73
|
|
|
70
|
-
export { magnitude as a, add as b, components as c, dot as d, subtract as e, hadamard as h, isVector4 as i, make as m, normalize as n, softmax as s };
|
|
74
|
+
export { magnitude as a, add as b, components as c, dot as d, subtract as e, scale as f, hadamard as h, isVector4 as i, make as m, normalize as n, softmax as s };
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { d as dual,
|
|
1
|
+
import { d as dual, r as round, P as Pipeable } from './curvy.DLOeble8.mjs';
|
|
2
2
|
|
|
3
3
|
const Vector2TypeId = Symbol.for("curvy/vector2");
|
|
4
4
|
class Vector2Impl extends Pipeable {
|
|
5
5
|
[Vector2TypeId] = Vector2TypeId;
|
|
6
6
|
x;
|
|
7
7
|
y;
|
|
8
|
-
|
|
9
|
-
constructor(v0 = 0, v1 = 0, precision = PRECISION) {
|
|
8
|
+
constructor(v0 = 0, v1 = 0) {
|
|
10
9
|
super();
|
|
11
|
-
this.x = round(v0
|
|
12
|
-
this.y = round(v1
|
|
13
|
-
this.precision = precision;
|
|
10
|
+
this.x = round(v0);
|
|
11
|
+
this.y = round(v1);
|
|
14
12
|
}
|
|
15
13
|
get [0]() {
|
|
16
14
|
return this.x;
|
|
@@ -26,7 +24,7 @@ class Vector2Impl extends Pipeable {
|
|
|
26
24
|
}
|
|
27
25
|
}
|
|
28
26
|
const isVector2 = (v) => typeof v === "object" && v !== null && Vector2TypeId in v;
|
|
29
|
-
const make = (v0, v1 = v0
|
|
27
|
+
const make = (v0, v1 = v0) => new Vector2Impl(v0, v1);
|
|
30
28
|
const components = (v) => [v.x, v.y];
|
|
31
29
|
const magnitude = (vector) => round(Math.hypot(vector.x, vector.y));
|
|
32
30
|
const normalize = (vector) => {
|
|
@@ -45,5 +43,6 @@ const softmax = (v) => {
|
|
|
45
43
|
const add = dual(2, (a, b) => make(a.x + b.x, a.y + b.y));
|
|
46
44
|
const subtract = dual(2, (a, b) => make(a.x - b.x, a.y - b.y));
|
|
47
45
|
const hadamard = dual(2, (a, b) => make(a.x * b.x, a.y * b.y));
|
|
46
|
+
const scale = dual(2, (v, s) => s === 1 ? v : make(v.x * s, v.y * s));
|
|
48
47
|
|
|
49
|
-
export { magnitude as a, components as b, cross as c, dot as d, add as e, subtract as f, hadamard as h, isVector2 as i, make as m, normalize as n, softmax as s };
|
|
48
|
+
export { magnitude as a, components as b, cross as c, dot as d, add as e, subtract as f, scale as g, hadamard as h, isVector2 as i, make as m, normalize as n, softmax as s };
|