@automovie/human 0.0.0 → 0.2.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.
Files changed (233) hide show
  1. package/README.md +29 -16
  2. package/lib/generation/AutoMovieHumanDigitJoints.d.ts +8 -26
  3. package/lib/generation/AutoMovieHumanDigitJoints.js +9 -37
  4. package/lib/generation/AutoMovieHumanDigitJoints.js.map +1 -1
  5. package/lib/generation/{AutoMovieHumanLegSection.d.ts → AutoMovieHumanLegSectionProportion.d.ts} +1 -1
  6. package/lib/generation/{AutoMovieHumanLegSection.js → AutoMovieHumanLegSectionProportion.js} +17 -14
  7. package/lib/generation/AutoMovieHumanLegSectionProportion.js.map +1 -0
  8. package/lib/generation/arm/AutoMovieHumanArmFrame.js +2 -2
  9. package/lib/generation/arm/AutoMovieHumanArmFrame.js.map +1 -1
  10. package/lib/generation/arm/index.d.ts +28 -0
  11. package/lib/generation/arm/index.js +45 -0
  12. package/lib/generation/arm/index.js.map +1 -0
  13. package/lib/generation/conic/AutoMovieHumanConicLoft.d.ts +154 -0
  14. package/lib/generation/conic/AutoMovieHumanConicLoft.js +430 -0
  15. package/lib/generation/conic/AutoMovieHumanConicLoft.js.map +1 -0
  16. package/lib/generation/conic/AutoMovieHumanConicPose.d.ts +92 -0
  17. package/lib/generation/conic/AutoMovieHumanConicPose.js +202 -0
  18. package/lib/generation/conic/AutoMovieHumanConicPose.js.map +1 -0
  19. package/lib/generation/conic/AutoMovieHumanConicRelief.d.ts +52 -0
  20. package/lib/generation/conic/AutoMovieHumanConicRelief.js +88 -0
  21. package/lib/generation/conic/AutoMovieHumanConicRelief.js.map +1 -0
  22. package/lib/generation/conic/AutoMovieHumanConicSection.d.ts +252 -0
  23. package/lib/generation/conic/AutoMovieHumanConicSection.js +567 -0
  24. package/lib/generation/conic/AutoMovieHumanConicSection.js.map +1 -0
  25. package/lib/generation/f1/AutoMovieHumanF1.d.ts +265 -0
  26. package/lib/generation/f1/AutoMovieHumanF1.js +1254 -0
  27. package/lib/generation/f1/AutoMovieHumanF1.js.map +1 -0
  28. package/lib/generation/f1/AutoMovieHumanF1Antihelix.d.ts +23 -0
  29. package/lib/generation/f1/AutoMovieHumanF1Antihelix.js +65 -0
  30. package/lib/generation/f1/AutoMovieHumanF1Antihelix.js.map +1 -0
  31. package/lib/generation/f1/AutoMovieHumanF1Arm.d.ts +18 -0
  32. package/lib/generation/f1/AutoMovieHumanF1Arm.js +82 -0
  33. package/lib/generation/f1/AutoMovieHumanF1Arm.js.map +1 -0
  34. package/lib/generation/f1/AutoMovieHumanF1Axilla.d.ts +18 -0
  35. package/lib/generation/f1/AutoMovieHumanF1Axilla.js +91 -0
  36. package/lib/generation/f1/AutoMovieHumanF1Axilla.js.map +1 -0
  37. package/lib/generation/f1/AutoMovieHumanF1Breast.d.ts +18 -0
  38. package/lib/generation/f1/AutoMovieHumanF1Breast.js +75 -0
  39. package/lib/generation/f1/AutoMovieHumanF1Breast.js.map +1 -0
  40. package/lib/generation/f1/AutoMovieHumanF1Concha.d.ts +40 -0
  41. package/lib/generation/f1/AutoMovieHumanF1Concha.js +81 -0
  42. package/lib/generation/f1/AutoMovieHumanF1Concha.js.map +1 -0
  43. package/lib/generation/f1/AutoMovieHumanF1FingerIndex.d.ts +18 -0
  44. package/lib/generation/f1/AutoMovieHumanF1FingerIndex.js +59 -0
  45. package/lib/generation/f1/AutoMovieHumanF1FingerIndex.js.map +1 -0
  46. package/lib/generation/f1/AutoMovieHumanF1FingerMiddle.d.ts +18 -0
  47. package/lib/generation/f1/AutoMovieHumanF1FingerMiddle.js +59 -0
  48. package/lib/generation/f1/AutoMovieHumanF1FingerMiddle.js.map +1 -0
  49. package/lib/generation/f1/AutoMovieHumanF1FingerPinky.d.ts +18 -0
  50. package/lib/generation/f1/AutoMovieHumanF1FingerPinky.js +75 -0
  51. package/lib/generation/f1/AutoMovieHumanF1FingerPinky.js.map +1 -0
  52. package/lib/generation/f1/AutoMovieHumanF1FingerRing.d.ts +18 -0
  53. package/lib/generation/f1/AutoMovieHumanF1FingerRing.js +75 -0
  54. package/lib/generation/f1/AutoMovieHumanF1FingerRing.js.map +1 -0
  55. package/lib/generation/f1/AutoMovieHumanF1FingerThumb.d.ts +18 -0
  56. package/lib/generation/f1/AutoMovieHumanF1FingerThumb.js +59 -0
  57. package/lib/generation/f1/AutoMovieHumanF1FingerThumb.js.map +1 -0
  58. package/lib/generation/f1/AutoMovieHumanF1Frames.d.ts +97 -0
  59. package/lib/generation/f1/AutoMovieHumanF1Frames.js +160 -0
  60. package/lib/generation/f1/AutoMovieHumanF1Frames.js.map +1 -0
  61. package/lib/generation/f1/AutoMovieHumanF1Hand.d.ts +18 -0
  62. package/lib/generation/f1/AutoMovieHumanF1Hand.js +81 -0
  63. package/lib/generation/f1/AutoMovieHumanF1Hand.js.map +1 -0
  64. package/lib/generation/f1/AutoMovieHumanF1Helix.d.ts +20 -0
  65. package/lib/generation/f1/AutoMovieHumanF1Helix.js +64 -0
  66. package/lib/generation/f1/AutoMovieHumanF1Helix.js.map +1 -0
  67. package/lib/generation/f1/AutoMovieHumanF1Joints.d.ts +231 -0
  68. package/lib/generation/f1/AutoMovieHumanF1Joints.js +249 -0
  69. package/lib/generation/f1/AutoMovieHumanF1Joints.js.map +1 -0
  70. package/lib/generation/f1/AutoMovieHumanF1Landmarks.d.ts +86 -0
  71. package/lib/generation/f1/AutoMovieHumanF1Landmarks.js +89 -0
  72. package/lib/generation/f1/AutoMovieHumanF1Landmarks.js.map +1 -0
  73. package/lib/generation/f1/AutoMovieHumanF1Leg.d.ts +18 -0
  74. package/lib/generation/f1/AutoMovieHumanF1Leg.js +82 -0
  75. package/lib/generation/f1/AutoMovieHumanF1Leg.js.map +1 -0
  76. package/lib/generation/f1/AutoMovieHumanF1Nose.d.ts +18 -0
  77. package/lib/generation/f1/AutoMovieHumanF1Nose.js +82 -0
  78. package/lib/generation/f1/AutoMovieHumanF1Nose.js.map +1 -0
  79. package/lib/generation/f1/AutoMovieHumanF1Nostril.d.ts +18 -0
  80. package/lib/generation/f1/AutoMovieHumanF1Nostril.js +59 -0
  81. package/lib/generation/f1/AutoMovieHumanF1Nostril.js.map +1 -0
  82. package/lib/generation/f1/AutoMovieHumanF1Placement.d.ts +75 -0
  83. package/lib/generation/f1/AutoMovieHumanF1Placement.js +151 -0
  84. package/lib/generation/f1/AutoMovieHumanF1Placement.js.map +1 -0
  85. package/lib/generation/f1/AutoMovieHumanF1Placing.d.ts +45 -0
  86. package/lib/generation/f1/AutoMovieHumanF1Placing.js +301 -0
  87. package/lib/generation/f1/AutoMovieHumanF1Placing.js.map +1 -0
  88. package/lib/generation/f1/AutoMovieHumanF1Plate.d.ts +18 -0
  89. package/lib/generation/f1/AutoMovieHumanF1Plate.js +59 -0
  90. package/lib/generation/f1/AutoMovieHumanF1Plate.js.map +1 -0
  91. package/lib/generation/f1/AutoMovieHumanF1ToeBig.d.ts +18 -0
  92. package/lib/generation/f1/AutoMovieHumanF1ToeBig.js +59 -0
  93. package/lib/generation/f1/AutoMovieHumanF1ToeBig.js.map +1 -0
  94. package/lib/generation/f1/AutoMovieHumanF1ToeIndex.d.ts +18 -0
  95. package/lib/generation/f1/AutoMovieHumanF1ToeIndex.js +59 -0
  96. package/lib/generation/f1/AutoMovieHumanF1ToeIndex.js.map +1 -0
  97. package/lib/generation/f1/AutoMovieHumanF1ToeLittle.d.ts +18 -0
  98. package/lib/generation/f1/AutoMovieHumanF1ToeLittle.js +75 -0
  99. package/lib/generation/f1/AutoMovieHumanF1ToeLittle.js.map +1 -0
  100. package/lib/generation/f1/AutoMovieHumanF1ToeMiddle.d.ts +18 -0
  101. package/lib/generation/f1/AutoMovieHumanF1ToeMiddle.js +75 -0
  102. package/lib/generation/f1/AutoMovieHumanF1ToeMiddle.js.map +1 -0
  103. package/lib/generation/f1/AutoMovieHumanF1ToeRing.d.ts +18 -0
  104. package/lib/generation/f1/AutoMovieHumanF1ToeRing.js +75 -0
  105. package/lib/generation/f1/AutoMovieHumanF1ToeRing.js.map +1 -0
  106. package/lib/generation/f1/AutoMovieHumanF1Trunk.d.ts +18 -0
  107. package/lib/generation/f1/AutoMovieHumanF1Trunk.js +79 -0
  108. package/lib/generation/f1/AutoMovieHumanF1Trunk.js.map +1 -0
  109. package/lib/generation/f1/AutoMovieHumanF1Vault.d.ts +18 -0
  110. package/lib/generation/f1/AutoMovieHumanF1Vault.js +75 -0
  111. package/lib/generation/f1/AutoMovieHumanF1Vault.js.map +1 -0
  112. package/lib/generation/foot/index.d.ts +51 -0
  113. package/lib/generation/foot/index.js +68 -0
  114. package/lib/generation/foot/index.js.map +1 -0
  115. package/lib/generation/frame/AutoMovieHumanSegmentFrame.d.ts +149 -0
  116. package/lib/generation/frame/AutoMovieHumanSegmentFrame.js +290 -0
  117. package/lib/generation/frame/AutoMovieHumanSegmentFrame.js.map +1 -0
  118. package/lib/generation/hand/index.d.ts +53 -0
  119. package/lib/generation/hand/index.js +70 -0
  120. package/lib/generation/hand/index.js.map +1 -0
  121. package/lib/generation/head/index.d.ts +37 -0
  122. package/lib/generation/head/index.js +54 -0
  123. package/lib/generation/head/index.js.map +1 -0
  124. package/lib/generation/index.d.ts +176 -0
  125. package/lib/generation/index.js +193 -0
  126. package/lib/generation/index.js.map +1 -0
  127. package/lib/generation/leg/AutoMovieHumanLegLaws.d.ts +1 -1
  128. package/lib/generation/leg/AutoMovieHumanLegLaws.js +23 -11
  129. package/lib/generation/leg/AutoMovieHumanLegLaws.js.map +1 -1
  130. package/lib/generation/leg/index.d.ts +34 -0
  131. package/lib/generation/leg/index.js +51 -0
  132. package/lib/generation/leg/index.js.map +1 -0
  133. package/lib/generation/limb/{AutoMovieHumanJointTurn.d.ts → AutoMovieHumanBendArc.d.ts} +1 -1
  134. package/lib/generation/limb/{AutoMovieHumanJointTurn.js → AutoMovieHumanBendArc.js} +12 -8
  135. package/lib/generation/limb/AutoMovieHumanBendArc.js.map +1 -0
  136. package/lib/generation/limb/AutoMovieHumanDigitWalk.js +2 -2
  137. package/lib/generation/limb/AutoMovieHumanDigitWalk.js.map +1 -1
  138. package/lib/generation/limb/AutoMovieHumanWalkPart.js +72 -17
  139. package/lib/generation/limb/AutoMovieHumanWalkPart.js.map +1 -1
  140. package/lib/generation/limb/index.d.ts +12 -0
  141. package/lib/generation/limb/index.js +29 -0
  142. package/lib/generation/limb/index.js.map +1 -0
  143. package/lib/generation/trunk/index.d.ts +17 -0
  144. package/lib/generation/trunk/index.js +34 -0
  145. package/lib/generation/trunk/index.js.map +1 -0
  146. package/lib/generation/web/index.d.ts +14 -0
  147. package/lib/generation/web/index.js +31 -0
  148. package/lib/generation/web/index.js.map +1 -0
  149. package/lib/index.d.ts +14 -4
  150. package/lib/index.js +14 -9
  151. package/lib/index.js.map +1 -1
  152. package/lib/lofting/index.d.ts +14 -0
  153. package/lib/lofting/index.js +31 -0
  154. package/lib/lofting/index.js.map +1 -0
  155. package/lib/skeleton/AutoMovieHumanCanonicalBody.d.ts +7 -3
  156. package/lib/skeleton/AutoMovieHumanCanonicalBody.js +31 -3
  157. package/lib/skeleton/AutoMovieHumanCanonicalBody.js.map +1 -1
  158. package/lib/skeleton/AutoMovieHumanCanonicalProfile.d.ts +22 -31
  159. package/lib/skeleton/AutoMovieHumanCanonicalProfile.js +112 -172
  160. package/lib/skeleton/AutoMovieHumanCanonicalProfile.js.map +1 -1
  161. package/lib/skeleton/AutoMovieHumanCanonicalSolids.d.ts +65 -0
  162. package/lib/skeleton/AutoMovieHumanCanonicalSolids.js +105 -0
  163. package/lib/skeleton/AutoMovieHumanCanonicalSolids.js.map +1 -0
  164. package/lib/skeleton/index.d.ts +29 -0
  165. package/lib/skeleton/index.js +46 -0
  166. package/lib/skeleton/index.js.map +1 -0
  167. package/lib/structures/index.d.ts +2 -2
  168. package/lib/structures/index.js +2 -2
  169. package/lib/structures/index.js.map +1 -1
  170. package/lib/typings/index.d.ts +1 -1
  171. package/lib/typings/index.js +1 -1
  172. package/lib/typings/index.js.map +1 -1
  173. package/package.json +21 -13
  174. package/src/generation/AutoMovieHumanDigitJoints.ts +12 -47
  175. package/src/generation/{AutoMovieHumanLegSection.ts → AutoMovieHumanLegSectionProportion.ts} +15 -6
  176. package/src/generation/arm/AutoMovieHumanArmFrame.ts +2 -2
  177. package/src/generation/arm/index.ts +28 -0
  178. package/src/generation/conic/AutoMovieHumanConicLoft.ts +566 -0
  179. package/src/generation/conic/AutoMovieHumanConicPose.ts +213 -0
  180. package/src/generation/conic/AutoMovieHumanConicRelief.ts +94 -0
  181. package/src/generation/conic/AutoMovieHumanConicSection.ts +609 -0
  182. package/src/generation/f1/AutoMovieHumanF1.ts +1448 -0
  183. package/src/generation/f1/AutoMovieHumanF1Antihelix.ts +64 -0
  184. package/src/generation/f1/AutoMovieHumanF1Arm.ts +82 -0
  185. package/src/generation/f1/AutoMovieHumanF1Axilla.ts +90 -0
  186. package/src/generation/f1/AutoMovieHumanF1Breast.ts +74 -0
  187. package/src/generation/f1/AutoMovieHumanF1Concha.ts +80 -0
  188. package/src/generation/f1/AutoMovieHumanF1FingerIndex.ts +58 -0
  189. package/src/generation/f1/AutoMovieHumanF1FingerMiddle.ts +58 -0
  190. package/src/generation/f1/AutoMovieHumanF1FingerPinky.ts +74 -0
  191. package/src/generation/f1/AutoMovieHumanF1FingerRing.ts +74 -0
  192. package/src/generation/f1/AutoMovieHumanF1FingerThumb.ts +58 -0
  193. package/src/generation/f1/AutoMovieHumanF1Frames.ts +191 -0
  194. package/src/generation/f1/AutoMovieHumanF1Hand.ts +81 -0
  195. package/src/generation/f1/AutoMovieHumanF1Helix.ts +63 -0
  196. package/src/generation/f1/AutoMovieHumanF1Joints.ts +319 -0
  197. package/src/generation/f1/AutoMovieHumanF1Landmarks.ts +101 -0
  198. package/src/generation/f1/AutoMovieHumanF1Leg.ts +82 -0
  199. package/src/generation/f1/AutoMovieHumanF1Nose.ts +82 -0
  200. package/src/generation/f1/AutoMovieHumanF1Nostril.ts +58 -0
  201. package/src/generation/f1/AutoMovieHumanF1Placement.ts +148 -0
  202. package/src/generation/f1/AutoMovieHumanF1Placing.ts +313 -0
  203. package/src/generation/f1/AutoMovieHumanF1Plate.ts +59 -0
  204. package/src/generation/f1/AutoMovieHumanF1ToeBig.ts +58 -0
  205. package/src/generation/f1/AutoMovieHumanF1ToeIndex.ts +58 -0
  206. package/src/generation/f1/AutoMovieHumanF1ToeLittle.ts +74 -0
  207. package/src/generation/f1/AutoMovieHumanF1ToeMiddle.ts +74 -0
  208. package/src/generation/f1/AutoMovieHumanF1ToeRing.ts +74 -0
  209. package/src/generation/f1/AutoMovieHumanF1Trunk.ts +79 -0
  210. package/src/generation/f1/AutoMovieHumanF1Vault.ts +74 -0
  211. package/src/generation/foot/index.ts +51 -0
  212. package/src/generation/frame/AutoMovieHumanSegmentFrame.ts +309 -0
  213. package/src/generation/hand/index.ts +53 -0
  214. package/src/generation/head/index.ts +37 -0
  215. package/src/generation/index.ts +176 -0
  216. package/src/generation/leg/AutoMovieHumanLegLaws.ts +80 -25
  217. package/src/generation/leg/index.ts +34 -0
  218. package/src/generation/limb/{AutoMovieHumanJointTurn.ts → AutoMovieHumanBendArc.ts} +39 -11
  219. package/src/generation/limb/AutoMovieHumanDigitWalk.ts +2 -2
  220. package/src/generation/limb/AutoMovieHumanWalkPart.ts +163 -41
  221. package/src/generation/limb/index.ts +12 -0
  222. package/src/generation/trunk/index.ts +17 -0
  223. package/src/generation/web/index.ts +14 -0
  224. package/src/index.ts +14 -4
  225. package/src/lofting/index.ts +14 -0
  226. package/src/skeleton/AutoMovieHumanCanonicalBody.ts +53 -3
  227. package/src/skeleton/AutoMovieHumanCanonicalProfile.ts +153 -358
  228. package/src/skeleton/AutoMovieHumanCanonicalSolids.ts +175 -0
  229. package/src/skeleton/index.ts +29 -0
  230. package/src/structures/index.ts +2 -2
  231. package/src/typings/index.ts +1 -1
  232. package/lib/generation/AutoMovieHumanLegSection.js.map +0 -1
  233. package/lib/generation/limb/AutoMovieHumanJointTurn.js.map +0 -1
