diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 00000000..e69de29b diff --git a/docs/chapters/control/content.en-GB.md b/docs/chapters/control/content.en-GB.md index 7e4425b9..55cea268 100644 --- a/docs/chapters/control/content.en-GB.md +++ b/docs/chapters/control/content.en-GB.md @@ -23,7 +23,7 @@ If we want to change the curve, we need to change the weights of each point, eff \underset{weight}{\underbrace{w_i}} \] -That looks complicated, but as it so happens, the "weights" are actually just the coordinate values we want our curve to have: for an nth order curve, w0 is our start coordinate, wn is our last coordinate, and everything in between is a controlling coordinate. Say we want a cubic curve that starts at (120,160), is controlled by (35,200) and (220,260) and ends at (220,40), we use this Bézier curve: +That looks complicated, but as it so happens, the "weights" are actually just the coordinate values we want our curve to have: for an nth order curve, w0 is our start coordinate, wn is our last coordinate, and everything in between is a controlling coordinate. Say we want a cubic curve that starts at (110,150), is controlled by (25,190) and (210,250) and ends at (210,30), we use this Bézier curve: \[ \left \{ \begin{matrix} diff --git a/docs/images/chapters/aligning/cubic.js/4da87bfcb036722be99f4b1166d5daeb.png b/docs/images/chapters/aligning/cubic.js/4da87bfcb036722be99f4b1166d5daeb.png deleted file mode 100644 index 16bc5096..00000000 Binary files a/docs/images/chapters/aligning/cubic.js/4da87bfcb036722be99f4b1166d5daeb.png and /dev/null differ diff --git a/docs/images/chapters/aligning/quadratic.js/54238957a61113fae905188b9eb1a582.png b/docs/images/chapters/aligning/quadratic.js/54238957a61113fae905188b9eb1a582.png deleted file mode 100644 index 4e779c94..00000000 Binary files a/docs/images/chapters/aligning/quadratic.js/54238957a61113fae905188b9eb1a582.png and /dev/null differ diff --git a/docs/images/chapters/boundingbox/cubic.js/168229f33086b9919756f4a062ff00bd.png b/docs/images/chapters/boundingbox/cubic.js/168229f33086b9919756f4a062ff00bd.png deleted file mode 100644 index 023fec5e..00000000 Binary files a/docs/images/chapters/boundingbox/cubic.js/168229f33086b9919756f4a062ff00bd.png and /dev/null differ diff --git a/docs/images/chapters/boundingbox/quadratic.js/1f0e2a574995607c61adf48eded66458.png b/docs/images/chapters/boundingbox/quadratic.js/1f0e2a574995607c61adf48eded66458.png deleted file mode 100644 index ba413e3a..00000000 Binary files a/docs/images/chapters/boundingbox/quadratic.js/1f0e2a574995607c61adf48eded66458.png and /dev/null differ diff --git a/docs/images/chapters/components/cubic.js/bf7381ecec4128a9a0239f8c6aa8df11.png b/docs/images/chapters/components/cubic.js/bf7381ecec4128a9a0239f8c6aa8df11.png deleted file mode 100644 index f732af1a..00000000 Binary files a/docs/images/chapters/components/cubic.js/bf7381ecec4128a9a0239f8c6aa8df11.png and /dev/null differ diff --git a/docs/images/chapters/components/quadratic.js/e059aec9ddbeb10ba8b1f6f44288bf3c.png b/docs/images/chapters/components/quadratic.js/e059aec9ddbeb10ba8b1f6f44288bf3c.png deleted file mode 100644 index 575a81f5..00000000 Binary files a/docs/images/chapters/components/quadratic.js/e059aec9ddbeb10ba8b1f6f44288bf3c.png and /dev/null differ diff --git a/docs/images/chapters/control/lerp-cubic.js/15e8c8492908851ddde1cb35297326bb.png b/docs/images/chapters/control/lerp-cubic.js/15e8c8492908851ddde1cb35297326bb.png deleted file mode 100644 index 9f2947b6..00000000 Binary files a/docs/images/chapters/control/lerp-cubic.js/15e8c8492908851ddde1cb35297326bb.png and /dev/null differ diff --git a/docs/images/chapters/control/lerp-fifteenth.js/23dae5b8acf92135ea4463d8d0342190.png b/docs/images/chapters/control/lerp-fifteenth.js/23dae5b8acf92135ea4463d8d0342190.png deleted file mode 100644 index 53f8a7f4..00000000 Binary files a/docs/images/chapters/control/lerp-fifteenth.js/23dae5b8acf92135ea4463d8d0342190.png and /dev/null differ diff --git a/docs/images/chapters/control/lerp-quadratic.js/13bba6ecec2fa000c575813d0cda815c.png b/docs/images/chapters/control/lerp-quadratic.js/13bba6ecec2fa000c575813d0cda815c.png deleted file mode 100644 index aaad94f5..00000000 Binary files a/docs/images/chapters/control/lerp-quadratic.js/13bba6ecec2fa000c575813d0cda815c.png and /dev/null differ diff --git a/docs/images/chapters/decasteljau/decasteljau.js/425ee92efb13c790f63f8b3821327d3b.png b/docs/images/chapters/decasteljau/decasteljau.js/425ee92efb13c790f63f8b3821327d3b.png deleted file mode 100644 index 19e750b4..00000000 Binary files a/docs/images/chapters/decasteljau/decasteljau.js/425ee92efb13c790f63f8b3821327d3b.png and /dev/null differ diff --git a/docs/images/chapters/explanation/circle.js/fdea63696e525033c5ea74fa8f90009a.png b/docs/images/chapters/explanation/circle.js/fdea63696e525033c5ea74fa8f90009a.png deleted file mode 100644 index 7871e858..00000000 Binary files a/docs/images/chapters/explanation/circle.js/fdea63696e525033c5ea74fa8f90009a.png and /dev/null differ diff --git a/docs/images/chapters/extended/cubic.js/9a2219c3ad7578428b99bd737e011152.png b/docs/images/chapters/extended/cubic.js/9a2219c3ad7578428b99bd737e011152.png deleted file mode 100644 index 31270cba..00000000 Binary files a/docs/images/chapters/extended/cubic.js/9a2219c3ad7578428b99bd737e011152.png and /dev/null differ diff --git a/docs/images/chapters/extended/quadratic.js/a689167dbaef0e3430f7826e2745787e.png b/docs/images/chapters/extended/quadratic.js/a689167dbaef0e3430f7826e2745787e.png deleted file mode 100644 index e1723f98..00000000 Binary files a/docs/images/chapters/extended/quadratic.js/a689167dbaef0e3430f7826e2745787e.png and /dev/null differ diff --git a/docs/images/chapters/extremities/cubic.js/1440c49b9192919163dc44d6b0cf156b.png b/docs/images/chapters/extremities/cubic.js/1440c49b9192919163dc44d6b0cf156b.png deleted file mode 100644 index 42b60982..00000000 Binary files a/docs/images/chapters/extremities/cubic.js/1440c49b9192919163dc44d6b0cf156b.png and /dev/null differ diff --git a/docs/images/chapters/extremities/quadratic.js/4723d5fb04fe6aa379f7a73f7d251c84.png b/docs/images/chapters/extremities/quadratic.js/4723d5fb04fe6aa379f7a73f7d251c84.png deleted file mode 100644 index 2c1490bd..00000000 Binary files a/docs/images/chapters/extremities/quadratic.js/4723d5fb04fe6aa379f7a73f7d251c84.png and /dev/null differ diff --git a/docs/images/chapters/flattening/cubic.js/1a22ba71ef9a5aaf9c55e0b8c2f3f6e5.png b/docs/images/chapters/flattening/cubic.js/1a22ba71ef9a5aaf9c55e0b8c2f3f6e5.png deleted file mode 100644 index 4893b3fc..00000000 Binary files a/docs/images/chapters/flattening/cubic.js/1a22ba71ef9a5aaf9c55e0b8c2f3f6e5.png and /dev/null differ diff --git a/docs/images/chapters/flattening/quadratic.js/4d4a648e8cac72a7041555ff885cbc2b.png b/docs/images/chapters/flattening/quadratic.js/4d4a648e8cac72a7041555ff885cbc2b.png deleted file mode 100644 index d292ab0d..00000000 Binary files a/docs/images/chapters/flattening/quadratic.js/4d4a648e8cac72a7041555ff885cbc2b.png and /dev/null differ diff --git a/docs/images/chapters/inflections/inflection.js/e81a6573cf3ea31045eb7e8dca3eecb3.png b/docs/images/chapters/inflections/inflection.js/e81a6573cf3ea31045eb7e8dca3eecb3.png deleted file mode 100644 index 2378b4f8..00000000 Binary files a/docs/images/chapters/inflections/inflection.js/e81a6573cf3ea31045eb7e8dca3eecb3.png and /dev/null differ diff --git a/docs/images/chapters/introduction/cubic.js/f595461e998c01d014da321b98f770a9.png b/docs/images/chapters/introduction/cubic.js/f595461e998c01d014da321b98f770a9.png deleted file mode 100644 index 60f9eb27..00000000 Binary files a/docs/images/chapters/introduction/cubic.js/f595461e998c01d014da321b98f770a9.png and /dev/null differ diff --git a/docs/images/chapters/introduction/quadratic.js/4f7880facbaca14fa01031b1de377266.png b/docs/images/chapters/introduction/quadratic.js/4f7880facbaca14fa01031b1de377266.png deleted file mode 100644 index 499ef1f5..00000000 Binary files a/docs/images/chapters/introduction/quadratic.js/4f7880facbaca14fa01031b1de377266.png and /dev/null differ diff --git a/docs/images/chapters/pointvectors/cubic.js/05a1ee3b81a4838292814a7097b4cf50.png b/docs/images/chapters/pointvectors/cubic.js/05a1ee3b81a4838292814a7097b4cf50.png deleted file mode 100644 index cc6a7a72..00000000 Binary files a/docs/images/chapters/pointvectors/cubic.js/05a1ee3b81a4838292814a7097b4cf50.png and /dev/null differ diff --git a/docs/images/chapters/pointvectors/quadratic.js/3158c82ea512f70ec17d4a1ce2e7c7b2.png b/docs/images/chapters/pointvectors/quadratic.js/3158c82ea512f70ec17d4a1ce2e7c7b2.png deleted file mode 100644 index 0b597bea..00000000 Binary files a/docs/images/chapters/pointvectors/quadratic.js/3158c82ea512f70ec17d4a1ce2e7c7b2.png and /dev/null differ diff --git a/docs/images/chapters/pointvectors3d/frenet.js/f5cf3e34415eccd1b03c4ef478862d44.png b/docs/images/chapters/pointvectors3d/frenet.js/f5cf3e34415eccd1b03c4ef478862d44.png deleted file mode 100644 index f0f2c8eb..00000000 Binary files a/docs/images/chapters/pointvectors3d/frenet.js/f5cf3e34415eccd1b03c4ef478862d44.png and /dev/null differ diff --git a/docs/images/chapters/pointvectors3d/rotation-minimizing.js/b11dfd6fef9931ac8715209785f63e0c.png b/docs/images/chapters/pointvectors3d/rotation-minimizing.js/b11dfd6fef9931ac8715209785f63e0c.png deleted file mode 100644 index f0f2c8eb..00000000 Binary files a/docs/images/chapters/pointvectors3d/rotation-minimizing.js/b11dfd6fef9931ac8715209785f63e0c.png and /dev/null differ diff --git a/docs/images/chapters/reordering/4541eeb2113d81cbc0c0a56122570d48.png b/docs/images/chapters/reordering/4541eeb2113d81cbc0c0a56122570d48.png index 5f851863..4f847b27 100644 Binary files a/docs/images/chapters/reordering/4541eeb2113d81cbc0c0a56122570d48.png and b/docs/images/chapters/reordering/4541eeb2113d81cbc0c0a56122570d48.png differ diff --git a/docs/images/chapters/reordering/reorder.js/4541eeb2113d81cbc0c0a56122570d48.png b/docs/images/chapters/reordering/reorder.js/4541eeb2113d81cbc0c0a56122570d48.png deleted file mode 100644 index 7cb0633d..00000000 Binary files a/docs/images/chapters/reordering/reorder.js/4541eeb2113d81cbc0c0a56122570d48.png and /dev/null differ diff --git a/docs/images/chapters/splitting/splitting.js/7ad9b19d2a951c5eaf057edba3a37a5b.png b/docs/images/chapters/splitting/splitting.js/7ad9b19d2a951c5eaf057edba3a37a5b.png deleted file mode 100644 index 466e9603..00000000 Binary files a/docs/images/chapters/splitting/splitting.js/7ad9b19d2a951c5eaf057edba3a37a5b.png and /dev/null differ diff --git a/docs/images/chapters/tightbounds/cubic.js/40061dae02a2f78fdaaedd37289dc38a.png b/docs/images/chapters/tightbounds/cubic.js/40061dae02a2f78fdaaedd37289dc38a.png deleted file mode 100644 index f5dd67d2..00000000 Binary files a/docs/images/chapters/tightbounds/cubic.js/40061dae02a2f78fdaaedd37289dc38a.png and /dev/null differ diff --git a/docs/images/chapters/tightbounds/quadratic.js/95d28739a00d2c9c0c4bbc3c93ce3e05.png b/docs/images/chapters/tightbounds/quadratic.js/95d28739a00d2c9c0c4bbc3c93ce3e05.png deleted file mode 100644 index b8d774c4..00000000 Binary files a/docs/images/chapters/tightbounds/quadratic.js/95d28739a00d2c9c0c4bbc3c93ce3e05.png and /dev/null differ diff --git a/docs/images/chapters/weightcontrol/rational.js/0760592a1ae5c68163014ce2cb5affd0.png b/docs/images/chapters/weightcontrol/rational.js/0760592a1ae5c68163014ce2cb5affd0.png deleted file mode 100644 index 60f9eb27..00000000 Binary files a/docs/images/chapters/weightcontrol/rational.js/0760592a1ae5c68163014ce2cb5affd0.png and /dev/null differ diff --git a/docs/images/chapters/whatis/interpolation.js/d39b17854b29fbb3c70bec7a12820aa1.png b/docs/images/chapters/whatis/interpolation.js/d39b17854b29fbb3c70bec7a12820aa1.png deleted file mode 100644 index 8c8cf36d..00000000 Binary files a/docs/images/chapters/whatis/interpolation.js/d39b17854b29fbb3c70bec7a12820aa1.png and /dev/null differ diff --git a/docs/index.html b/docs/index.html index b05c7a45..69abaf46 100644 --- a/docs/index.html +++ b/docs/index.html @@ -987,8 +987,8 @@ function Bezier(3,t): an nth order curve, w0 is our start coordinate, wn is our last coordinate, and everything in between is a controlling coordinate. Say we want a cubic curve that - starts at (120,160), is controlled by (35,200) and (220,260) and - ends at (220,40), we use this Bézier curve: + starts at (110,150), is controlled by (25,190) and (210,250) and + ends at (210,30), we use this Bézier curve:

{ - return `${main} "../../../chapters/${chapter}/${group}"`; + return `${main} "${RELATIVE_IMPORT_LOCATION}/${chapter}/${group}"`; }); // step 2: split up the code into "global" vs. "class" code diff --git a/src/project-paths.js b/src/project-paths.js index 6e50a71b..7508336d 100644 --- a/src/project-paths.js +++ b/src/project-paths.js @@ -28,6 +28,6 @@ const paths = { temp, }; -Object.values(paths).forEach((loc) => fs.ensureDir(loc)); +Object.values(paths).forEach((loc) => fs.ensureDirSync(loc)); export default paths;