@kitware/vtk.js 20.1.4 → 20.2.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.
Files changed (314) hide show
  1. package/Common/Core/Base64.d.ts +14 -2
  2. package/Common/Core/Base64.js +31 -2
  3. package/Common/Core/Math/index.js +1 -1
  4. package/Common/Core/Math.d.ts +168 -158
  5. package/Common/Core/Math.js +1 -1
  6. package/Common/Core/MatrixBuilder.js +39 -41
  7. package/Common/DataModel/Box.d.ts +73 -0
  8. package/Common/DataModel/ImageData.js +12 -14
  9. package/Common/Transform/LandmarkTransform.js +6 -7
  10. package/Filters/General/PaintFilter/PaintFilter.worker.js +8 -8
  11. package/Filters/General/PaintFilter.js +11 -11
  12. package/Filters/Sources/CubeSource.d.ts +7 -6
  13. package/Filters/Sources/PlaneSource.js +12 -13
  14. package/IO/Core/BinaryHelper.js +2 -4
  15. package/IO/Core/DataAccessHelper/HtmlDataAccessHelper.js +1 -1
  16. package/IO/Core/DataAccessHelper/HttpDataAccessHelper.js +1 -1
  17. package/IO/Core/DataAccessHelper/JSZipDataAccessHelper.js +2 -2
  18. package/IO/Core/ZipMultiDataSetReader.js +1 -1
  19. package/IO/Core/ZipMultiDataSetWriter.js +1 -1
  20. package/IO/Geometry/STLWriter.js +4 -4
  21. package/IO/Misc/OBJReader.d.ts +9 -8
  22. package/IO/Misc/SkyboxReader.js +1 -1
  23. package/IO/XML/XMLReader.js +3 -4
  24. package/IO/XML/XMLWriter.js +5 -6
  25. package/Imaging/Core/ImageReslice.js +18 -19
  26. package/Interaction/Manipulators/MouseCameraAxisRotateManipulator.js +27 -28
  27. package/Interaction/Manipulators/MouseCameraTrackballRollManipulator.js +8 -9
  28. package/Interaction/Manipulators/MouseCameraTrackballRotateManipulator.js +14 -15
  29. package/Interaction/Manipulators/MouseCameraUnicamRotateManipulator.js +12 -13
  30. package/Interaction/Widgets/ImageCroppingRegionsWidget.js +5 -6
  31. package/Interaction/Widgets/PiecewiseGaussianWidget/ComputeHistogram.worker.js +1 -1
  32. package/Interaction/Widgets/PiecewiseGaussianWidget.js +2 -2
  33. package/Interaction/Widgets/ResliceCursor/ResliceCursorRepresentation.js +8 -9
  34. package/Rendering/Core/Actor.js +3 -4
  35. package/Rendering/Core/AnnotatedCubeActor.d.ts +5 -6
  36. package/Rendering/Core/Camera.js +81 -84
  37. package/Rendering/Core/CellPicker.js +2 -2
  38. package/Rendering/Core/CubeAxesActor.js +37 -34
  39. package/Rendering/Core/Follower.js +20 -21
  40. package/Rendering/Core/Glyph3DMapper.js +30 -32
  41. package/Rendering/Core/ImageMapper.js +2 -2
  42. package/Rendering/Core/ImageSlice.js +5 -6
  43. package/Rendering/Core/Picker.d.ts +5 -5
  44. package/Rendering/Core/Picker.js +5 -6
  45. package/Rendering/Core/PixelSpaceCallbackMapper.js +3 -4
  46. package/Rendering/Core/Prop3D.js +24 -25
  47. package/Rendering/Core/Renderer.js +11 -12
  48. package/Rendering/Core/ScalarBarActor.js +37 -34
  49. package/Rendering/Core/Volume.js +3 -4
  50. package/Rendering/OpenGL/Actor.js +9 -10
  51. package/Rendering/OpenGL/Camera.js +8 -9
  52. package/Rendering/OpenGL/CellArrayBufferObject.js +6 -8
  53. package/Rendering/OpenGL/Glyph3DMapper.js +8 -9
  54. package/Rendering/OpenGL/ImageMapper.js +7 -7
  55. package/Rendering/OpenGL/ImageSlice.js +4 -4
  56. package/Rendering/OpenGL/PolyDataMapper.js +11 -13
  57. package/Rendering/OpenGL/RenderWindow.d.ts +21 -35
  58. package/Rendering/OpenGL/ShaderCache.js +1 -1
  59. package/Rendering/OpenGL/Skybox.js +4 -5
  60. package/Rendering/OpenGL/SphereMapper.js +2 -2
  61. package/Rendering/OpenGL/StickMapper.js +3 -4
  62. package/Rendering/OpenGL/SurfaceLIC/SurfaceLICInterface.js +1 -1
  63. package/Rendering/OpenGL/Volume.js +6 -7
  64. package/Rendering/OpenGL/VolumeMapper.js +47 -49
  65. package/Rendering/OpenGL/glsl/vtkPolyDataFS.glsl.js +1 -1
  66. package/Rendering/WebGPU/Actor.js +8 -8
  67. package/Rendering/WebGPU/Camera.js +8 -8
  68. package/Rendering/WebGPU/ImageMapper.js +18 -19
  69. package/Rendering/WebGPU/ImageSlice.js +9 -9
  70. package/Rendering/WebGPU/PolyDataMapper.js +3 -4
  71. package/Rendering/WebGPU/Renderer.js +6 -7
  72. package/Rendering/WebGPU/Volume.js +3 -3
  73. package/Rendering/WebGPU/VolumePassFSQ.js +10 -10
  74. package/ThirdParty/index.js +2 -2
  75. package/Widgets/Manipulators/TrackballManipulator.js +5 -6
  76. package/Widgets/Representations/ArrowHandleRepresentation.js +10 -12
  77. package/Widgets/Representations/CircleContextRepresentation.js +4 -5
  78. package/Widgets/Representations/RectangleContextRepresentation.js +3 -3
  79. package/Widgets/Widgets3D/EllipseWidget/behavior.js +5 -5
  80. package/Widgets/Widgets3D/ImageCroppingWidget/helpers.js +6 -8
  81. package/Widgets/Widgets3D/PaintWidget/behavior.js +2 -2
  82. package/Widgets/Widgets3D/ResliceCursorWidget.js +6 -7
  83. package/Widgets/Widgets3D/ShapeWidget/behavior.js +10 -10
  84. package/Widgets/Widgets3D/SplineWidget/behavior.js +5 -5
  85. package/_virtual/rollup-plugin-worker-loader__module_Sources/Filters/General/PaintFilter/PaintFilter.worker.js +1 -1
  86. package/_virtual/rollup-plugin-worker-loader__module_Sources/Interaction/Widgets/PiecewiseGaussianWidget/ComputeHistogram.worker.js +1 -1
  87. package/package.json +2 -2
  88. package/types.d.ts +1 -0
  89. package/vtk.js +2 -2
  90. package/_vendor/base64-js/index.js_commonjs-exports.js +0 -1
  91. package/_vendor/blueimp-md5/js/md5.js_commonjs-module.js +0 -3
  92. package/_vendor/define-properties/index.js_commonjs-proxy.js +0 -1
  93. package/_vendor/globalthis/implementation.browser.js_commonjs-module.js +0 -3
  94. package/_vendor/globalthis/implementation.browser.js_commonjs-proxy.js +0 -1
  95. package/_vendor/globalthis/polyfill.js_commonjs-proxy.js +0 -1
  96. package/_vendor/globalthis/shim.js_commonjs-proxy.js +0 -2
  97. package/_vendor/jszip/dist/jszip.min.js_commonjs-module.js +0 -3
  98. package/_vendor/object-keys/implementation.js_commonjs-proxy.js +0 -1
  99. package/_vendor/object-keys/index.js_commonjs-proxy.js +0 -1
  100. package/_vendor/object-keys/isArguments.js_commonjs-proxy.js +0 -1
  101. package/_vendor/seedrandom/lib/alea.js_commonjs-module.js +0 -3
  102. package/_vendor/seedrandom/lib/alea.js_commonjs-proxy.js +0 -1
  103. package/_vendor/seedrandom/lib/tychei.js_commonjs-module.js +0 -3
  104. package/_vendor/seedrandom/lib/tychei.js_commonjs-proxy.js +0 -1
  105. package/_vendor/seedrandom/lib/xor128.js_commonjs-module.js +0 -3
  106. package/_vendor/seedrandom/lib/xor128.js_commonjs-proxy.js +0 -1
  107. package/_vendor/seedrandom/lib/xor4096.js_commonjs-module.js +0 -3
  108. package/_vendor/seedrandom/lib/xor4096.js_commonjs-proxy.js +0 -1
  109. package/_vendor/seedrandom/lib/xorshift7.js_commonjs-module.js +0 -3
  110. package/_vendor/seedrandom/lib/xorshift7.js_commonjs-proxy.js +0 -1
  111. package/_vendor/seedrandom/lib/xorwow.js_commonjs-module.js +0 -3
  112. package/_vendor/seedrandom/lib/xorwow.js_commonjs-proxy.js +0 -1
  113. package/_vendor/seedrandom/seedrandom.js_commonjs-module.js +0 -3
  114. package/_vendor/seedrandom/seedrandom.js_commonjs-proxy.js +0 -1
  115. package/_vendor/webworker-promise/lib/register.js_commonjs-module.js +0 -3
  116. package/_vendor/webworker-promise/lib/tiny-emitter.js_commonjs-proxy.js +0 -1
  117. package/_vendor/webworker-promise/src/tiny-emitter.js_commonjs-proxy.js +0 -1
  118. package/_vendor/xmlbuilder2/lib/xmlbuilder2.min.js_commonjs-module.js +0 -3
  119. package/_virtual/_rollup_plugin_ignore_empty_module_placeholder_commonjs-proxy.js +0 -6
  120. package/_virtual/commonjsHelpers.js +0 -22
  121. package/_virtual/polyfill-node.buffer.js +0 -1971
  122. package/_virtual/polyfill-node.global.js +0 -5
  123. package/_virtual/rollup_plugin_ignore_empty_module_placeholder.js +0 -8
  124. package/vendor/base64-js/index.js +0 -72
  125. package/vendor/blueimp-md5/js/md5.js +0 -402
  126. package/vendor/d3-array/src/array.js +0 -1
  127. package/vendor/d3-array/src/ascending.js +0 -5
  128. package/vendor/d3-array/src/bin.js +0 -1
  129. package/vendor/d3-array/src/bisect.js +0 -10
  130. package/vendor/d3-array/src/bisector.js +0 -46
  131. package/vendor/d3-array/src/constant.js +0 -1
  132. package/vendor/d3-array/src/count.js +0 -1
  133. package/vendor/d3-array/src/cross.js +0 -1
  134. package/vendor/d3-array/src/cumsum.js +0 -1
  135. package/vendor/d3-array/src/descending.js +0 -1
  136. package/vendor/d3-array/src/deviation.js +0 -1
  137. package/vendor/d3-array/src/difference.js +0 -1
  138. package/vendor/d3-array/src/disjoint.js +0 -1
  139. package/vendor/d3-array/src/every.js +0 -1
  140. package/vendor/d3-array/src/extent.js +0 -1
  141. package/vendor/d3-array/src/filter.js +0 -1
  142. package/vendor/d3-array/src/fsum.js +0 -1
  143. package/vendor/d3-array/src/greatest.js +0 -1
  144. package/vendor/d3-array/src/greatestIndex.js +0 -1
  145. package/vendor/d3-array/src/group.js +0 -1
  146. package/vendor/d3-array/src/groupSort.js +0 -1
  147. package/vendor/d3-array/src/identity.js +0 -1
  148. package/vendor/d3-array/src/index.js +0 -1
  149. package/vendor/d3-array/src/intersection.js +0 -1
  150. package/vendor/d3-array/src/least.js +0 -1
  151. package/vendor/d3-array/src/leastIndex.js +0 -1
  152. package/vendor/d3-array/src/map.js +0 -1
  153. package/vendor/d3-array/src/max.js +0 -1
  154. package/vendor/d3-array/src/maxIndex.js +0 -1
  155. package/vendor/d3-array/src/mean.js +0 -1
  156. package/vendor/d3-array/src/median.js +0 -1
  157. package/vendor/d3-array/src/merge.js +0 -1
  158. package/vendor/d3-array/src/min.js +0 -1
  159. package/vendor/d3-array/src/minIndex.js +0 -1
  160. package/vendor/d3-array/src/mode.js +0 -1
  161. package/vendor/d3-array/src/nice.js +0 -1
  162. package/vendor/d3-array/src/number.js +0 -5
  163. package/vendor/d3-array/src/pairs.js +0 -1
  164. package/vendor/d3-array/src/permute.js +0 -1
  165. package/vendor/d3-array/src/quantile.js +0 -1
  166. package/vendor/d3-array/src/quickselect.js +0 -1
  167. package/vendor/d3-array/src/range.js +0 -1
  168. package/vendor/d3-array/src/reduce.js +0 -1
  169. package/vendor/d3-array/src/reverse.js +0 -1
  170. package/vendor/d3-array/src/scan.js +0 -1
  171. package/vendor/d3-array/src/set.js +0 -1
  172. package/vendor/d3-array/src/shuffle.js +0 -1
  173. package/vendor/d3-array/src/some.js +0 -1
  174. package/vendor/d3-array/src/sort.js +0 -1
  175. package/vendor/d3-array/src/subset.js +0 -1
  176. package/vendor/d3-array/src/sum.js +0 -1
  177. package/vendor/d3-array/src/superset.js +0 -1
  178. package/vendor/d3-array/src/threshold/freedmanDiaconis.js +0 -1
  179. package/vendor/d3-array/src/threshold/scott.js +0 -1
  180. package/vendor/d3-array/src/threshold/sturges.js +0 -1
  181. package/vendor/d3-array/src/ticks.js +0 -56
  182. package/vendor/d3-array/src/transpose.js +0 -1
  183. package/vendor/d3-array/src/union.js +0 -1
  184. package/vendor/d3-array/src/variance.js +0 -1
  185. package/vendor/d3-array/src/zip.js +0 -1
  186. package/vendor/d3-color/src/color.js +0 -373
  187. package/vendor/d3-color/src/cubehelix.js +0 -1
  188. package/vendor/d3-color/src/define.js +0 -12
  189. package/vendor/d3-color/src/index.js +0 -1
  190. package/vendor/d3-color/src/lab.js +0 -1
  191. package/vendor/d3-color/src/math.js +0 -1
  192. package/vendor/d3-format/src/defaultLocale.js +0 -20
  193. package/vendor/d3-format/src/exponent.js +0 -7
  194. package/vendor/d3-format/src/formatDecimal.js +0 -22
  195. package/vendor/d3-format/src/formatGroup.js +0 -20
  196. package/vendor/d3-format/src/formatNumerals.js +0 -9
  197. package/vendor/d3-format/src/formatPrefixAuto.js +0 -18
  198. package/vendor/d3-format/src/formatRounded.js +0 -13
  199. package/vendor/d3-format/src/formatSpecifier.js +0 -49
  200. package/vendor/d3-format/src/formatTrim.js +0 -13
  201. package/vendor/d3-format/src/formatTypes.js +0 -21
  202. package/vendor/d3-format/src/identity.js +0 -5
  203. package/vendor/d3-format/src/index.js +0 -1
  204. package/vendor/d3-format/src/locale.js +0 -150
  205. package/vendor/d3-format/src/precisionFixed.js +0 -7
  206. package/vendor/d3-format/src/precisionPrefix.js +0 -7
  207. package/vendor/d3-format/src/precisionRound.js +0 -8
  208. package/vendor/d3-interpolate/src/array.js +0 -19
  209. package/vendor/d3-interpolate/src/basis.js +0 -1
  210. package/vendor/d3-interpolate/src/basisClosed.js +0 -1
  211. package/vendor/d3-interpolate/src/color.js +0 -26
  212. package/vendor/d3-interpolate/src/constant.js +0 -3
  213. package/vendor/d3-interpolate/src/cubehelix.js +0 -1
  214. package/vendor/d3-interpolate/src/date.js +0 -8
  215. package/vendor/d3-interpolate/src/discrete.js +0 -1
  216. package/vendor/d3-interpolate/src/hcl.js +0 -1
  217. package/vendor/d3-interpolate/src/hsl.js +0 -1
  218. package/vendor/d3-interpolate/src/hue.js +0 -1
  219. package/vendor/d3-interpolate/src/index.js +0 -1
  220. package/vendor/d3-interpolate/src/lab.js +0 -1
  221. package/vendor/d3-interpolate/src/number.js +0 -7
  222. package/vendor/d3-interpolate/src/numberArray.js +0 -16
  223. package/vendor/d3-interpolate/src/object.js +0 -25
  224. package/vendor/d3-interpolate/src/piecewise.js +0 -1
  225. package/vendor/d3-interpolate/src/quantize.js +0 -1
  226. package/vendor/d3-interpolate/src/rgb.js +0 -26
  227. package/vendor/d3-interpolate/src/round.js +0 -7
  228. package/vendor/d3-interpolate/src/string.js +0 -66
  229. package/vendor/d3-interpolate/src/transform/decompose.js +0 -1
  230. package/vendor/d3-interpolate/src/transform/index.js +0 -1
  231. package/vendor/d3-interpolate/src/transform/parse.js +0 -1
  232. package/vendor/d3-interpolate/src/value.js +0 -24
  233. package/vendor/d3-interpolate/src/zoom.js +0 -1
  234. package/vendor/d3-scale/src/band.js +0 -1
  235. package/vendor/d3-scale/src/constant.js +0 -7
  236. package/vendor/d3-scale/src/continuous.js +0 -129
  237. package/vendor/d3-scale/src/diverging.js +0 -1
  238. package/vendor/d3-scale/src/identity.js +0 -1
  239. package/vendor/d3-scale/src/index.js +0 -1
  240. package/vendor/d3-scale/src/init.js +0 -10
  241. package/vendor/d3-scale/src/linear.js +0 -72
  242. package/vendor/d3-scale/src/log.js +0 -1
  243. package/vendor/d3-scale/src/nice.js +0 -1
  244. package/vendor/d3-scale/src/number.js +0 -5
  245. package/vendor/d3-scale/src/ordinal.js +0 -1
  246. package/vendor/d3-scale/src/pow.js +0 -1
  247. package/vendor/d3-scale/src/quantile.js +0 -1
  248. package/vendor/d3-scale/src/quantize.js +0 -1
  249. package/vendor/d3-scale/src/radial.js +0 -1
  250. package/vendor/d3-scale/src/sequential.js +0 -1
  251. package/vendor/d3-scale/src/sequentialQuantile.js +0 -1
  252. package/vendor/d3-scale/src/symlog.js +0 -1
  253. package/vendor/d3-scale/src/threshold.js +0 -1
  254. package/vendor/d3-scale/src/tickFormat.js +0 -35
  255. package/vendor/d3-scale/src/time.js +0 -1
  256. package/vendor/d3-scale/src/utcTime.js +0 -1
  257. package/vendor/d3-time/src/day.js +0 -1
  258. package/vendor/d3-time/src/duration.js +0 -1
  259. package/vendor/d3-time/src/hour.js +0 -1
  260. package/vendor/d3-time/src/index.js +0 -1
  261. package/vendor/d3-time/src/interval.js +0 -1
  262. package/vendor/d3-time/src/millisecond.js +0 -1
  263. package/vendor/d3-time/src/minute.js +0 -1
  264. package/vendor/d3-time/src/month.js +0 -1
  265. package/vendor/d3-time/src/second.js +0 -1
  266. package/vendor/d3-time/src/ticks.js +0 -1
  267. package/vendor/d3-time/src/utcDay.js +0 -1
  268. package/vendor/d3-time/src/utcHour.js +0 -1
  269. package/vendor/d3-time/src/utcMinute.js +0 -1
  270. package/vendor/d3-time/src/utcMonth.js +0 -1
  271. package/vendor/d3-time/src/utcWeek.js +0 -1
  272. package/vendor/d3-time/src/utcYear.js +0 -1
  273. package/vendor/d3-time/src/week.js +0 -1
  274. package/vendor/d3-time/src/year.js +0 -1
  275. package/vendor/d3-time-format/src/defaultLocale.js +0 -1
  276. package/vendor/d3-time-format/src/index.js +0 -1
  277. package/vendor/d3-time-format/src/isoFormat.js +0 -1
  278. package/vendor/d3-time-format/src/isoParse.js +0 -1
  279. package/vendor/d3-time-format/src/locale.js +0 -1
  280. package/vendor/define-properties/index.js +0 -60
  281. package/vendor/gl-matrix/esm/common.js +0 -30
  282. package/vendor/gl-matrix/esm/index.js +0 -1
  283. package/vendor/gl-matrix/esm/mat2.js +0 -1
  284. package/vendor/gl-matrix/esm/mat2d.js +0 -1
  285. package/vendor/gl-matrix/esm/mat3.js +0 -817
  286. package/vendor/gl-matrix/esm/mat4.js +0 -1868
  287. package/vendor/gl-matrix/esm/quat.js +0 -330
  288. package/vendor/gl-matrix/esm/quat2.js +0 -1
  289. package/vendor/gl-matrix/esm/vec2.js +0 -1
  290. package/vendor/gl-matrix/esm/vec3.js +0 -842
  291. package/vendor/gl-matrix/esm/vec4.js +0 -153
  292. package/vendor/globalthis/implementation.browser.js +0 -11
  293. package/vendor/globalthis/index.js +0 -25
  294. package/vendor/globalthis/polyfill.js +0 -14
  295. package/vendor/globalthis/shim.js +0 -25
  296. package/vendor/internmap/src/index.js +0 -1
  297. package/vendor/jszip/dist/jszip.min.js +0 -11
  298. package/vendor/object-keys/implementation.js +0 -124
  299. package/vendor/object-keys/index.js +0 -35
  300. package/vendor/object-keys/isArguments.js +0 -17
  301. package/vendor/pako/dist/pako.esm.mjs.js +0 -6707
  302. package/vendor/seedrandom/index.js +0 -77
  303. package/vendor/seedrandom/lib/alea.js +0 -117
  304. package/vendor/seedrandom/lib/tychei.js +0 -105
  305. package/vendor/seedrandom/lib/xor128.js +0 -84
  306. package/vendor/seedrandom/lib/xor4096.js +0 -150
  307. package/vendor/seedrandom/lib/xorshift7.js +0 -101
  308. package/vendor/seedrandom/lib/xorwow.js +0 -89
  309. package/vendor/seedrandom/seedrandom.js +0 -256
  310. package/vendor/webworker-promise/lib/register.js +0 -158
  311. package/vendor/webworker-promise/lib/tiny-emitter.js +0 -89
  312. package/vendor/webworker-promise/src/index.js +0 -110
  313. package/vendor/webworker-promise/src/tiny-emitter.js +0 -51
  314. package/vendor/xmlbuilder2/lib/xmlbuilder2.min.js +0 -13