@@ -0,0 +1,18 @@
1
+ import type { AutoMovieHumanConicLoft } from "../conic/AutoMovieHumanConicLoft";
2
+ /**
3
+ * f1's vault tape wall on the +Z side; the other side is its mirror image in the median plane z = 0, which f1's reference satisfies exactly.
4
+ *
5
+ * Frame: the figure's absolute reference pose, millimetres, forward +X, up +Y, +Z the reference's left. The course runs
6
+ * through `centres` with a turn of half length `halves` at each joint; stations are arclength from the first centre and each
7
+ * section lies in the plane normal to the course, charted by `u` (carried from `up` by the course's rotations) and `v`.
8
+ *
9
+ * Every row of `values` is one section field of `AutoMovieHumanConicSection` at the shared `knots`, a natural cubic between
10
+ * them: the section is a chain of conics through its four extremes and one median point per quarter, fitted to the section itself
11
+ * read along rays from the course: the air round the course point, capped under the band it cuts and drawn in from the walls.
12
+ *
13
+ * Source: the f1 reference body cut by this course's own planes over stations 2 to 18 mm, 33 sections 0.5 mm apart, every
14
+ * second one withheld from the fit. Fitted offline by `test/src/reference-conics/FamilyConicBody.ts` (joint least squares over
15
+ * all sections). Regenerated through the engine's view loft from these numbers alone, the reference skin's cut vertices lie
16
+ * 0.23 mm from it on average and at most 1.13 mm. 63 independent numbers.
17
+ */
18
+ export declare const AutoMovieHumanF1Vault: AutoMovieHumanConicLoft.IFamily;
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AutoMovieHumanF1Vault = void 0;
4
+ const AutoMovieHumanConicSection_1 = require("../conic/AutoMovieHumanConicSection");
5
+ const AutoMovieHumanF1Placement_1 = require("./AutoMovieHumanF1Placement");
6
+ const AutoMovieHumanF1Joints_1 = require("./AutoMovieHumanF1Joints");
7
+ /**
8
+ * f1's vault tape wall on the +Z side; the other side is its mirror image in the median plane z = 0, which f1's reference satisfies exactly.
9
+ *
10
+ * Frame: the figure's absolute reference pose, millimetres, forward +X, up +Y, +Z the reference's left. The course runs
11
+ * through `centres` with a turn of half length `halves` at each joint; stations are arclength from the first centre and each
12
+ * section lies in the plane normal to the course, charted by `u` (carried from `up` by the course's rotations) and `v`.
13
+ *
14
+ * Every row of `values` is one section field of `AutoMovieHumanConicSection` at the shared `knots`, a natural cubic between
15
+ * them: the section is a chain of conics through its four extremes and one median point per quarter, fitted to the section itself
16
+ * read along rays from the course: the air round the course point, capped under the band it cuts and drawn in from the walls.
17
+ *
18
+ * Source: the f1 reference body cut by this course's own planes over stations 2 to 18 mm, 33 sections 0.5 mm apart, every
19
+ * second one withheld from the fit. Fitted offline by `test/src/reference-conics/FamilyConicBody.ts` (joint least squares over
20
+ * all sections). Regenerated through the engine's view loft from these numbers alone, the reference skin's cut vertices lie
21
+ * 0.23 mm from it on average and at most 1.13 mm. 63 independent numbers.
22
+ */
23
+ exports.AutoMovieHumanF1Vault = {
24
+ name: "vault",
25
+ centres: AutoMovieHumanF1Joints_1.AutoMovieHumanF1Joints.vault,
26
+ halves: [],
27
+ up: AutoMovieHumanF1Placement_1.AutoMovieHumanF1Placement.direction("vault.up"),
28
+ layout: AutoMovieHumanConicSection_1.AutoMovieHumanConicSection.limb(1),
29
+ knots: [2, 10, 18],
30
+ values: [
31
+ // front (+u) extreme: u, mm
32
+ [9.83, 9.07, 8.34],
33
+ // front (+u) extreme: v, mm
34
+ [-3.35, -3.91, -3.19],
35
+ // median fullness f of the arc pair around anchor 1, share
36
+ [0.0675, 0.0789, 0.077],
37
+ // side (+v) extreme: u, mm
38
+ [-6.43, -9.22, -10.79],
39
+ // side (+v) extreme: v, mm
40
+ [18.32, 16.47, 14.73],
41
+ // median fullness f of the arc pair around anchor 3, share
42
+ [0.5588, 0.4407, 0.3673],
43
+ // back (-u) extreme: u, mm
44
+ [-11.59, -12.14, -12.95],
45
+ // back (-u) extreme: v, mm
46
+ [0, 0, 0],
47
+ // median fullness f of the arc pair around anchor 5, share
48
+ [0.4187, 0.4285, 0.4494],
49
+ // side (-v) extreme: u, mm
50
+ [-9.55, -10.1, -11.28],
51
+ // side (-v) extreme: v, mm
52
+ [-14.6, -13.86, -11.89],
53
+ // median fullness f of the arc pair around anchor 7, share
54
+ [0.1823, 0.1857, 0.1946],
55
+ // shoulder rho of the arc after anchor 0, share
56
+ [0.6616, 0.85, 0.85],
57
+ // shoulder rho of the arc after anchor 1, share
58
+ [0.4231, 0.4058, 0.4359],
59
+ // shoulder rho of the arc after anchor 2, share
60
+ [0.3721, 0.821, 0.5072],
61
+ // shoulder rho of the arc after anchor 3, share
62
+ [0.3456, 0.4019, 0.4884],
63
+ // shoulder rho of the arc after anchor 4, share
64
+ [0.4211, 0.4142, 0.3995],
65
+ // shoulder rho of the arc after anchor 5, share
66
+ [0.7594, 0.7768, 0.7601],
67
+ // shoulder rho of the arc after anchor 6, share
68
+ [0.2736, 0.0872, 0.1711],
69
+ // shoulder rho of the arc after anchor 7, share
70
+ [0.5942, 0.5041, 0.2446],
71
+ ],
72
+ // The part closes in a point at `tip`, a station placed by anatomy; its cap starts at `from`.
73
+ tips: [{ from: 2, tip: -1 }, { from: 18, tip: 20 }],
74
+ };
75
+ //# sourceMappingURL=AutoMovieHumanF1Vault.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoMovieHumanF1Vault.js","sourceRoot":"","sources":["../../../src/generation/f1/AutoMovieHumanF1Vault.ts"],"names":[],"mappings":";;;AACA,oFAAiF;AACjF,2EAAwE;AACxE,qEAAkE;AAElE;;;;;;;;;;;;;;;GAeG;AACU,QAAA,qBAAqB,GAAoC;IACpE,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,+CAAsB,CAAC,KAAK;IACrC,MAAM,EAAE,EAAE;IACV,EAAE,EAAE,qDAAyB,CAAC,SAAS,CAAC,UAAU,CAAC;IACnD,MAAM,EAAE,uDAA0B,CAAC,IAAI,CAAC,CAAC,CAAC;IAC1C,KAAK,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC;IAClB,MAAM,EAAE;QACN,4BAA4B;QAC5B,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;QAClB,4BAA4B;QAC5B,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC;QACrB,2DAA2D;QAC3D,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC;QACvB,2BAA2B;QAC3B,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC;QACtB,2BAA2B;QAC3B,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;QACrB,2DAA2D;QAC3D,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;QACxB,2BAA2B;QAC3B,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC;QACxB,2BAA2B;QAC3B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QACT,2DAA2D;QAC3D,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;QACxB,2BAA2B;QAC3B,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC;QACtB,2BAA2B;QAC3B,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC;QACvB,2DAA2D;QAC3D,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;QACxB,gDAAgD;QAChD,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC;QACpB,gDAAgD;QAChD,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;QACxB,gDAAgD;QAChD,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC;QACvB,gDAAgD;QAChD,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;QACxB,gDAAgD;QAChD,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;QACxB,gDAAgD;QAChD,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;QACxB,gDAAgD;QAChD,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;QACxB,gDAAgD;QAChD,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;KACzB;IAED,8FAA8F;IAC9F,IAAI,EAAE,CAAC,EAAC,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAC,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAC,CAAC;CAChD,CAAC"}
@@ -0,0 +1,51 @@
1
+ export * from "./AutoMovieHumanFootAchilles";
2
+ export * from "./AutoMovieHumanFootArc";
3
+ export * from "./AutoMovieHumanFootBody";
4
+ export * from "./AutoMovieHumanFootBodyChain";
5
+ export * from "./AutoMovieHumanFootBones";
6
+ export * from "./AutoMovieHumanFootBreadth";
7
+ export * from "./AutoMovieHumanFootColumn";
8
+ export * from "./AutoMovieHumanFootColumnLaw";
9
+ export * from "./AutoMovieHumanFootConnection";
10
+ export * from "./AutoMovieHumanFootCrestForefoot";
11
+ export * from "./AutoMovieHumanFootDorsum";
12
+ export * from "./AutoMovieHumanFootEdgeHandover";
13
+ export * from "./AutoMovieHumanFootFan";
14
+ export * from "./AutoMovieHumanFootFrame";
15
+ export * from "./AutoMovieHumanFootGeometry";
16
+ export * from "./AutoMovieHumanFootGuide";
17
+ export * from "./AutoMovieHumanFootGuideSmoothing";
18
+ export * from "./AutoMovieHumanFootHeads";
19
+ export * from "./AutoMovieHumanFootHeelCorner";
20
+ export * from "./AutoMovieHumanFootHost";
21
+ export * from "./AutoMovieHumanFootInterim";
22
+ export * from "./AutoMovieHumanFootJunction";
23
+ export * from "./AutoMovieHumanFootKnots";
24
+ export * from "./AutoMovieHumanFootLateralForefoot";
25
+ export * from "./AutoMovieHumanFootMalleolus";
26
+ export * from "./AutoMovieHumanFootMalleolusBump";
27
+ export * from "./AutoMovieHumanFootMalleolusWindow";
28
+ export * from "./AutoMovieHumanFootPart";
29
+ export * from "./AutoMovieHumanFootReflection";
30
+ export * from "./AutoMovieHumanFootSectionJets";
31
+ export * from "./AutoMovieHumanFootSectors";
32
+ export * from "./AutoMovieHumanFootSource";
33
+ export * from "./AutoMovieHumanFootToeBreadth";
34
+ export * from "./AutoMovieHumanFootToeCap";
35
+ export * from "./AutoMovieHumanFootToeChain";
36
+ export * from "./AutoMovieHumanFootToeJoints";
37
+ export * from "./AutoMovieHumanFootToeLines";
38
+ export * from "./AutoMovieHumanFootToePulp";
39
+ export * from "./AutoMovieHumanFootToeRoot";
40
+ export * from "./AutoMovieHumanFootToeRootFlare";
41
+ export * from "./AutoMovieHumanFootToeSection";
42
+ export * from "./AutoMovieHumanFootToeShaft";
43
+ export * from "./AutoMovieHumanFootToeSources";
44
+ export * from "./AutoMovieHumanFootToeSpacing";
45
+ export * from "./AutoMovieHumanFootToeSpan";
46
+ export * from "./AutoMovieHumanFootToeStations";
47
+ export * from "./AutoMovieHumanFootToeTaper";
48
+ export * from "./AutoMovieHumanFootWebLine";
49
+ export * from "./AutoMovieHumanFootWebRing";
50
+ export * from "./AutoMovieHumanToePart";
51
+ export * from "./AutoMovieHumanToeVertical";
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./AutoMovieHumanFootAchilles"), exports);
18
+ __exportStar(require("./AutoMovieHumanFootArc"), exports);
19
+ __exportStar(require("./AutoMovieHumanFootBody"), exports);
20
+ __exportStar(require("./AutoMovieHumanFootBodyChain"), exports);
21
+ __exportStar(require("./AutoMovieHumanFootBones"), exports);
22
+ __exportStar(require("./AutoMovieHumanFootBreadth"), exports);
23
+ __exportStar(require("./AutoMovieHumanFootColumn"), exports);
24
+ __exportStar(require("./AutoMovieHumanFootColumnLaw"), exports);
25
+ __exportStar(require("./AutoMovieHumanFootConnection"), exports);
26
+ __exportStar(require("./AutoMovieHumanFootCrestForefoot"), exports);
27
+ __exportStar(require("./AutoMovieHumanFootDorsum"), exports);
28
+ __exportStar(require("./AutoMovieHumanFootEdgeHandover"), exports);
29
+ __exportStar(require("./AutoMovieHumanFootFan"), exports);
30
+ __exportStar(require("./AutoMovieHumanFootFrame"), exports);
31
+ __exportStar(require("./AutoMovieHumanFootGeometry"), exports);
32
+ __exportStar(require("./AutoMovieHumanFootGuide"), exports);
33
+ __exportStar(require("./AutoMovieHumanFootGuideSmoothing"), exports);
34
+ __exportStar(require("./AutoMovieHumanFootHeads"), exports);
35
+ __exportStar(require("./AutoMovieHumanFootHeelCorner"), exports);
36
+ __exportStar(require("./AutoMovieHumanFootHost"), exports);
37
+ __exportStar(require("./AutoMovieHumanFootInterim"), exports);
38
+ __exportStar(require("./AutoMovieHumanFootJunction"), exports);
39
+ __exportStar(require("./AutoMovieHumanFootKnots"), exports);
40
+ __exportStar(require("./AutoMovieHumanFootLateralForefoot"), exports);
41
+ __exportStar(require("./AutoMovieHumanFootMalleolus"), exports);
42
+ __exportStar(require("./AutoMovieHumanFootMalleolusBump"), exports);
43
+ __exportStar(require("./AutoMovieHumanFootMalleolusWindow"), exports);
44
+ __exportStar(require("./AutoMovieHumanFootPart"), exports);
45
+ __exportStar(require("./AutoMovieHumanFootReflection"), exports);
46
+ __exportStar(require("./AutoMovieHumanFootSectionJets"), exports);
47
+ __exportStar(require("./AutoMovieHumanFootSectors"), exports);
48
+ __exportStar(require("./AutoMovieHumanFootSource"), exports);
49
+ __exportStar(require("./AutoMovieHumanFootToeBreadth"), exports);
50
+ __exportStar(require("./AutoMovieHumanFootToeCap"), exports);
51
+ __exportStar(require("./AutoMovieHumanFootToeChain"), exports);
52
+ __exportStar(require("./AutoMovieHumanFootToeJoints"), exports);
53
+ __exportStar(require("./AutoMovieHumanFootToeLines"), exports);
54
+ __exportStar(require("./AutoMovieHumanFootToePulp"), exports);
55
+ __exportStar(require("./AutoMovieHumanFootToeRoot"), exports);
56
+ __exportStar(require("./AutoMovieHumanFootToeRootFlare"), exports);
57
+ __exportStar(require("./AutoMovieHumanFootToeSection"), exports);
58
+ __exportStar(require("./AutoMovieHumanFootToeShaft"), exports);
59
+ __exportStar(require("./AutoMovieHumanFootToeSources"), exports);
60
+ __exportStar(require("./AutoMovieHumanFootToeSpacing"), exports);
61
+ __exportStar(require("./AutoMovieHumanFootToeSpan"), exports);
62
+ __exportStar(require("./AutoMovieHumanFootToeStations"), exports);
63
+ __exportStar(require("./AutoMovieHumanFootToeTaper"), exports);
64
+ __exportStar(require("./AutoMovieHumanFootWebLine"), exports);
65
+ __exportStar(require("./AutoMovieHumanFootWebRing"), exports);
66
+ __exportStar(require("./AutoMovieHumanToePart"), exports);
67
+ __exportStar(require("./AutoMovieHumanToeVertical"), exports);
68
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/generation/foot/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,0DAAwC;AACxC,2DAAyC;AACzC,gEAA8C;AAC9C,4DAA0C;AAC1C,8DAA4C;AAC5C,6DAA2C;AAC3C,gEAA8C;AAC9C,iEAA+C;AAC/C,oEAAkD;AAClD,6DAA2C;AAC3C,mEAAiD;AACjD,0DAAwC;AACxC,4DAA0C;AAC1C,+DAA6C;AAC7C,4DAA0C;AAC1C,qEAAmD;AACnD,4DAA0C;AAC1C,iEAA+C;AAC/C,2DAAyC;AACzC,8DAA4C;AAC5C,+DAA6C;AAC7C,4DAA0C;AAC1C,sEAAoD;AACpD,gEAA8C;AAC9C,oEAAkD;AAClD,sEAAoD;AACpD,2DAAyC;AACzC,iEAA+C;AAC/C,kEAAgD;AAChD,8DAA4C;AAC5C,6DAA2C;AAC3C,iEAA+C;AAC/C,6DAA2C;AAC3C,+DAA6C;AAC7C,gEAA8C;AAC9C,+DAA6C;AAC7C,8DAA4C;AAC5C,8DAA4C;AAC5C,mEAAiD;AACjD,iEAA+C;AAC/C,+DAA6C;AAC7C,iEAA+C;AAC/C,iEAA+C;AAC/C,8DAA4C;AAC5C,kEAAgD;AAChD,+DAA6C;AAC7C,8DAA4C;AAC5C,8DAA4C;AAC5C,0DAAwC;AACxC,8DAA4C"}
@@ -0,0 +1,149 @@
1
+ /**
2
+ * The segment-frame law: a body segment's frame built from its landmarks by a written definition, and the chain that hangs the segments
3
+ * on their parents by one rotation per joint.
4
+ *
5
+ * A frame is an origin and three unit axes X, Y, Z, all in the figure's frame (millimetres), right-handed: Z = X x Y. The ISB
6
+ * recommendations write every segment so (Wu et al. 2002, J Biomech 35:543-548; Wu et al. 2005, J Biomech 38:981-992): X anterior, Y
7
+ * along the segment toward its proximal end (cranial for the trunk), Z to the right. The figure keeps one side, the stored side (+Z), and
8
+ * its twin is the reflection in z = 0 ({@link mirror}); ISB's right-side definitions read on the stored side.
9
+ *
10
+ * A joint's zero is the child's axes parallel to its parent's, the zero of ISB's joint coordinate systems (the anatomical position).
11
+ * With the axes as the columns of a matrix A, a joint's rotation is `R = A_parent^T A_child`, the child's axes written in its parent's
12
+ * frame, and a pose is one rotation per joint: {@link world} composes `A_child = A_parent R` down the tree, so the reference rotations
13
+ * return the reference frames and identity rotations the neutral body. A segment's origin is the joint centre it pivots about; its place
14
+ * in its parent's frame, `A_parent^T (o_child - o_parent)`, is a constant of the body.
15
+ */
16
+ export declare namespace AutoMovieHumanSegmentFrame {
17
+ /** A point or a direction, mm. */
18
+ type V3 = [number, number, number];
19
+ /** A 3 x 3 matrix by rows. */
20
+ type M3 = [V3, V3, V3];
21
+ /** A segment frame: its origin and unit axes X, Y, Z in the figure's frame. */
22
+ interface IFrame {
23
+ /** Origin, mm. */
24
+ origin: V3;
25
+ /** Unit axes X, Y, Z, right-handed. */
26
+ axes: [V3, V3, V3];
27
+ }
28
+ /** One segment of a chain: its parent, its origin in the parent's frame and its reference rotation. */
29
+ interface IJoint {
30
+ /** The segment's name. */
31
+ name: string;
32
+ /** The parent segment's name; null for the root. */
33
+ parent: string | null;
34
+ /** The origin in the parent's frame, mm (the root: in the figure's frame). */
35
+ offset: V3;
36
+ /** The reference rotation `A_parent^T A_child` (the root: its axes as columns). */
37
+ rotation: M3;
38
+ }
39
+ /** A frame from an exact Y and a hint for Z: Z is the hint made square to Y, X = Y x Z. */
40
+ function fromYZ(origin: V3, y: V3, z: V3): IFrame;
41
+ /** A frame from an exact Y and a hint for X: X is the hint made square to Y, Z = X x Y. */
42
+ function fromYX(origin: V3, y: V3, x: V3): IFrame;
43
+ /** A frame from an exact X and a hint for Y: Y is the hint made square to X, Z = X x Y. */
44
+ function fromXY(origin: V3, x: V3, y: V3): IFrame;
45
+ /** A frame at `origin` with the axes of `parent`: a segment rigid to and parallel with its parent. */
46
+ function parallel(origin: V3, parent: IFrame): IFrame;
47
+ /**
48
+ * The humerus, Wu et al. 2005 2.3.4 option 1, on the stored side: Y from the epicondyles' midpoint to the glenohumeral centre, X the
49
+ * normal of the plane through GH, EL and EM, forward, Z = X x Y. With EL lateral (+Z) and EM medial, `(EL - GH) x (EM - GH)` points
50
+ * forward, so no hint is needed. ISB's origin is GH, which is also the joint the segment pivots about.
51
+ */
52
+ function humerus(gh: V3, el: V3, em: V3): IFrame;
53
+ /**
54
+ * The forearm, Wu et al. 2005 2.3.6, on the stored side: Y from the ulnar styloid US to the epicondyles' midpoint, X the normal of the
55
+ * plane through US, RS and that midpoint, forward, Z = X x Y. With RS lateral of US in the anatomical position, `(E - US) x (RS - US)`
56
+ * points forward. The origin is the elbow centre the segment pivots about; ISB's origin US is a constant translation inside the segment
57
+ * that changes no axis and no joint angle.
58
+ */
59
+ function forearm(elbow: V3, us: V3, rs: V3, el: V3, em: V3): IFrame;
60
+ /**
61
+ * The femur, Wu et al. 2002 4.4, on the stored side: Y from the femoral epicondyles' midpoint to the hip centre, Z the lateral
62
+ * epicondyle's direction from the medial one made square to Y (in the plane of the hip centre and both epicondyles, to the right on the
63
+ * stored side), X = Y x Z. ISB's origin is the hip centre, the joint the segment pivots about.
64
+ */
65
+ function femur(hip: V3, lateral: V3, medial: V3): IFrame;
66
+ /** The axes as the columns of a matrix. */
67
+ function matrix(frame: IFrame): M3;
68
+ /** The frame whose axes are the columns of `m`. */
69
+ function columns(origin: V3, m: M3): IFrame;
70
+ /** A point of the figure's frame in the segment's frame: `A^T (p - o)`. */
71
+ function toLocal(frame: IFrame, p: V3): V3;
72
+ /** A direction of the figure's frame in the segment's frame: `A^T d`. */
73
+ function toLocalDirection(frame: IFrame, d: V3): V3;
74
+ /** A point of the segment's frame in the figure's frame: `o + A q`. */
75
+ function toWorld(frame: IFrame, q: V3): V3;
76
+ /** A direction of the segment's frame in the figure's frame: `A q`. */
77
+ function toWorldDirection(frame: IFrame, q: V3): V3;
78
+ /** `child`, written in `parent`'s frame, placed in the figure's frame: the rigid transform `parent o child`. */
79
+ function compose(parent: IFrame, child: IFrame): IFrame;
80
+ /** The inverse rigid transform: the figure's frame written in the segment's frame, so `compose(frame, inverse(frame))` is the identity. */
81
+ function inverse(frame: IFrame): IFrame;
82
+ /** `child` written in `parent`'s frame: its origin `A_p^T (o_c - o_p)` and its rotation `A_p^T A_c`. */
83
+ function relative(parent: IFrame, child: IFrame): {
84
+ offset: V3;
85
+ rotation: M3;
86
+ };
87
+ /**
88
+ * The twin's frame: the reflection `S = diag(1, 1, -1)` in z = 0 of the origin, X and Y, with Z = X' x Y' = -S Z so the twin stays
89
+ * right-handed. Its joint rotations are `D R D` with `D = diag(1, 1, -1)`, since `S A D` replaces `A` on both sides.
90
+ */
91
+ function mirror(frame: IFrame): IFrame;
92
+ /**
93
+ * The chain of a tree of segments given parent-first: each segment's origin in its parent's frame and its reference rotation. The
94
+ * root's offset is its origin and its rotation its axes, both in the figure's frame.
95
+ */
96
+ function chain(segments: readonly {
97
+ name: string;
98
+ parent: string | null;
99
+ frame: IFrame;
100
+ }[]): IJoint[];
101
+ /**
102
+ * The frames of a posed chain: `A_child = A_parent R` and `o_child = o_parent + A_parent offset`, parent first. `pose` gives a joint's
103
+ * rotation by name; a joint it leaves undefined keeps its reference rotation, so `world(joints, () => undefined)` returns the reference
104
+ * frames and identity rotations the neutral body.
105
+ */
106
+ function world(joints: readonly IJoint[], pose: (name: string) => M3 | undefined): Map<string, IFrame>;
107
+ /** The rotation by `angle` radians about the unit axis `axis` (0 X, 1 Y, 2 Z) of the frame it acts in. */
108
+ function about(axis: 0 | 1 | 2, angle: number): M3;
109
+ /**
110
+ * The ISB joint-coordinate angles of a Z-X-Y Cardan sequence (Grood and Suntay 1983, as ISB writes the hip, knee and ankle in Wu et al.
111
+ * 2002 and the elbow and wrist in Wu et al. 2005): `R = Rz(a) Rx(b) Ry(c)` with a about the parent's Z (flexion), b about the floating
112
+ * axis (adduction or deviation) and c about the child's Y (axial rotation), radians. From the product,
113
+ * `R[2][1] = sin b`, `R[0][1] = -sin a cos b`, `R[1][1] = cos a cos b`, `R[2][0] = -cos b sin c`, `R[2][2] = cos b cos c`.
114
+ */
115
+ function cardanZXY(r: M3): [number, number, number];
116
+ /**
117
+ * The ISB shoulder angles, a Y-X-Y Euler sequence (Wu et al. 2005 2.4.7, the humerus relative to the thorax): `R = Ry(a) Rx(b) Ry(c)`
118
+ * with a the plane of elevation (0 abduction, 90 degrees forward flexion), b the elevation and c the axial rotation (internal
119
+ * positive), radians. The text writes "elevation (negative)", and its footnote 5 that the second rotation is by definition in the
120
+ * negative direction as a consequence of the chosen axes, so the branch with b in [-pi, 0] is returned: an arm raised sideways reads
121
+ * a plane of elevation near 0 and a negative elevation. From the product, `R[1][1] = cos b`, `R[0][1] = sin a sin b`, `R[2][1] = cos a sin b`,
122
+ * `R[1][0] = sin b sin c`, `R[1][2] = -sin b cos c`, so with `sin b <= 0`: `a = atan2(-R[0][1], -R[2][1])`, `c = atan2(-R[1][0], R[1][2])`.
123
+ */
124
+ function eulerYXY(r: M3): [number, number, number];
125
+ /** Matrix product. */
126
+ function multiply(a: M3, b: M3): M3;
127
+ /** Matrix times a vector. */
128
+ function multiplyVector(m: M3, v: V3): V3;
129
+ /** Transpose. */
130
+ function transpose(m: M3): M3;
131
+ /** The identity rotation. */
132
+ const IDENTITY: M3;
133
+ /** Midpoint. */
134
+ function mid(a: V3, b: V3): V3;
135
+ /** Difference. */
136
+ function sub(a: V3, b: V3): V3;
137
+ /** Sum. */
138
+ function add(a: V3, b: V3): V3;
139
+ /** Multiple. */
140
+ function scale(a: V3, s: number): V3;
141
+ /** Scalar product. */
142
+ function dot(a: V3, b: V3): number;
143
+ /** Right-handed vector product. */
144
+ function cross(a: V3, b: V3): V3;
145
+ /** Unit vector; a zero vector has no direction and is refused. */
146
+ function unit(a: V3): V3;
147
+ /** `a` made square to the unit `n`, unit; `a` along `n` has no square part and is refused. */
148
+ function perpendicular(a: V3, n: V3): V3;
149
+ }