@@ -1,4 +1,5 @@
1
1
  import { mat2, mat3, vec2, vec3, vec4 } from "gl-matrix";
2
+ import { Bounds, Extent, RGBAColor, RGBColor } from '@kitware/vtk.js/types';
2
3
 
3
4
  /**
4
5
  *
@@ -25,64 +26,65 @@ export function degreesFromRadians(rad: number): number;
25
26
 
26
27
  /**
27
28
  * Same as Math.round().
28
- * @param {Number} param1 A number.
29
+ * @param {Number} param1 The value to be rounded to the nearest integer.
29
30
  */
30
31
  export function round(param1: number): number;
31
32
 
32
33
  /**
33
34
  * Same as Math.floor().
34
- * @param {Number} param1 A number.
35
+ * @param {Number} param1 A numeric expression.
35
36
  */
36
37
  export function floor(param1: number): number;
37
38
 
38
39
  /**
39
40
  * Same as Math.ceil().
40
- * @param {Number} param1 A number.
41
+ * @param {Number} param1 A numeric expression.
41
42
  */
42
43
  export function ceil(param1: number): number;
43
44
 
44
45
  /**
45
46
  * Get the minimum of the two arguments provided. If either argument is NaN,
46
47
  * the first argument will always be returned.
47
- * @param {Number} param1 The first number.
48
- * @param {Number} param2 The second number.
48
+ * @param {Number} param1 The first numeric expression.
49
+ * @param {Number} param2 The second numeric expression.
49
50
  */
50
51
  export function min(param1: number, param2: number): number;
51
52
 
52
53
  /**
53
54
  * Get the maximum of the two arguments provided. If either argument is NaN,
54
55
  * the first argument will always be returned.
55
- * @param {Number} param1
56
- * @param {Number} param2
56
+ * @param {Number} param1 The first numeric expression.
57
+ * @param {Number} param2 The second numeric expression.
57
58
  */
58
59
  export function max(param1: number, param2: number): number;
59
60
 
60
61
  /**
61
62
  * Get the minimum of the array.
62
- * @param {Number[]} arr
63
- * @param {Number} offset
64
- * @param {Number} stride
63
+ * @param {Number[]} arr The array.
64
+ * @param {Number} offset The offset.
65
+ * @param {Number} stride The stride.
65
66
  */
66
67
  export function arrayMin(arr: number[], offset: number, stride: number): number;
67
68
 
68
69
  /**
69
70
  * Get the maximum of the array.
70
- * @param {Number[]} arr
71
- * @param {Number} offset
72
- * @param {Number} stride
71
+ * @param {Number[]} arr The array.
72
+ * @param {Number} offset The offset.
73
+ * @param {Number} stride The stride.
73
74
  */
74
75
  export function arrayMax(arr: number[], offset: number, stride: number): number;
75
76
 
76
77
  /**
77
78
  *
78
- * @param {Number[]} arr
79
- * @param {Number} offset
80
- * @param {Number} stride
79
+ * @param {Number[]} arr The array.
80
+ * @param {Number} offset The offset.
81
+ * @param {Number} stride The stride.
81
82
  */
82
83
  export function arrayRange(arr: number[], offset: number, stride: number): number[];
83
84
 
84
85
  /**
85
86
  * Gives the exponent of the lowest power of two not less than x.
87
+ *
86
88
  */
87
89
  export function ceilLog2(): void;
88
90
 
@@ -99,27 +101,27 @@ export function gaussian(): void;
99
101
 
100
102
  /**
101
103
  * Compute the nearest power of two that is not less than x.
102
- * @param {Number} xi
104
+ * @param {Number} xi A numeric expression.
103
105
  */
104
106
  export function nearestPowerOfTwo(xi: number): number;
105
107
 
106
108
  /**
107
109
  * Returns true if integer is a power of two.
108
- * @param {Number} x
110
+ * @param {Number} x A numeric expression.
109
111
  */
110
112
  export function isPowerOfTwo(x: number): boolean;
111
113
 
112
114
  /**
113
115
  * The number of combinations of n objects from a pool of m objects (m>n).
114
- * @param {Number} m
115
- * @param {Number} n
116
+ * @param {Number} m The first numeric expression.
117
+ * @param {Number} n The second numeric expression.
116
118
  */
117
119
  export function binomial(m: number, n: number): number;
118
120
 
119
121
  /**
120
122
  * Start iterating over "m choose n" objects.
121
- * @param {Number} [m]
122
- * @param {Number} [n]
123
+ * @param {Number} [m] The first numeric expression.
124
+ * @param {Number} [n] The second numeric expression.
123
125
  */
124
126
  export function beginCombination(m?: number, n?: number): number;
125
127
 
@@ -127,15 +129,15 @@ export function beginCombination(m?: number, n?: number): number;
127
129
  * Given m, n, and a valid combination of n integers in the range [0,m[, this
128
130
  * function alters the integers into the next combination in a sequence of all
129
131
  * combinations of n items from a pool of m.
130
- * @param {Number} m
131
- * @param {Number} n
132
- * @param {Number[]} r
132
+ * @param {Number} m The first numeric expression.
133
+ * @param {Number} n The second numeric expression.
134
+ * @param {Number[]} r
133
135
  */
134
136
  export function nextCombination(m: number, n: number, r: number[]): number;
135
137
 
136
138
  /**
137
139
  * Initialize seed value.
138
- * @param {Number} seed
140
+ * @param {Number} seed
139
141
  */
140
142
  export function randomSeed(seed: number): void;
141
143
 
@@ -147,16 +149,16 @@ export function getSeed(): number;
147
149
  /**
148
150
  * Generate pseudo-random numbers distributed according to the uniform
149
151
  * distribution between min and max.
150
- * @param {Number} minValue
151
- * @param {Number} maxValue
152
+ * @param {Number} minValue
153
+ * @param {Number} maxValue
152
154
  */
153
155
  export function random(minValue: number, maxValue: number): number;
154
156
 
155
157
  /**
156
- * Addition of two 3-vectors (float version).
157
- * @param {vec3} a
158
- * @param {vec3} b
159
- * @param {vec3} out
158
+ * Addition of two 3-vectors.
159
+ * @param {vec3} a The first 3D vector.
160
+ * @param {vec3} b The second 3D vector.
161
+ * @param {vec3} out The output 3D vector.
160
162
  * @example
161
163
  * ```js
162
164
  * a[3] + b[3] => out[3]
@@ -165,10 +167,10 @@ export function random(minValue: number, maxValue: number): number;
165
167
  export function add(a: vec3, b: vec3, out: vec3): vec3;
166
168
 
167
169
  /**
168
- *
169
- * @param {vec3} a
170
- * @param {vec3} b
171
- * @param {vec3} out
170
+ * Subtraction of two 3-vectors.
171
+ * @param {vec3} a The first 3D vector.
172
+ * @param {vec3} b The second 3D vector.
173
+ * @param {vec3} out The output 3D vector.
172
174
  * @example
173
175
  * ```js
174
176
  * a[3] - b[3] => out[3]
@@ -201,8 +203,8 @@ export function multiplyScalar2D(vec: vec2, scalar: number): vec2;
201
203
  /**
202
204
  *
203
205
  * @param {vec3} a
204
- * @param {vec3} b
205
- * @param {Number} scalar
206
+ * @param {vec3} b
207
+ * @param {Number} scalar
206
208
  * @param {vec3} out
207
209
  * @example
208
210
  * ```js
@@ -236,20 +238,18 @@ export function multiplyAccumulate2D(a: vec2, b: vec2, scalar: number, out: vec2
236
238
  export function dot(x: vec3, y: vec3): number;
237
239
 
238
240
  /**
239
- *
240
- * @param {vec3} x
241
- * @param {vec3} y
242
- * @param {mat3} out_3x3
241
+ * Outer product of two 3-vectors.
242
+ * @param {vec3} x The first 3D vector.
243
+ * @param {vec3} y The second 3D vector.
244
+ * @param {mat3} out_3x3 The output 3x3 matrix.
243
245
  */
244
246
  export function outer(x: vec3, y: vec3, out_3x3: mat3): void;
245
247
 
246
248
  /**
247
249
  * Computes cross product of 3D vectors x and y.
248
- * Returns out.
249
- * It is safe to x or y as out.
250
- * @param {vec3} x
251
- * @param {vec3} y
252
- * @param {vec3} out
250
+ * @param {vec3} x The first 3D vector.
251
+ * @param {vec3} y The second 3D vector.
252
+ * @param {vec3} out The output 3D vector.
253
253
  */
254
254
  export function cross(x: vec3, y: vec3, out: vec3): vec3;
255
255
 
@@ -262,16 +262,16 @@ export function norm(x: number[], n: number): number;
262
262
 
263
263
  /**
264
264
  * Normalize in place. Returns norm.
265
- * @param {vec3} x
265
+ * @param {vec3} x The vector to normlize.
266
266
  */
267
267
  export function normalize(x: vec3): number;
268
268
 
269
269
  /**
270
- *
271
- * @param {vec3} x
272
- * @param {vec3} y
273
- * @param {vec3} z
274
- * @param {Number} theta
270
+ * Given a unit vector v1, find two unit vectors v2 and v3 such that v1 cross v2 = v3
271
+ * @param {vec3} x The first vector.
272
+ * @param {vec3} y The second vector.
273
+ * @param {vec3} z The third vector.
274
+ * @param {Number} theta
275
275
  */
276
276
  export function perpendiculars(x: vec3, y: vec3, z: vec3, theta: number): void;
277
277
 
@@ -291,24 +291,25 @@ export function projectVector(a: vec3, b: vec3, projection: vec3): boolean;
291
291
  export function dot2D(x: vec2, y: vec2): number;
292
292
 
293
293
  /**
294
- *
295
- * @param {vec2} a
296
- * @param {vec2} b
297
- * @param projection
294
+ * Compute the projection of 2D vector `a` on 2D vector `b` and returns the
295
+ * result in projection vector.
296
+ * @param {vec2} a The first 2D vector.
297
+ * @param {vec2} b The second 2D vector.
298
+ * @param {vec2} projection The projection 2D vector.
298
299
  */
299
300
  export function projectVector2D(a: vec2, b: vec2, projection: vec2): boolean;
300
301
 
301
302
  /**
302
- *
303
- * @param {vec3} x
304
- * @param {vec3} y
303
+ * Compute distance squared between two points p1 and p2.
304
+ * @param {vec3} x The first 3D vector.
305
+ * @param {vec3} y The second 3D vector.
305
306
  */
306
307
  export function distance2BetweenPoints(x: vec3, y: vec3): number;
307
308
 
308
309
  /**
309
- * Angle between 3D vectors
310
- * @param {vec3} v1
311
- * @param {vec3} v2
310
+ * Angle between 3D vectors.
311
+ * @param {vec3} v1 The first 3D vector.
312
+ * @param {vec3} v2 The second 3D vector.
312
313
  */
313
314
  export function angleBetweenVectors(v1: vec3, v2: vec3): number;
314
315
 
@@ -318,46 +319,47 @@ export function angleBetweenVectors(v1: vec3, v2: vec3): number;
318
319
  * angle between v1 and v2 with regards to plane defined by normal vN.Signed
319
320
  * angle between v1 and v2 with regards to plane defined by normal
320
321
  * vN.t3(mat_3x3, in_3, out_3)
321
- * @param {vec3} v1
322
- * @param {vec3} v2
322
+ * @param {vec3} v1 The first 3D vector.
323
+ * @param {vec3} v2 The second 3D vector.
323
324
  * @param {vec3} vN
324
325
  */
325
326
  export function signedAngleBetweenVectors(v1: vec3, v2: vec3, vN: vec3): number;
326
327
 
327
328
 
328
329
  /**
329
- *
330
- * @param {Number} mean
331
- * @param {Number} variance
332
- * @param {Number} position
330
+ * Compute the amplitude of a Gaussian function with mean=0 and specified variance.
331
+ * @param {Number} mean The mean value.
332
+ * @param {Number} variance The variance value.
333
+ * @param {Number} position The position value.
333
334
  */
334
335
  export function gaussianAmplitude(mean: number, variance: number, position: number): number;
335
336
 
336
337
  /**
337
- *
338
- * @param {Number} mean
339
- * @param {Number} variance
340
- * @param {Number} position
338
+ * Compute the amplitude of an unnormalized Gaussian function with mean=0 and
339
+ * specified variance.
340
+ * @param {Number} mean The mean value.
341
+ * @param {Number} variance The variance value.
342
+ * @param {Number} position The position value.
341
343
  */
342
344
  export function gaussianWeight(mean: number, variance: number, position: number): number;
343
345
 
344
346
  /**
345
- *
346
- * @param {vec2} x
347
- * @param {vec2} y
348
- * @param {mat2} out_2x2
347
+ * Outer product of two 2-vectors.
348
+ * @param {vec2} x The first 2D vector.
349
+ * @param {vec2} y The second 2D vector.
350
+ * @param {mat2} out_2x2 The output 2x2 matrix.
349
351
  */
350
352
  export function outer2D(x: vec2, y: vec2, out_2x2: mat2): void;
351
353
 
352
354
  /**
353
- *
354
- * @param {vec2} x2D
355
+ * Compute the norm of a 2-vector.
356
+ * @param {vec2} x2D x The 2D vector.
355
357
  */
356
358
  export function norm2D(x2D: vec2): number;
357
359
 
358
360
  /**
359
- *
360
- * @param {vec2} x
361
+ * Normalize (in place) a 2-vector.
362
+ * @param {vec2} x The 2D vector.
361
363
  */
362
364
  export function normalize2D(x: vec2): number;
363
365
 
@@ -368,25 +370,25 @@ export function normalize2D(x: vec2): number;
368
370
  export function determinant2x2(args: number[]): number;
369
371
 
370
372
  /**
371
- *
373
+ * LU Factorization of a 3x3 matrix.
372
374
  * @param {mat3} mat_3x3
373
- * @param {vec3} index_3
375
+ * @param {vec3} index_3
374
376
  */
375
377
  export function LUFactor3x3(mat_3x3: mat3, index_3: vec3): void;
376
378
 
377
379
  /**
378
- *
380
+ * LU back substitution for a 3x3 matrix.
379
381
  * @param {mat3} mat_3x3
380
- * @param {vec3} index_3
381
- * @param {vec3} x_3
382
+ * @param {vec3} index_3
383
+ * @param {vec3} x_3
382
384
  */
383
385
  export function LUSolve3x3(mat_3x3: mat3, index_3: vec3, x_3: vec3): void;
384
386
 
385
387
  /**
386
- *
388
+ * Solve mat_3x3y_3 = x_3 for y and place the result in y.
387
389
  * @param {mat3} mat_3x3
388
- * @param {vec3} x_3
389
- * @param {vec3} y_3
390
+ * @param {vec3} x_3
391
+ * @param {vec3} y_3
390
392
  */
391
393
  export function linearSolve3x3(mat_3x3: mat3, x_3: vec3, y_3: vec3): void;
392
394
 
@@ -419,28 +421,28 @@ export function multiply3x3_mat3(a_3x3: mat3, b_3x3: mat3, out_3x3: mat3): void;
419
421
  export function multiplyMatrix(a: number[], b: number[], rowA: number, colA: number, rowB: number, colB: number, out_rowXcol: number[]): void;
420
422
 
421
423
  /**
422
- *
423
- * @param {mat3} in_3x3
424
- * @param {mat3} outT_3x3
424
+ * Transpose a 3x3 matrix.
425
+ * @param {mat3} in_3x3 The input 3x3 matrix.
426
+ * @param {mat3} outT_3x3 The output 3x3 matrix.
425
427
  */
426
428
  export function transpose3x3(in_3x3: mat3, outT_3x3: mat3): void;
427
429
 
428
430
  /**
429
- *
430
- * @param {mat3} in_3x3
431
- * @param {mat3} outI_3x3
431
+ * Invert a 3x3 matrix.
432
+ * @param {mat3} in_3x3 The input 3x3 matrix.
433
+ * @param {mat3} outI_3x3 The output 3x3 matrix.
432
434
  */
433
435
  export function invert3x3(in_3x3: mat3, outI_3x3: mat3): void;
434
436
 
435
437
  /**
436
- *
437
- * @param {mat3} mat_3x3
438
+ * Set mat_3x3 to the identity matrix.
439
+ * @param {mat3} mat_3x3 The input 3x3 matrix.
438
440
  */
439
441
  export function identity3x3(mat_3x3: mat3): void;
440
442
 
441
443
  /**
442
- *
443
- * @param {mat3} mat_3x3
444
+ * Calculate the determinant of a 3x3 matrix.
445
+ * @param {mat3} mat_3x3 The input 3x3 matrix.
444
446
  */
445
447
  export function determinant3x3(mat_3x3: mat3): number;
446
448
 
@@ -469,7 +471,7 @@ export function roundNumber(num: number, digits?: number): number;
469
471
  /**
470
472
  *
471
473
  * @param {vec3} vector
472
- * @param {vec3} [out]
474
+ * @param {vec3} [out]
473
475
  * @param {Number} [digits]
474
476
  */
475
477
  export function roundVector(vector: vec3, out?: vec3, digits?: number): vec3;
@@ -486,15 +488,15 @@ export function jacobiN(a: number[], n: number, w: number[], v: number[]): numbe
486
488
  /**
487
489
  *
488
490
  * @param {mat3} mat_3x3
489
- * @param {vec4} quat_4
491
+ * @param {vec4} quat_4
490
492
  */
491
493
  export function matrix3x3ToQuaternion(mat_3x3: mat3, quat_4: vec4): void;
492
494
 
493
495
  /**
494
496
  *
495
- * @param {vec4} quat_1
496
- * @param {vec4} quat_2
497
- * @param {vec4} quat_out
497
+ * @param {vec4} quat_1
498
+ * @param {vec4} quat_2
499
+ * @param {vec4} quat_out
498
500
  */
499
501
  export function multiplyQuaternion(quat_1: vec4, quat_2: vec4, quat_out: vec4): void;
500
502
 
@@ -616,21 +618,21 @@ export function hsv2rgb(hsv: vec3, rgb: vec3): void;
616
618
 
617
619
  /**
618
620
  *
619
- * @param {vec3} lab
620
- * @param {vec3} xyz
621
+ * @param {vec3} lab
622
+ * @param {vec3} xyz
621
623
  */
622
624
  export function lab2xyz(lab: vec3, xyz: vec3): void;
623
625
 
624
626
  /**
625
627
  *
626
- * @param {vec3} xyz
627
- * @param {vec3} lab
628
+ * @param {vec3} xyz
629
+ * @param {vec3} lab
628
630
  */
629
631
  export function xyz2lab(xyz: vec3, lab: vec3): void;
630
632
 
631
633
  /**
632
634
  *
633
- * @param {vec3} xyz
635
+ * @param {vec3} xyz
634
636
  * @param {vec3} rgb An Array of the RGB color.
635
637
  */
636
638
  export function xyz2rgb(xyz: vec3, rgb: vec3): void;
@@ -638,20 +640,20 @@ export function xyz2rgb(xyz: vec3, rgb: vec3): void;
638
640
  /**
639
641
  *
640
642
  * @param {vec3} rgb An Array of the RGB color.
641
- * @param {vec3} xyz
643
+ * @param {vec3} xyz
642
644
  */
643
645
  export function rgb2xyz(rgb: vec3, xyz: vec3): void;
644
646
 
645
647
  /**
646
648
  *
647
- * @param {vec3} rgb
648
- * @param {vec3} lab
649
+ * @param {vec3} rgb
650
+ * @param {vec3} lab
649
651
  */
650
652
  export function rgb2lab(rgb: vec3, lab: vec3): void;
651
653
 
652
654
  /**
653
655
  *
654
- * @param {vec3} lab
656
+ * @param {vec3} lab
655
657
  * @param {vec3} rgb An Array of the RGB color.
656
658
  */
657
659
  export function lab2rgb(lab: vec3, rgb: vec3): void;
@@ -664,51 +666,52 @@ export function uninitializeBounds(bounds: number[]): number[];
664
666
 
665
667
  /**
666
668
  *
667
- * @param {vec2} bounds
669
+ * @param {vec2} bounds The bounds to check.
668
670
  */
669
671
  export function areBoundsInitialized(bounds: vec2): boolean;
670
672
 
671
673
  /**
672
- * Returns bounds.
673
- * @param {vec3} point1
674
- * @param {vec3} point2
674
+ * Compute the bounds from points.
675
+ * @param {vec3} point1 The coordinate of the first point.
676
+ * @param {vec3} point2 The coordinate of the second point.
675
677
  * @param {Number[]} bounds Output array that hold bounds, optionally empty.
676
678
  */
677
679
  export function computeBoundsFromPoints(point1: vec3, point2: vec3, bounds: number[]): number[];
678
680
 
679
681
  /**
680
- *
681
- * @param {Number} value
682
- * @param {Number} minValue
683
- * @param {Number} maxValue
682
+ * Clamp some value against a range.
683
+ * @param {Number} value The value to clamp.
684
+ * @param {Number} minValue The minimum value.
685
+ * @param {Number} maxValue The maximum value.
684
686
  */
685
687
  export function clampValue(value: number, minValue: number, maxValue: number): number;
686
688
 
687
689
  /**
688
- *
689
- * @param {vec3} vector
690
- * @param {vec3} minVector
691
- * @param {vec3} maxVector
692
- * @param {vec3} out
690
+ * Clamp some vector against a range.
691
+ * @param {vec3} vector The vector to clamp.
692
+ * @param {vec3} minVector The minimum vector.
693
+ * @param {vec3} maxVector The maximum vector.
694
+ * @param {vec3} out The output vector.
693
695
  */
694
696
  export function clampVector(vector: vec3, minVector: vec3, maxVector: vec3, out: vec3): vec3;
695
697
 
696
698
  /**
697
699
  *
698
- * @param {vec3} vector
699
- * @param {vec3} out
700
+ * @param {vec3} vector
701
+ * @param {vec3} out
700
702
  */
701
703
  export function roundVector(vector: vec3, out: vec3): vec3;
702
704
 
703
705
  /**
704
706
  *
705
707
  * @param {Number} value
706
- * @param {vec2} range
708
+ * @param {vec2} range
707
709
  */
708
710
  export function clampAndNormalizeValue(value: number, range: vec2): number;
709
711
 
710
712
  /**
711
- *
713
+ * Get the scalar type that is most likely to have enough precision to store a
714
+ * given range of data once it has been scaled and shifted
712
715
  */
713
716
  export function getScalarTypeFittingRange(): void;
714
717
 
@@ -718,47 +721,54 @@ export function getScalarTypeFittingRange(): void;
718
721
  export function getAdjustedScalarRange(): void;
719
722
 
720
723
  /**
721
- *
722
- * @param {Number[]} extent1
723
- * @param {Number[]} extent2
724
+ * Check if first 3D extent is within second 3D extent.
725
+ * @param {Extent} extent1 The first extent.
726
+ * @param {Extent} extent2 The second extent.
724
727
  */
725
- export function extentIsWithinOtherExtent(extent1: number[], extent2: number[]): number;
728
+ export function extentIsWithinOtherExtent(extent1: Extent, extent2: Extent): number;
726
729
 
727
730
  /**
728
- *
729
- * @param {Number[]} bounds1_6
730
- * @param {Number[]} bounds2_6
731
- * @param {vec3} delta_3
731
+ * Check if first 3D bounds is within the second 3D bounds.
732
+ * @param {Bounds} bounds1_6 The first bounds.
733
+ * @param {Bounds} bounds2_6 The second bounds.
734
+ * @param {vec3} delta_3 The error margin along each axis.
732
735
  */
733
- export function boundsIsWithinOtherBounds(bounds1_6: number[], bounds2_6: number[], delta_3: vec3): number;
736
+ export function boundsIsWithinOtherBounds(bounds1_6: Bounds, bounds2_6: Bounds, delta_3: vec3): number;
734
737
 
735
738
  /**
736
- *
737
- * @param {vec3} point_3
738
- * @param {Number[]} bounds_6
739
- * @param {vec3} delta_3
739
+ * Check if point is within the given 3D bounds.
740
+ * @param {vec3} point_3 The coordinate of the point.
741
+ * @param {Bounds} bounds_6 The bounds.
742
+ * @param {vec3} delta_3 The error margin along each axis.
740
743
  */
741
- export function pointIsWithinBounds(point_3: vec3, bounds_6: number[], delta_3: vec3): number;
744
+ export function pointIsWithinBounds(point_3: vec3, bounds_6: Bounds, delta_3: vec3): number;
742
745
 
743
746
  /**
747
+ * In Euclidean space, there is a unique circle passing through any given three
748
+ * non-collinear points P1, P2, and P3.
744
749
  *
745
- * @param {vec3} p1
746
- * @param {vec3} p2
747
- * @param {vec3} p3
748
- * @param {vec3} center
750
+ * Using Cartesian coordinates to represent these points as spatial vectors, it
751
+ * is possible to use the dot product and cross product to calculate the radius
752
+ * and center of the circle. See:
753
+ * http://en.wikipedia.org/wiki/Circumscribed_circle and more specifically the
754
+ * section Barycentric coordinates from cross- and dot-products
755
+ * @param {vec3} p1 The coordinate of the first point.
756
+ * @param {vec3} p2 The coordinate of the second point.
757
+ * @param {vec3} p3 The coordinate of the third point.
758
+ * @param {vec3} center The coordinate of the center point.
749
759
  */
750
760
  export function solve3PointCircle(p1: vec3, p2: vec3, p3: vec3, center: vec3): number;
751
-
761
+
752
762
  /**
753
763
  * Determines whether the passed value is a infinite number.
754
- * @param {Number} value
764
+ * @param {Number} value The value to check.
755
765
  */
756
766
  export function isInf(value: number): boolean;
757
767
 
758
768
  /**
759
769
  *
760
770
  */
761
- export function createUninitializedBounds(): number[];
771
+ export function createUninitializedBounds(): Bounds;
762
772
 
763
773
  /**
764
774
  *
@@ -768,7 +778,7 @@ export function getMajorAxisIndex(vector: number[]): number;
768
778
 
769
779
  /**
770
780
  *
771
- * @param {Number} value
781
+ * @param {Number} value The value to convert.
772
782
  */
773
783
  export function floatToHex2(value: number): string;
774
784
 
@@ -780,26 +790,26 @@ export function floatToHex2(value: number): string;
780
790
  export function floatRGB2HexCode(rgbArray: number[], prefix?: string): string;
781
791
 
782
792
  /**
783
- *
784
- * @param {Number[]} rgbArray
793
+ * Convert RGB or RGBA color array to CSS representation
794
+ * @param {RGBColor|RGBAColor} rgbArray The color array.
785
795
  */
786
- export function float2CssRGBA(rgbArray: number[]): string;
796
+ export function float2CssRGBA(rgbArray: RGBColor | RGBAColor): string;
787
797
 
788
798
  /**
789
799
  * Determines whether the passed value is a NaN.
790
- * @param {Number} value
800
+ * @param {Number} value The value to check.
791
801
  */
792
802
  export function isNan(value: number): boolean;
793
803
 
794
804
  /**
795
805
  * Determines whether the passed value is a NaN.
796
- * @param {Number} value
806
+ * @param {Number} value The value to check.
797
807
  */
798
808
  export function isNaN(value: number): boolean;
799
809
 
800
810
  /**
801
811
  * Determines whether the passed value is a finite number.
802
- * @param value
812
+ * @param value The value to check.
803
813
  */
804
814
  export function isFinite(value: any): boolean;
805
815
 
@@ -1,4 +1,4 @@
1
1
  import '@babel/runtime/helpers/slicedToArray';
2
- import '../../vendor/seedrandom/index.js';
2
+ import 'seedrandom';
3
3
  import '../../macros.js';
4
4
  export { ae as LUFactor3x3, af as LUSolve3x3, T as Pi, k as add, R as angleBetweenVectors, O as areBoundsInitialized, z as areEquals, a as areMatricesEqual, Y as arrayMax, X as arrayMin, C as arrayRange, a0 as beginCombination, $ as binomial, aJ as boundsIsWithinOtherBounds, U as ceil, Z as ceilLog2, aF as clampAndNormalizeValue, A as clampValue, e as clampVector, c as computeBoundsFromPoints, M as createUninitializedBounds, j as cross, q as default, y as degreesFromRadians, m as determinant2x2, x as determinant3x3, ar as diagonalize3x3, f as distance2BetweenPoints, d as dot, a8 as dot2D, aw as estimateMatrixCondition, aI as extentIsWithinOtherExtent, _ as factorial, aS as float2CssRGBA, aR as floatRGB2HexCode, aQ as floatToHex2, I as floor, a4 as gaussian, aa as gaussianAmplitude, ab as gaussianWeight, aH as getAdjustedScalarRange, D as getMajorAxisIndex, aG as getScalarTypeFittingRange, a3 as getSeed, aA as hex2float, h as hsv2rgb, al as identity3x3, aM as inf, ak as invert3x3, av as invertMatrix, aO as isFinite, E as isInf, aP as isNaN, i as isNan, P as isPowerOfTwo, ax as jacobi, o as jacobiN, H as lab2rgb, aB as lab2xyz, ag as linearSolve3x3, at as luFactorLinearSystem, au as luSolveLinearSystem, ao as matrix3x3ToQuaternion, W as max, V as min, ah as multiply3x3_mat3, N as multiply3x3_vect3, Q as multiplyAccumulate, a6 as multiplyAccumulate2D, ai as multiplyMatrix, ap as multiplyQuaternion, t as multiplyScalar, a5 as multiplyScalar2D, K as nearestPowerOfTwo, aN as negInf, a1 as nextCombination, n as norm, ad as norm2D, l as normalize, L as normalize2D, aq as orthogonalize3x3, a7 as outer, ac as outer2D, p as perpendiculars, aK as pointIsWithinBounds, B as projectVector, a9 as projectVector2D, am as quaternionToMatrix3x3, r as radiansFromDegrees, w as random, a2 as randomSeed, F as rgb2hsv, G as rgb2lab, aE as rgb2xyz, J as round, an as roundNumber, b as roundVector, S as signedAngleBetweenVectors, as as singularValueDecomposition3x3, aL as solve3PointCircle, ay as solveHomogeneousLeastSquares, az as solveLeastSquares, s as solveLinearSystem, g as subtract, aj as transpose3x3, u as uninitializeBounds, aC as xyz2lab, aD as xyz2rgb } from './Math/index.js';