littlejsengine 1.1.2 → 1.1.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 (94) hide show
  1. package/README.md +55 -0
  2. package/build.bat +2 -1
  3. package/engine/engine.all.js +1320 -930
  4. package/engine/engine.all.min.js +1 -1
  5. package/engine/engine.all.release.js +965 -601
  6. package/engine/engine.js +71 -60
  7. package/engine/engineAudio.js +80 -22
  8. package/engine/engineBuild.bat +2 -2
  9. package/engine/engineDebug.js +65 -36
  10. package/engine/engineDraw.js +71 -56
  11. package/engine/engineInput.js +178 -28
  12. package/engine/engineMedals.js +66 -58
  13. package/engine/engineObject.js +86 -71
  14. package/engine/engineParticles.js +101 -63
  15. package/engine/engineRelease.js +4 -1
  16. package/engine/engineSettings.js +62 -53
  17. package/engine/engineTileLayer.js +99 -83
  18. package/engine/engineUtilities.js +95 -59
  19. package/engine/engineWebGL.js +53 -48
  20. package/examples/breakout/game.js +1 -1
  21. package/examples/breakout/gameObjects.js +2 -2
  22. package/examples/breakout/index.html +7 -5
  23. package/examples/platformer/game.js +7 -4
  24. package/examples/platformer/gameEffects.js +8 -11
  25. package/examples/platformer/gameLevel.js +15 -8
  26. package/examples/platformer/gameObjects.js +2 -2
  27. package/examples/platformer/gamePlayer.js +6 -6
  28. package/examples/platformer/index.html +10 -8
  29. package/examples/puzzle/game.js +3 -3
  30. package/examples/puzzle/index.html +6 -4
  31. package/examples/stress/index.html +7 -5
  32. package/game.js +10 -10
  33. package/index.html +17 -15
  34. package/package.json +4 -7
  35. package/tiles.png +0 -0
  36. package/LittleJS.zip +0 -0
  37. package/docs/Audio.html +0 -2264
  38. package/docs/Color.html +0 -2506
  39. package/docs/Debug.html +0 -2929
  40. package/docs/Draw.html +0 -3854
  41. package/docs/EngineObject.html +0 -2506
  42. package/docs/Input.html +0 -2478
  43. package/docs/Medal.html +0 -992
  44. package/docs/Medals.html +0 -624
  45. package/docs/Music.html +0 -569
  46. package/docs/Newgrounds.html +0 -1384
  47. package/docs/Particle.html +0 -567
  48. package/docs/ParticleEmitter.html +0 -1537
  49. package/docs/Random.html +0 -1770
  50. package/docs/Settings.html +0 -2885
  51. package/docs/Sound.html +0 -998
  52. package/docs/TileLayer.html +0 -3211
  53. package/docs/TileLayerData.html +0 -569
  54. package/docs/Timer.html +0 -1168
  55. package/docs/Utilities.html +0 -3266
  56. package/docs/Vector2.html +0 -3956
  57. package/docs/WebGL.html +0 -1842
  58. package/docs/engine.js.html +0 -428
  59. package/docs/engineAudio.js.html +0 -567
  60. package/docs/engineDebug.js.html +0 -721
  61. package/docs/engineDraw.js.html +0 -409
  62. package/docs/engineInput.js.html +0 -397
  63. package/docs/engineMedals.js.html +0 -445
  64. package/docs/engineObject.js.html +0 -492
  65. package/docs/engineParticles.js.html +0 -399
  66. package/docs/engineSettings.js.html +0 -358
  67. package/docs/engineTileLayer.js.html +0 -482
  68. package/docs/engineUtilities.js.html +0 -600
  69. package/docs/engineWebGL.js.html +0 -507
  70. package/docs/fonts/MavenPro-Regular.ttf +0 -0
  71. package/docs/fonts/Montserrat-Regular.ttf +0 -0
  72. package/docs/fonts/Muli-Black.ttf +0 -0
  73. package/docs/fonts/OFL-hind.txt +0 -93
  74. package/docs/fonts/OFL-montserrat.txt +0 -93
  75. package/docs/global.html +0 -1635
  76. package/docs/index.html +0 -243
  77. package/docs/scripts/fix-code-block.js +0 -53
  78. package/docs/scripts/fix-navbar.js +0 -25
  79. package/docs/scripts/linenumber.js +0 -25
  80. package/docs/scripts/misc.js +0 -217
  81. package/docs/scripts/resize.js +0 -85
  82. package/docs/scripts/search.js +0 -83
  83. package/docs/scripts/third-party/Apache-License-2.0.txt +0 -202
  84. package/docs/scripts/third-party/fuse.js +0 -9
  85. package/docs/scripts/third-party/lang-css.js +0 -2
  86. package/docs/scripts/third-party/prettify.js +0 -28
  87. package/docs/static/favicon.png +0 -0
  88. package/docs/styles/clean-jsdoc-theme-base.css +0 -393
  89. package/docs/styles/clean-jsdoc-theme-dark.css +0 -324
  90. package/docs/styles/clean-jsdoc-theme-light.css +0 -319
  91. package/docs/styles/reset.css +0 -346
  92. package/docs/styles/third-party/ionicons.min.css +0 -11
  93. package/docs/styles/third-party/prettify-jsdoc.css +0 -111
  94. package/docs/styles/third-party/prettify-tomorrow.css +0 -5
@@ -1,3266 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="utf-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
-
8
- <!-- Adding favicon -->
9
-
10
- <link rel="icon" href="./static/favicon.png" />
11
-
12
-
13
- <!-- Adding meta -->
14
-
15
-
16
- <!-- Adding external script-->
17
-
18
-
19
- <!-- Adding external style-->
20
-
21
-
22
- <!-- Adding scripts-->
23
-
24
-
25
- <!-- Adding style-->
26
-
27
-
28
- <!-- Adding overlay script-->
29
-
30
-
31
- <!-- Adding overlay style-->
32
-
33
-
34
-
35
- <title>
36
- Utilities
37
- </title>
38
-
39
- <!--[if lt IE 9]>
40
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
41
- <![endif]-->
42
- <link type="text/css" rel="stylesheet" href="styles/third-party/ionicons.min.css">
43
- <link type="text/css" rel="stylesheet" href="styles/third-party/prettify-tomorrow.css">
44
- <link type="text/css" rel="stylesheet" href="styles/reset.css">
45
- <link type="text/css" rel="stylesheet" href="styles/clean-jsdoc-theme-base.css">
46
- <link type="text/css" rel="stylesheet" href="styles/clean-jsdoc-theme-dark.css">
47
-
48
- <svg aria-hidden="true" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
49
- style="display:none">
50
- <defs>
51
- <symbol id="copy-icon" viewbox="0 0 488.3 488.3">
52
- <g>
53
- <path
54
- d="M314.25,85.4h-227c-21.3,0-38.6,17.3-38.6,38.6v325.7c0,21.3,17.3,38.6,38.6,38.6h227c21.3,0,38.6-17.3,38.6-38.6V124 C352.75,102.7,335.45,85.4,314.25,85.4z M325.75,449.6c0,6.4-5.2,11.6-11.6,11.6h-227c-6.4,0-11.6-5.2-11.6-11.6V124 c0-6.4,5.2-11.6,11.6-11.6h227c6.4,0,11.6,5.2,11.6,11.6V449.6z" />
55
- <path
56
- d="M401.05,0h-227c-21.3,0-38.6,17.3-38.6,38.6c0,7.5,6,13.5,13.5,13.5s13.5-6,13.5-13.5c0-6.4,5.2-11.6,11.6-11.6h227 c6.4,0,11.6,5.2,11.6,11.6v325.7c0,6.4-5.2,11.6-11.6,11.6c-7.5,0-13.5,6-13.5,13.5s6,13.5,13.5,13.5c21.3,0,38.6-17.3,38.6-38.6 V38.6C439.65,17.3,422.35,0,401.05,0z" />
57
- </g>
58
- </symbol>
59
- <symbol id='search-icon' viewBox="0 0 512 512">
60
- <g>
61
- <g>
62
- <path
63
- d="M225.474,0C101.151,0,0,101.151,0,225.474c0,124.33,101.151,225.474,225.474,225.474 c124.33,0,225.474-101.144,225.474-225.474C450.948,101.151,349.804,0,225.474,0z M225.474,409.323 c-101.373,0-183.848-82.475-183.848-183.848S124.101,41.626,225.474,41.626s183.848,82.475,183.848,183.848 S326.847,409.323,225.474,409.323z" />
64
- </g>
65
- </g>
66
- <g>
67
- <g>
68
- <path
69
- d="M505.902,476.472L386.574,357.144c-8.131-8.131-21.299-8.131-29.43,0c-8.131,8.124-8.131,21.306,0,29.43l119.328,119.328 c4.065,4.065,9.387,6.098,14.715,6.098c5.321,0,10.649-2.033,14.715-6.098C514.033,497.778,514.033,484.596,505.902,476.472z" />
70
- </g>
71
- </g>
72
- </symbol>
73
- <symbol id="down-icon" viewBox="0 0 16 16">
74
- <path
75
- fill-rule="evenodd"
76
- clip-rule="evenodd"
77
- d="M12.7803 6.21967C13.0732 6.51256 13.0732 6.98744 12.7803 7.28033L8.53033 11.5303C8.23744 11.8232 7.76256 11.8232 7.46967 11.5303L3.21967 7.28033C2.92678 6.98744 2.92678 6.51256 3.21967 6.21967C3.51256 5.92678 3.98744 5.92678 4.28033 6.21967L8 9.93934L11.7197 6.21967C12.0126 5.92678 12.4874 5.92678 12.7803 6.21967Z"
78
- >
79
- </path>
80
- </symbol>
81
- </defs>
82
- </svg>
83
- </head>
84
-
85
- <body>
86
-
87
- <nav class="navbar" id="navbar">
88
- <div class="navbar-heading" id="navbar-heading"><a href="index.html"><h2 class="navbar-heading-text">LittleJS - The Tiny JavaScript Game Engine That Can!</h2></a></div><div class="search-box" id="search-box"><div class="search-box-input-container"><input class="search-box-input" type="text" placeholder="Search..." id="search-box-input" /><svg class="search-icon" alt="search-icon"><use xlink:href="#search-icon"></use></svg></div><div class="search-item-container" id="search-item-container"><ul class="search-item-ul" id="search-item-ul"></ul></div></div><div class="sidebar-main-content" id="sidebar-main-content"><div class="accordion collapsed" id="540523" > <h3 class="accordion-heading">Classes<svg><use xlink:href="#down-icon"></use></svg></h3><ul class="accordion-content"><li class="accordion collapsed child" id=8248353><div class="accordion-heading child"><a href="Color.html">Color</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Color.html#add">add</a></li><li data-type='method'><a href="Color.html#clamp">clamp</a></li><li data-type='method'><a href="Color.html#copy">copy</a></li><li data-type='method'><a href="Color.html#divide">divide</a></li><li data-type='method'><a href="Color.html#lerp">lerp</a></li><li data-type='method'><a href="Color.html#multiply">multiply</a></li><li data-type='method'><a href="Color.html#mutate">mutate</a></li><li data-type='method'><a href="Color.html#rgba">rgba</a></li><li data-type='method'><a href="Color.html#rgbaInt">rgbaInt</a></li><li data-type='method'><a href="Color.html#scale">scale</a></li><li data-type='method'><a href="Color.html#setHSLA">setHSLA</a></li><li data-type='method'><a href="Color.html#subtract">subtract</a></li></ul></li><li class="accordion collapsed child" id=7012587><div class="accordion-heading child"><a href="EngineObject.html">EngineObject</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="EngineObject.html#addChild">addChild</a></li><li data-type='method'><a href="EngineObject.html#applyAcceleration">applyAcceleration</a></li><li data-type='method'><a href="EngineObject.html#applyForce">applyForce</a></li><li data-type='method'><a href="EngineObject.html#collideWithObject">collideWithObject</a></li><li data-type='method'><a href="EngineObject.html#collideWithTile">collideWithTile</a></li><li data-type='method'><a href="EngineObject.html#collideWithTileRaycast">collideWithTileRaycast</a></li><li data-type='method'><a href="EngineObject.html#destroy">destroy</a></li><li data-type='method'><a href="EngineObject.html#getAliveTime">getAliveTime</a></li><li data-type='method'><a href="EngineObject.html#getMirrorSign">getMirrorSign</a></li><li data-type='method'><a href="EngineObject.html#removeChild">removeChild</a></li><li data-type='method'><a href="EngineObject.html#render">render</a></li><li data-type='method'><a href="EngineObject.html#setCollision">setCollision</a></li><li data-type='method'><a href="EngineObject.html#update">update</a></li></ul></li><li class="accordion collapsed child" id=1700789><div class="accordion-heading child"><a href="Medal.html">Medal</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Medal.html#render">render</a></li><li data-type='method'><a href="Medal.html#renderIcon">renderIcon</a></li><li data-type='method'><a href="Medal.html#unlock">unlock</a></li></ul></li><li class="accordion collapsed child" id=8089268><div class="accordion-heading child"><a href="Music.html">Music</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Music.html#play">play</a></li></ul></li><li class="accordion collapsed child" id=4766582><div class="accordion-heading child"><a href="Newgrounds.html">Newgrounds</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Newgrounds.html#call">call</a></li><li data-type='method'><a href="Newgrounds.html#getScores">getScores</a></li><li data-type='method'><a href="Newgrounds.html#logView">logView</a></li><li data-type='method'><a href="Newgrounds.html#postScore">postScore</a></li><li data-type='method'><a href="Newgrounds.html#unlockMedal">unlockMedal</a></li></ul></li><li class="accordion collapsed child" id=6250424><div class="accordion-heading child"><a href="Particle.html">Particle</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Particle.html#render">render</a></li></ul></li><li class="accordion collapsed child" id=7561663><div class="accordion-heading child"><a href="ParticleEmitter.html">ParticleEmitter</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="ParticleEmitter.html#emitParticle">emitParticle</a></li><li data-type='method'><a href="ParticleEmitter.html#update">update</a></li></ul></li><li class="accordion collapsed child" id=6303578><div class="accordion-heading child"><a href="Sound.html">Sound</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Sound.html#play">play</a></li><li data-type='method'><a href="Sound.html#playNote">playNote</a></li></ul></li><li class="accordion collapsed child" id=3741597><div class="accordion-heading child"><a href="TileLayer.html">TileLayer</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="TileLayer.html#.getTileCollisionData">getTileCollisionData</a></li><li data-type='method'><a href="TileLayer.html#.initTileCollision">initTileCollision</a></li><li data-type='method'><a href="TileLayer.html#.setTileCollisionData">setTileCollisionData</a></li><li data-type='method'><a href="TileLayer.html#.tileCollisionRaycast">tileCollisionRaycast</a></li><li data-type='method'><a href="TileLayer.html#.tileCollisionTest">tileCollisionTest</a></li><li data-type='method'><a href="TileLayer.html#destroy">destroy</a></li><li data-type='method'><a href="TileLayer.html#drawAllTileData">drawAllTileData</a></li><li data-type='method'><a href="TileLayer.html#drawCanvas2D">drawCanvas2D</a></li><li data-type='method'><a href="TileLayer.html#drawRect">drawRect</a></li><li data-type='method'><a href="TileLayer.html#drawTile">drawTile</a></li><li data-type='method'><a href="TileLayer.html#drawTileData">drawTileData</a></li><li data-type='method'><a href="TileLayer.html#getData">getData</a></li><li data-type='method'><a href="TileLayer.html#redraw">redraw</a></li><li data-type='method'><a href="TileLayer.html#redrawEnd">redrawEnd</a></li><li data-type='method'><a href="TileLayer.html#redrawStart">redrawStart</a></li><li data-type='method'><a href="TileLayer.html#setData">setData</a></li></ul></li><li class="accordion collapsed child" id=3051435><div class="accordion-heading child"><a href="TileLayerData.html">TileLayerData</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="TileLayerData.html#clear">clear</a></li></ul></li><li class="accordion collapsed child" id=2107764><div class="accordion-heading child"><a href="Timer.html">Timer</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Timer.html#active">active</a></li><li data-type='method'><a href="Timer.html#elapsed">elapsed</a></li><li data-type='method'><a href="Timer.html#get">get</a></li><li data-type='method'><a href="Timer.html#getPercent">getPercent</a></li><li data-type='method'><a href="Timer.html#isSet">isSet</a></li><li data-type='method'><a href="Timer.html#set">set</a></li><li data-type='method'><a href="Timer.html#unset">unset</a></li></ul></li><li class="accordion collapsed child" id=576602><div class="accordion-heading child"><a href="Vector2.html">Vector2</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Vector2.html#add">add</a></li><li data-type='method'><a href="Vector2.html#angle">angle</a></li><li data-type='method'><a href="Vector2.html#area">area</a></li><li data-type='method'><a href="Vector2.html#arrayCheck">arrayCheck</a></li><li data-type='method'><a href="Vector2.html#clampLength">clampLength</a></li><li data-type='method'><a href="Vector2.html#copy">copy</a></li><li data-type='method'><a href="Vector2.html#cross">cross</a></li><li data-type='method'><a href="Vector2.html#direction">direction</a></li><li data-type='method'><a href="Vector2.html#distance">distance</a></li><li data-type='method'><a href="Vector2.html#distanceSquared">distanceSquared</a></li><li data-type='method'><a href="Vector2.html#divide">divide</a></li><li data-type='method'><a href="Vector2.html#dot">dot</a></li><li data-type='method'><a href="Vector2.html#flip">flip</a></li><li data-type='method'><a href="Vector2.html#floor">floor</a></li><li data-type='method'><a href="Vector2.html#invert">invert</a></li><li data-type='method'><a href="Vector2.html#length">length</a></li><li data-type='method'><a href="Vector2.html#lengthSquared">lengthSquared</a></li><li data-type='method'><a href="Vector2.html#lerp">lerp</a></li><li data-type='method'><a href="Vector2.html#multiply">multiply</a></li><li data-type='method'><a href="Vector2.html#normalize">normalize</a></li><li data-type='method'><a href="Vector2.html#rotate">rotate</a></li><li data-type='method'><a href="Vector2.html#scale">scale</a></li><li data-type='method'><a href="Vector2.html#setAngle">setAngle</a></li><li data-type='method'><a href="Vector2.html#subtract">subtract</a></li></ul></li></ul> </div><div class="accordion collapsed" id="917139" > <h3 class="accordion-heading">Namespaces<svg><use xlink:href="#down-icon"></use></svg></h3><ul class="accordion-content"><li class="accordion collapsed child" id=8875598><div class="accordion-heading child"><a href="Audio.html">Audio</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Audio.html#.getNoteFrequency">getNoteFrequency</a></li><li data-type='method'><a href="Audio.html#.playAudioFile">playAudioFile</a></li><li data-type='method'><a href="Audio.html#.playSamples">playSamples</a></li><li data-type='method'><a href="Audio.html#.speak">speak</a></li><li data-type='method'><a href="Audio.html#.stopSpeech">stopSpeech</a></li><li data-type='method'><a href="Audio.html#.zzfx">zzfx</a></li><li data-type='method'><a href="Audio.html#.zzfxG">zzfxG</a></li><li data-type='method'><a href="Audio.html#.zzfxM">zzfxM</a></li></ul></li><li class="accordion collapsed child" id=822126><div class="accordion-heading child"><a href="Debug.html">Debug</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Debug.html#.debugAABB">debugAABB</a></li><li data-type='method'><a href="Debug.html#.debugCircle">debugCircle</a></li><li data-type='method'><a href="Debug.html#.debugClear">debugClear</a></li><li data-type='method'><a href="Debug.html#.debugLine">debugLine</a></li><li data-type='method'><a href="Debug.html#.debugPoint">debugPoint</a></li><li data-type='method'><a href="Debug.html#.debugRect">debugRect</a></li><li data-type='method'><a href="Debug.html#.debugSaveCanvas">debugSaveCanvas</a></li><li data-type='method'><a href="Debug.html#.debugText">debugText</a></li></ul></li><li class="accordion collapsed child" id=1368174><div class="accordion-heading child"><a href="Draw.html">Draw</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Draw.html#.drawCanvas2D">drawCanvas2D</a></li><li data-type='method'><a href="Draw.html#.drawLine">drawLine</a></li><li data-type='method'><a href="Draw.html#.drawRect">drawRect</a></li><li data-type='method'><a href="Draw.html#.drawRectScreenSpace">drawRectScreenSpace</a></li><li data-type='method'><a href="Draw.html#.drawText">drawText</a></li><li data-type='method'><a href="Draw.html#.drawTile">drawTile</a></li><li data-type='method'><a href="Draw.html#.drawTileScreenSpace">drawTileScreenSpace</a></li><li data-type='method'><a href="Draw.html#.isFullscreen">isFullscreen</a></li><li data-type='method'><a href="Draw.html#.screenToWorld">screenToWorld</a></li><li data-type='method'><a href="Draw.html#.setBlendMode">setBlendMode</a></li><li data-type='method'><a href="Draw.html#.toggleFullscreen">toggleFullscreen</a></li><li data-type='method'><a href="Draw.html#.worldToScreen">worldToScreen</a></li></ul></li><li class="accordion collapsed child" id=3585023><div class="accordion-heading child"><a href="Input.html">Input</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Input.html#.clearInput">clearInput</a></li><li data-type='method'><a href="Input.html#.gamepadIsDown">gamepadIsDown</a></li><li data-type='method'><a href="Input.html#.gamepadStick">gamepadStick</a></li><li data-type='method'><a href="Input.html#.gamepadWasPressed">gamepadWasPressed</a></li><li data-type='method'><a href="Input.html#.gamepadWasReleased">gamepadWasReleased</a></li><li data-type='method'><a href="Input.html#.keyIsDown">keyIsDown</a></li><li data-type='method'><a href="Input.html#.keyWasPressed">keyWasPressed</a></li><li data-type='method'><a href="Input.html#.keyWasReleased">keyWasReleased</a></li></ul></li><li class="accordion collapsed child" id=4831683><div class="accordion-heading child"><a href="Medals.html">Medals</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Medals.html#.medalsInit">medalsInit</a></li></ul></li><li class="accordion collapsed child" id=7850872><div class="accordion-heading child"><a href="Random.html">Random</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Random.html#.rand">rand</a></li><li data-type='method'><a href="Random.html#.randColor">randColor</a></li><li data-type='method'><a href="Random.html#.randInCircle">randInCircle</a></li><li data-type='method'><a href="Random.html#.randInt">randInt</a></li><li data-type='method'><a href="Random.html#.randSeeded">randSeeded</a></li><li data-type='method'><a href="Random.html#.randSign">randSign</a></li><li data-type='method'><a href="Random.html#.randVector">randVector</a></li></ul></li><li class="accordion-list" id=""><a href="Settings.html">Settings</a></li><li class="accordion collapsed child" id=1173220><div class="accordion-heading child"><a href="Utilities.html">Utilities</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Utilities.html#.abs">abs</a></li><li data-type='method'><a href="Utilities.html#.clamp">clamp</a></li><li data-type='method'><a href="Utilities.html#.formatTime">formatTime</a></li><li data-type='method'><a href="Utilities.html#.isOverlapping">isOverlapping</a></li><li data-type='method'><a href="Utilities.html#.lerp">lerp</a></li><li data-type='method'><a href="Utilities.html#.max">max</a></li><li data-type='method'><a href="Utilities.html#.min">min</a></li><li data-type='method'><a href="Utilities.html#.mod">mod</a></li><li data-type='method'><a href="Utilities.html#.nearestPowerOfTwo">nearestPowerOfTwo</a></li><li data-type='method'><a href="Utilities.html#.percent">percent</a></li><li data-type='method'><a href="Utilities.html#.sign">sign</a></li><li data-type='method'><a href="Utilities.html#.smoothStep">smoothStep</a></li><li data-type='method'><a href="Utilities.html#.vec2">vec2</a></li><li data-type='method'><a href="Utilities.html#.wave">wave</a></li></ul></li><li class="accordion collapsed child" id=6243735><div class="accordion-heading child"><a href="WebGL.html">WebGL</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="WebGL.html#.glCompileShader">glCompileShader</a></li><li data-type='method'><a href="WebGL.html#.glCopyToContext">glCopyToContext</a></li><li data-type='method'><a href="WebGL.html#.glCreateBuffer">glCreateBuffer</a></li><li data-type='method'><a href="WebGL.html#.glCreateProgram">glCreateProgram</a></li><li data-type='method'><a href="WebGL.html#.glCreateTexture">glCreateTexture</a></li><li data-type='method'><a href="WebGL.html#.glFlush">glFlush</a></li><li data-type='method'><a href="WebGL.html#.glSetBlendMode">glSetBlendMode</a></li><li data-type='method'><a href="WebGL.html#.glSetTexture">glSetTexture</a></li></ul></li></ul> </div><div class="accordion collapsed" id="3154152" > <h3 class="accordion-heading">Global<svg><use xlink:href="#down-icon"></use></svg></h3><ul class="accordion-content"><li class="accordion-list" id=""><a href="global.html#engineCollideObjects">engineCollideObjects</a></li><li class="accordion-list" id=""><a href="global.html#engineInit">engineInit</a></li><li class="accordion-list" id=""><a href="global.html#engineName">engineName</a></li><li class="accordion-list" id=""><a href="global.html#engineObjects">engineObjects</a></li><li class="accordion-list" id=""><a href="global.html#engineObjectsCallback">engineObjectsCallback</a></li><li class="accordion-list" id=""><a href="global.html#engineObjectsDestroy">engineObjectsDestroy</a></li><li class="accordion-list" id=""><a href="global.html#engineObjectsUpdate">engineObjectsUpdate</a></li><li class="accordion-list" id=""><a href="global.html#engineVersion">engineVersion</a></li><li class="accordion-list" id=""><a href="global.html#FPS">FPS</a></li><li class="accordion-list" id=""><a href="global.html#frame">frame</a></li><li class="accordion-list" id=""><a href="global.html#paused">paused</a></li><li class="accordion-list" id=""><a href="global.html#time">time</a></li><li class="accordion-list" id=""><a href="global.html#timeDelta">timeDelta</a></li><li class="accordion-list" id=""><a href="global.html#timeReal">timeReal</a></li></ul> </div></div>
89
-
90
-
91
- </nav>
92
- <div class="navbar-ham" id="navbar-ham">
93
- <div>
94
- <div class="first"></div>
95
- <div class="second"></div>
96
- <div class="third"></div>
97
- </div>
98
- </div>
99
-
100
- <div id="main" class="main-content">
101
-
102
- <h1 id='page-title' class="page-title">
103
- Utilities
104
- </h1>
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
- <section>
113
-
114
-
115
- <header>
116
-
117
-
118
- <h2>
119
-
120
- Utilities
121
-
122
- </h2>
123
-
124
-
125
-
126
- </header>
127
-
128
-
129
- <article>
130
- <div class="container-overview">
131
-
132
-
133
- <div class="description">LittleJS Utility Classes and Functions
134
  <br> - General purpose math library
135
1
  <br> - Vector2 - fast, simple, easy 2D vector class
136
2
  <br> - Color - holds a rgba color with some math functions
137
3
  <br> - Timer - tracks time automatically</div>
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
- <dl class="details">
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
-
172
- <div class="details-item-container">
173
- <dt class="tag-source">Source:</dt>
174
- <dd class="tag-source"><ul class="dummy"><li>
175
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line1">line 1</a>
176
- </li></ul></dd>
177
- </div>
178
-
179
-
180
-
181
-
182
-
183
-
184
-
185
- </dl>
186
-
187
-
188
-
189
-
190
-
191
-
192
- </div>
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
- <h3 class="subsection-title">Members</h3>
206
-
207
-
208
-
209
- <h4 class="name" id=".isChrome">
210
- <a href="#.isChrome">#</a>
211
- <span class="type-signature">(static, constant) </span>isChrome<span class="type-signature"></span>
212
- </h4>
213
-
214
-
215
-
216
-
217
- <div class="description">
218
- True if running a Chromium based browser
219
- </div>
220
-
221
-
222
-
223
-
224
-
225
-
226
-
227
-
228
-
229
- <dl class="details">
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
-
238
-
239
-
240
-
241
-
242
-
243
-
244
-
245
-
246
-
247
-
248
-
249
-
250
-
251
-
252
-
253
-
254
-
255
-
256
- <div class="details-item-container">
257
- <dt class="tag-source">Source:</dt>
258
- <dd class="tag-source"><ul class="dummy"><li>
259
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line20">line 20</a>
260
- </li></ul></dd>
261
- </div>
262
-
263
-
264
-
265
-
266
-
267
-
268
-
269
- </dl>
270
-
271
-
272
-
273
-
274
-
275
-
276
-
277
-
278
-
279
-
280
- <h4 class="name" id=".PI">
281
- <a href="#.PI">#</a>
282
- <span class="type-signature">(static, constant) </span>PI<span class="type-signature"></span>
283
- </h4>
284
-
285
-
286
-
287
-
288
- <div class="description">
289
- A shortcut to get Math.PI
290
- </div>
291
-
292
-
293
-
294
-
295
-
296
-
297
-
298
-
299
-
300
- <dl class="details">
301
-
302
-
303
-
304
-
305
-
306
-
307
-
308
-
309
-
310
-
311
-
312
-
313
-
314
-
315
-
316
-
317
-
318
-
319
-
320
-
321
-
322
-
323
-
324
-
325
-
326
-
327
- <div class="details-item-container">
328
- <dt class="tag-source">Source:</dt>
329
- <dd class="tag-source"><ul class="dummy"><li>
330
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line15">line 15</a>
331
- </li></ul></dd>
332
- </div>
333
-
334
-
335
-
336
-
337
-
338
-
339
-
340
- </dl>
341
-
342
-
343
-
344
-
345
-
346
-
347
-
348
-
349
-
350
-
351
-
352
-
353
- <h3 class="subsection-title">Methods</h3>
354
-
355
-
356
-
357
-
358
-
359
-
360
- <h4 class="name" id=".abs">
361
- <a href="#.abs">#</a>
362
- <span class="type-signature">(static) </span>abs<span class="signature">(value)</span><span class="type-signature"> &rarr; {Number}</span>
363
- </h4>
364
-
365
-
366
-
367
-
368
-
369
- <div class="description">
370
- Returns absoulte value of value passed in
371
- </div>
372
-
373
-
374
-
375
-
376
-
377
-
378
-
379
-
380
-
381
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
382
- <strong>Parameters:</strong>
383
-
384
-
385
- <table class="params">
386
- <thead>
387
- <tr>
388
-
389
- <th>Name</th>
390
-
391
-
392
- <th>Type</th>
393
-
394
-
395
-
396
-
397
-
398
- <th class="last">Description</th>
399
- </tr>
400
- </thead>
401
-
402
- <tbody>
403
-
404
-
405
- <tr>
406
-
407
- <td class="name"><code>value</code></td>
408
-
409
-
410
- <td class="type">
411
-
412
-
413
- <span class="param-type">Number</span>
414
-
415
-
416
-
417
- </td>
418
-
419
-
420
-
421
-
422
-
423
- <td class="description last"></td>
424
- </tr>
425
-
426
-
427
- </tbody>
428
- </table>
429
-
430
- </div>
431
-
432
-
433
-
434
-
435
-
436
-
437
-
438
- <dl class="details">
439
-
440
-
441
-
442
-
443
-
444
-
445
-
446
-
447
-
448
-
449
-
450
-
451
-
452
-
453
-
454
-
455
-
456
-
457
-
458
-
459
-
460
-
461
-
462
-
463
-
464
-
465
- <div class="details-item-container">
466
- <dt class="tag-source">Source:</dt>
467
- <dd class="tag-source"><ul class="dummy"><li>
468
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line26">line 26</a>
469
- </li></ul></dd>
470
- </div>
471
-
472
-
473
-
474
-
475
-
476
-
477
-
478
- </dl>
479
-
480
-
481
-
482
-
483
-
484
-
485
-
486
-
487
-
488
-
489
-
490
-
491
-
492
-
493
-
494
- <div class="method-member-container mt-20">
495
- <strong>Returns:</strong>
496
-
497
-
498
-
499
-
500
- <dl class="param-type">
501
- <dt>
502
- Type
503
- </dt>
504
- <dd>
505
-
506
- <span class="param-type">Number</span>
507
-
508
-
509
- </dd>
510
- </dl>
511
-
512
-
513
- </div>
514
-
515
-
516
-
517
-
518
-
519
-
520
-
521
-
522
-
523
- <h4 class="name" id=".clamp">
524
- <a href="#.clamp">#</a>
525
- <span class="type-signature">(static) </span>clamp<span class="signature">(value, max<span class="signature-attributes">opt</span>, min<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Number}</span>
526
- </h4>
527
-
528
-
529
-
530
-
531
-
532
- <div class="description">
533
- Clamps the value beween max and min
534
- </div>
535
-
536
-
537
-
538
-
539
-
540
-
541
-
542
-
543
-
544
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
545
- <strong>Parameters:</strong>
546
-
547
-
548
- <table class="params">
549
- <thead>
550
- <tr>
551
-
552
- <th>Name</th>
553
-
554
-
555
- <th>Type</th>
556
-
557
-
558
- <th>Attributes</th>
559
-
560
-
561
-
562
- <th>Default</th>
563
-
564
-
565
- <th class="last">Description</th>
566
- </tr>
567
- </thead>
568
-
569
- <tbody>
570
-
571
-
572
- <tr>
573
-
574
- <td class="name"><code>value</code></td>
575
-
576
-
577
- <td class="type">
578
-
579
-
580
- <span class="param-type">Number</span>
581
-
582
-
583
-
584
- </td>
585
-
586
-
587
- <td class="attributes">
588
-
589
-
590
-
591
-
592
-
593
- </td>
594
-
595
-
596
-
597
- <td class="default">
598
-
599
- </td>
600
-
601
-
602
- <td class="description last"></td>
603
- </tr>
604
-
605
-
606
-
607
- <tr>
608
-
609
- <td class="name"><code>max</code></td>
610
-
611
-
612
- <td class="type">
613
-
614
-
615
- <span class="param-type">Number</span>
616
-
617
-
618
-
619
- </td>
620
-
621
-
622
- <td class="attributes">
623
-
624
- &lt;optional><br>
625
-
626
-
627
-
628
-
629
-
630
- </td>
631
-
632
-
633
-
634
- <td class="default">
635
-
636
- 1
637
-
638
- </td>
639
-
640
-
641
- <td class="description last"></td>
642
- </tr>
643
-
644
-
645
-
646
- <tr>
647
-
648
- <td class="name"><code>min</code></td>
649
-
650
-
651
- <td class="type">
652
-
653
-
654
- <span class="param-type">Number</span>
655
-
656
-
657
-
658
- </td>
659
-
660
-
661
- <td class="attributes">
662
-
663
- &lt;optional><br>
664
-
665
-
666
-
667
-
668
-
669
- </td>
670
-
671
-
672
-
673
- <td class="default">
674
-
675
- 0
676
-
677
- </td>
678
-
679
-
680
- <td class="description last"></td>
681
- </tr>
682
-
683
-
684
- </tbody>
685
- </table>
686
-
687
- </div>
688
-
689
-
690
-
691
-
692
-
693
-
694
-
695
- <dl class="details">
696
-
697
-
698
-
699
-
700
-
701
-
702
-
703
-
704
-
705
-
706
-
707
-
708
-
709
-
710
-
711
-
712
-
713
-
714
-
715
-
716
-
717
-
718
-
719
-
720
-
721
-
722
- <div class="details-item-container">
723
- <dt class="tag-source">Source:</dt>
724
- <dd class="tag-source"><ul class="dummy"><li>
725
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line61">line 61</a>
726
- </li></ul></dd>
727
- </div>
728
-
729
-
730
-
731
-
732
-
733
-
734
-
735
- </dl>
736
-
737
-
738
-
739
-
740
-
741
-
742
-
743
-
744
-
745
-
746
-
747
-
748
-
749
-
750
-
751
- <div class="method-member-container mt-20">
752
- <strong>Returns:</strong>
753
-
754
-
755
-
756
-
757
- <dl class="param-type">
758
- <dt>
759
- Type
760
- </dt>
761
- <dd>
762
-
763
- <span class="param-type">Number</span>
764
-
765
-
766
- </dd>
767
- </dl>
768
-
769
-
770
- </div>
771
-
772
-
773
-
774
-
775
-
776
-
777
-
778
-
779
-
780
- <h4 class="name" id=".formatTime">
781
- <a href="#.formatTime">#</a>
782
- <span class="type-signature">(static) </span>formatTime<span class="signature">(t)</span><span class="type-signature"> &rarr; {String}</span>
783
- </h4>
784
-
785
-
786
-
787
-
788
-
789
- <div class="description">
790
- Formats seconds to 00:00 style for display purposes
791
- </div>
792
-
793
-
794
-
795
-
796
-
797
-
798
-
799
-
800
-
801
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
802
- <strong>Parameters:</strong>
803
-
804
-
805
- <table class="params">
806
- <thead>
807
- <tr>
808
-
809
- <th>Name</th>
810
-
811
-
812
- <th>Type</th>
813
-
814
-
815
-
816
-
817
-
818
- <th class="last">Description</th>
819
- </tr>
820
- </thead>
821
-
822
- <tbody>
823
-
824
-
825
- <tr>
826
-
827
- <td class="name"><code>t</code></td>
828
-
829
-
830
- <td class="type">
831
-
832
-
833
- <span class="param-type">Number</span>
834
-
835
-
836
-
837
- </td>
838
-
839
-
840
-
841
-
842
-
843
- <td class="description last">time in seconds</td>
844
- </tr>
845
-
846
-
847
- </tbody>
848
- </table>
849
-
850
- </div>
851
-
852
-
853
-
854
-
855
-
856
-
857
-
858
- <dl class="details">
859
-
860
-
861
-
862
-
863
-
864
-
865
-
866
-
867
-
868
-
869
-
870
-
871
-
872
-
873
-
874
-
875
-
876
-
877
-
878
-
879
-
880
-
881
-
882
-
883
-
884
-
885
- <div class="details-item-container">
886
- <dt class="tag-source">Source:</dt>
887
- <dd class="tag-source"><ul class="dummy"><li>
888
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line83">line 83</a>
889
- </li></ul></dd>
890
- </div>
891
-
892
-
893
-
894
-
895
-
896
-
897
-
898
- </dl>
899
-
900
-
901
-
902
-
903
-
904
-
905
-
906
-
907
-
908
-
909
-
910
-
911
-
912
-
913
-
914
- <div class="method-member-container mt-20">
915
- <strong>Returns:</strong>
916
-
917
-
918
-
919
-
920
- <dl class="param-type">
921
- <dt>
922
- Type
923
- </dt>
924
- <dd>
925
-
926
- <span class="param-type">String</span>
927
-
928
-
929
- </dd>
930
- </dl>
931
-
932
-
933
- </div>
934
-
935
-
936
-
937
-
938
-
939
-
940
-
941
-
942
-
943
- <h4 class="name" id=".isOverlapping">
944
- <a href="#.isOverlapping">#</a>
945
- <span class="type-signature">(static) </span>isOverlapping<span class="signature">(pointA, sizeA, pointB, sizeB)</span><span class="type-signature"> &rarr; {Boolean}</span>
946
- </h4>
947
-
948
-
949
-
950
-
951
-
952
- <div class="description">
953
- Returns true if two axis aligned bounding boxes are overlapping
954
- </div>
955
-
956
-
957
-
958
-
959
-
960
-
961
-
962
-
963
-
964
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
965
- <strong>Parameters:</strong>
966
-
967
-
968
- <table class="params">
969
- <thead>
970
- <tr>
971
-
972
- <th>Name</th>
973
-
974
-
975
- <th>Type</th>
976
-
977
-
978
-
979
-
980
-
981
- <th class="last">Description</th>
982
- </tr>
983
- </thead>
984
-
985
- <tbody>
986
-
987
-
988
- <tr>
989
-
990
- <td class="name"><code>pointA</code></td>
991
-
992
-
993
- <td class="type">
994
-
995
-
996
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
997
-
998
-
999
-
1000
- </td>
1001
-
1002
-
1003
-
1004
-
1005
-
1006
- <td class="description last">Center of box A</td>
1007
- </tr>
1008
-
1009
-
1010
-
1011
- <tr>
1012
-
1013
- <td class="name"><code>sizeA</code></td>
1014
-
1015
-
1016
- <td class="type">
1017
-
1018
-
1019
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1020
-
1021
-
1022
-
1023
- </td>
1024
-
1025
-
1026
-
1027
-
1028
-
1029
- <td class="description last">Size of box A</td>
1030
- </tr>
1031
-
1032
-
1033
-
1034
- <tr>
1035
-
1036
- <td class="name"><code>pointB</code></td>
1037
-
1038
-
1039
- <td class="type">
1040
-
1041
-
1042
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1043
-
1044
-
1045
-
1046
- </td>
1047
-
1048
-
1049
-
1050
-
1051
-
1052
- <td class="description last">Center of box B</td>
1053
- </tr>
1054
-
1055
-
1056
-
1057
- <tr>
1058
-
1059
- <td class="name"><code>sizeB</code></td>
1060
-
1061
-
1062
- <td class="type">
1063
-
1064
-
1065
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1066
-
1067
-
1068
-
1069
- </td>
1070
-
1071
-
1072
-
1073
-
1074
-
1075
- <td class="description last">Size of box B</td>
1076
- </tr>
1077
-
1078
-
1079
- </tbody>
1080
- </table>
1081
-
1082
- </div>
1083
-
1084
-
1085
-
1086
-
1087
-
1088
-
1089
-
1090
- <dl class="details">
1091
-
1092
-
1093
-
1094
-
1095
-
1096
-
1097
-
1098
-
1099
-
1100
-
1101
-
1102
-
1103
-
1104
-
1105
-
1106
-
1107
-
1108
-
1109
-
1110
-
1111
-
1112
-
1113
-
1114
-
1115
-
1116
-
1117
- <div class="details-item-container">
1118
- <dt class="tag-source">Source:</dt>
1119
- <dd class="tag-source"><ul class="dummy"><li>
1120
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line104">line 104</a>
1121
- </li></ul></dd>
1122
- </div>
1123
-
1124
-
1125
-
1126
-
1127
-
1128
-
1129
-
1130
- </dl>
1131
-
1132
-
1133
-
1134
-
1135
-
1136
-
1137
-
1138
-
1139
-
1140
-
1141
-
1142
-
1143
-
1144
-
1145
-
1146
- <div class="method-member-container mt-20">
1147
- <strong>Returns:</strong>
1148
-
1149
-
1150
- <div class="param-desc">
1151
- - True if overlapping
1152
- </div>
1153
-
1154
-
1155
-
1156
- <dl class="param-type">
1157
- <dt>
1158
- Type
1159
- </dt>
1160
- <dd>
1161
-
1162
- <span class="param-type">Boolean</span>
1163
-
1164
-
1165
- </dd>
1166
- </dl>
1167
-
1168
-
1169
- </div>
1170
-
1171
-
1172
-
1173
-
1174
-
1175
-
1176
-
1177
-
1178
-
1179
- <h4 class="name" id=".lerp">
1180
- <a href="#.lerp">#</a>
1181
- <span class="type-signature">(static) </span>lerp<span class="signature">(percent, max<span class="signature-attributes">opt</span>, min<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Number}</span>
1182
- </h4>
1183
-
1184
-
1185
-
1186
-
1187
-
1188
- <div class="description">
1189
- Linearly interpolates the percent value between max and min
1190
- </div>
1191
-
1192
-
1193
-
1194
-
1195
-
1196
-
1197
-
1198
-
1199
-
1200
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
1201
- <strong>Parameters:</strong>
1202
-
1203
-
1204
- <table class="params">
1205
- <thead>
1206
- <tr>
1207
-
1208
- <th>Name</th>
1209
-
1210
-
1211
- <th>Type</th>
1212
-
1213
-
1214
- <th>Attributes</th>
1215
-
1216
-
1217
-
1218
- <th>Default</th>
1219
-
1220
-
1221
- <th class="last">Description</th>
1222
- </tr>
1223
- </thead>
1224
-
1225
- <tbody>
1226
-
1227
-
1228
- <tr>
1229
-
1230
- <td class="name"><code>percent</code></td>
1231
-
1232
-
1233
- <td class="type">
1234
-
1235
-
1236
- <span class="param-type">Number</span>
1237
-
1238
-
1239
-
1240
- </td>
1241
-
1242
-
1243
- <td class="attributes">
1244
-
1245
-
1246
-
1247
-
1248
-
1249
- </td>
1250
-
1251
-
1252
-
1253
- <td class="default">
1254
-
1255
- </td>
1256
-
1257
-
1258
- <td class="description last"></td>
1259
- </tr>
1260
-
1261
-
1262
-
1263
- <tr>
1264
-
1265
- <td class="name"><code>max</code></td>
1266
-
1267
-
1268
- <td class="type">
1269
-
1270
-
1271
- <span class="param-type">Number</span>
1272
-
1273
-
1274
-
1275
- </td>
1276
-
1277
-
1278
- <td class="attributes">
1279
-
1280
- &lt;optional><br>
1281
-
1282
-
1283
-
1284
-
1285
-
1286
- </td>
1287
-
1288
-
1289
-
1290
- <td class="default">
1291
-
1292
- 1
1293
-
1294
- </td>
1295
-
1296
-
1297
- <td class="description last"></td>
1298
- </tr>
1299
-
1300
-
1301
-
1302
- <tr>
1303
-
1304
- <td class="name"><code>min</code></td>
1305
-
1306
-
1307
- <td class="type">
1308
-
1309
-
1310
- <span class="param-type">Number</span>
1311
-
1312
-
1313
-
1314
- </td>
1315
-
1316
-
1317
- <td class="attributes">
1318
-
1319
- &lt;optional><br>
1320
-
1321
-
1322
-
1323
-
1324
-
1325
- </td>
1326
-
1327
-
1328
-
1329
- <td class="default">
1330
-
1331
- 0
1332
-
1333
- </td>
1334
-
1335
-
1336
- <td class="description last"></td>
1337
- </tr>
1338
-
1339
-
1340
- </tbody>
1341
- </table>
1342
-
1343
- </div>
1344
-
1345
-
1346
-
1347
-
1348
-
1349
-
1350
-
1351
- <dl class="details">
1352
-
1353
-
1354
-
1355
-
1356
-
1357
-
1358
-
1359
-
1360
-
1361
-
1362
-
1363
-
1364
-
1365
-
1366
-
1367
-
1368
-
1369
-
1370
-
1371
-
1372
-
1373
-
1374
-
1375
-
1376
-
1377
-
1378
- <div class="details-item-container">
1379
- <dt class="tag-source">Source:</dt>
1380
- <dd class="tag-source"><ul class="dummy"><li>
1381
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line77">line 77</a>
1382
- </li></ul></dd>
1383
- </div>
1384
-
1385
-
1386
-
1387
-
1388
-
1389
-
1390
-
1391
- </dl>
1392
-
1393
-
1394
-
1395
-
1396
-
1397
-
1398
-
1399
-
1400
-
1401
-
1402
-
1403
-
1404
-
1405
-
1406
-
1407
- <div class="method-member-container mt-20">
1408
- <strong>Returns:</strong>
1409
-
1410
-
1411
-
1412
-
1413
- <dl class="param-type">
1414
- <dt>
1415
- Type
1416
- </dt>
1417
- <dd>
1418
-
1419
- <span class="param-type">Number</span>
1420
-
1421
-
1422
- </dd>
1423
- </dl>
1424
-
1425
-
1426
- </div>
1427
-
1428
-
1429
-
1430
-
1431
-
1432
-
1433
-
1434
-
1435
-
1436
- <h4 class="name" id=".max">
1437
- <a href="#.max">#</a>
1438
- <span class="type-signature">(static) </span>max<span class="signature">(valueA, valueB)</span><span class="type-signature"> &rarr; {Number}</span>
1439
- </h4>
1440
-
1441
-
1442
-
1443
-
1444
-
1445
- <div class="description">
1446
- Returns highest of two values passed in
1447
- </div>
1448
-
1449
-
1450
-
1451
-
1452
-
1453
-
1454
-
1455
-
1456
-
1457
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
1458
- <strong>Parameters:</strong>
1459
-
1460
-
1461
- <table class="params">
1462
- <thead>
1463
- <tr>
1464
-
1465
- <th>Name</th>
1466
-
1467
-
1468
- <th>Type</th>
1469
-
1470
-
1471
-
1472
-
1473
-
1474
- <th class="last">Description</th>
1475
- </tr>
1476
- </thead>
1477
-
1478
- <tbody>
1479
-
1480
-
1481
- <tr>
1482
-
1483
- <td class="name"><code>valueA</code></td>
1484
-
1485
-
1486
- <td class="type">
1487
-
1488
-
1489
- <span class="param-type">Number</span>
1490
-
1491
-
1492
-
1493
- </td>
1494
-
1495
-
1496
-
1497
-
1498
-
1499
- <td class="description last"></td>
1500
- </tr>
1501
-
1502
-
1503
-
1504
- <tr>
1505
-
1506
- <td class="name"><code>valueB</code></td>
1507
-
1508
-
1509
- <td class="type">
1510
-
1511
-
1512
- <span class="param-type">Number</span>
1513
-
1514
-
1515
-
1516
- </td>
1517
-
1518
-
1519
-
1520
-
1521
-
1522
- <td class="description last"></td>
1523
- </tr>
1524
-
1525
-
1526
- </tbody>
1527
- </table>
1528
-
1529
- </div>
1530
-
1531
-
1532
-
1533
-
1534
-
1535
-
1536
-
1537
- <dl class="details">
1538
-
1539
-
1540
-
1541
-
1542
-
1543
-
1544
-
1545
-
1546
-
1547
-
1548
-
1549
-
1550
-
1551
-
1552
-
1553
-
1554
-
1555
-
1556
-
1557
-
1558
-
1559
-
1560
-
1561
-
1562
-
1563
-
1564
- <div class="details-item-container">
1565
- <dt class="tag-source">Source:</dt>
1566
- <dd class="tag-source"><ul class="dummy"><li>
1567
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line46">line 46</a>
1568
- </li></ul></dd>
1569
- </div>
1570
-
1571
-
1572
-
1573
-
1574
-
1575
-
1576
-
1577
- </dl>
1578
-
1579
-
1580
-
1581
-
1582
-
1583
-
1584
-
1585
-
1586
-
1587
-
1588
-
1589
-
1590
-
1591
-
1592
-
1593
- <div class="method-member-container mt-20">
1594
- <strong>Returns:</strong>
1595
-
1596
-
1597
-
1598
-
1599
- <dl class="param-type">
1600
- <dt>
1601
- Type
1602
- </dt>
1603
- <dd>
1604
-
1605
- <span class="param-type">Number</span>
1606
-
1607
-
1608
- </dd>
1609
- </dl>
1610
-
1611
-
1612
- </div>
1613
-
1614
-
1615
-
1616
-
1617
-
1618
-
1619
-
1620
-
1621
-
1622
- <h4 class="name" id=".min">
1623
- <a href="#.min">#</a>
1624
- <span class="type-signature">(static) </span>min<span class="signature">(valueA, valueB)</span><span class="type-signature"> &rarr; {Number}</span>
1625
- </h4>
1626
-
1627
-
1628
-
1629
-
1630
-
1631
- <div class="description">
1632
- Returns lowest of two values passed in
1633
- </div>
1634
-
1635
-
1636
-
1637
-
1638
-
1639
-
1640
-
1641
-
1642
-
1643
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
1644
- <strong>Parameters:</strong>
1645
-
1646
-
1647
- <table class="params">
1648
- <thead>
1649
- <tr>
1650
-
1651
- <th>Name</th>
1652
-
1653
-
1654
- <th>Type</th>
1655
-
1656
-
1657
-
1658
-
1659
-
1660
- <th class="last">Description</th>
1661
- </tr>
1662
- </thead>
1663
-
1664
- <tbody>
1665
-
1666
-
1667
- <tr>
1668
-
1669
- <td class="name"><code>valueA</code></td>
1670
-
1671
-
1672
- <td class="type">
1673
-
1674
-
1675
- <span class="param-type">Number</span>
1676
-
1677
-
1678
-
1679
- </td>
1680
-
1681
-
1682
-
1683
-
1684
-
1685
- <td class="description last"></td>
1686
- </tr>
1687
-
1688
-
1689
-
1690
- <tr>
1691
-
1692
- <td class="name"><code>valueB</code></td>
1693
-
1694
-
1695
- <td class="type">
1696
-
1697
-
1698
- <span class="param-type">Number</span>
1699
-
1700
-
1701
-
1702
- </td>
1703
-
1704
-
1705
-
1706
-
1707
-
1708
- <td class="description last"></td>
1709
- </tr>
1710
-
1711
-
1712
- </tbody>
1713
- </table>
1714
-
1715
- </div>
1716
-
1717
-
1718
-
1719
-
1720
-
1721
-
1722
-
1723
- <dl class="details">
1724
-
1725
-
1726
-
1727
-
1728
-
1729
-
1730
-
1731
-
1732
-
1733
-
1734
-
1735
-
1736
-
1737
-
1738
-
1739
-
1740
-
1741
-
1742
-
1743
-
1744
-
1745
-
1746
-
1747
-
1748
-
1749
-
1750
- <div class="details-item-container">
1751
- <dt class="tag-source">Source:</dt>
1752
- <dd class="tag-source"><ul class="dummy"><li>
1753
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line39">line 39</a>
1754
- </li></ul></dd>
1755
- </div>
1756
-
1757
-
1758
-
1759
-
1760
-
1761
-
1762
-
1763
- </dl>
1764
-
1765
-
1766
-
1767
-
1768
-
1769
-
1770
-
1771
-
1772
-
1773
-
1774
-
1775
-
1776
-
1777
-
1778
-
1779
- <div class="method-member-container mt-20">
1780
- <strong>Returns:</strong>
1781
-
1782
-
1783
-
1784
-
1785
- <dl class="param-type">
1786
- <dt>
1787
- Type
1788
- </dt>
1789
- <dd>
1790
-
1791
- <span class="param-type">Number</span>
1792
-
1793
-
1794
- </dd>
1795
- </dl>
1796
-
1797
-
1798
- </div>
1799
-
1800
-
1801
-
1802
-
1803
-
1804
-
1805
-
1806
-
1807
-
1808
- <h4 class="name" id=".mod">
1809
- <a href="#.mod">#</a>
1810
- <span class="type-signature">(static) </span>mod<span class="signature">(dividend, divisor)</span><span class="type-signature"> &rarr; {Number}</span>
1811
- </h4>
1812
-
1813
-
1814
-
1815
-
1816
-
1817
- <div class="description">
1818
- Returns first parm modulo the second param, but adjusted so negative numbers work as expected
1819
- </div>
1820
-
1821
-
1822
-
1823
-
1824
-
1825
-
1826
-
1827
-
1828
-
1829
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
1830
- <strong>Parameters:</strong>
1831
-
1832
-
1833
- <table class="params">
1834
- <thead>
1835
- <tr>
1836
-
1837
- <th>Name</th>
1838
-
1839
-
1840
- <th>Type</th>
1841
-
1842
-
1843
-
1844
-
1845
-
1846
- <th class="last">Description</th>
1847
- </tr>
1848
- </thead>
1849
-
1850
- <tbody>
1851
-
1852
-
1853
- <tr>
1854
-
1855
- <td class="name"><code>dividend</code></td>
1856
-
1857
-
1858
- <td class="type">
1859
-
1860
-
1861
- <span class="param-type">Number</span>
1862
-
1863
-
1864
-
1865
- </td>
1866
-
1867
-
1868
-
1869
-
1870
-
1871
- <td class="description last"></td>
1872
- </tr>
1873
-
1874
-
1875
-
1876
- <tr>
1877
-
1878
- <td class="name"><code>divisor</code></td>
1879
-
1880
-
1881
- <td class="type">
1882
-
1883
-
1884
- <span class="param-type">Number</span>
1885
-
1886
-
1887
-
1888
- </td>
1889
-
1890
-
1891
-
1892
-
1893
-
1894
- <td class="description last"></td>
1895
- </tr>
1896
-
1897
-
1898
- </tbody>
1899
- </table>
1900
-
1901
- </div>
1902
-
1903
-
1904
-
1905
-
1906
-
1907
-
1908
-
1909
- <dl class="details">
1910
-
1911
-
1912
-
1913
-
1914
-
1915
-
1916
-
1917
-
1918
-
1919
-
1920
-
1921
-
1922
-
1923
-
1924
-
1925
-
1926
-
1927
-
1928
-
1929
-
1930
-
1931
-
1932
-
1933
-
1934
-
1935
-
1936
- <div class="details-item-container">
1937
- <dt class="tag-source">Source:</dt>
1938
- <dd class="tag-source"><ul class="dummy"><li>
1939
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line53">line 53</a>
1940
- </li></ul></dd>
1941
- </div>
1942
-
1943
-
1944
-
1945
-
1946
-
1947
-
1948
-
1949
- </dl>
1950
-
1951
-
1952
-
1953
-
1954
-
1955
-
1956
-
1957
-
1958
-
1959
-
1960
-
1961
-
1962
-
1963
-
1964
-
1965
- <div class="method-member-container mt-20">
1966
- <strong>Returns:</strong>
1967
-
1968
-
1969
-
1970
-
1971
- <dl class="param-type">
1972
- <dt>
1973
- Type
1974
- </dt>
1975
- <dd>
1976
-
1977
- <span class="param-type">Number</span>
1978
-
1979
-
1980
- </dd>
1981
- </dl>
1982
-
1983
-
1984
- </div>
1985
-
1986
-
1987
-
1988
-
1989
-
1990
-
1991
-
1992
-
1993
-
1994
- <h4 class="name" id=".nearestPowerOfTwo">
1995
- <a href="#.nearestPowerOfTwo">#</a>
1996
- <span class="type-signature">(static) </span>nearestPowerOfTwo<span class="signature">(value)</span><span class="type-signature"> &rarr; {Number}</span>
1997
- </h4>
1998
-
1999
-
2000
-
2001
-
2002
-
2003
- <div class="description">
2004
- Returns the nearest power of two not less then the value
2005
- </div>
2006
-
2007
-
2008
-
2009
-
2010
-
2011
-
2012
-
2013
-
2014
-
2015
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
2016
- <strong>Parameters:</strong>
2017
-
2018
-
2019
- <table class="params">
2020
- <thead>
2021
- <tr>
2022
-
2023
- <th>Name</th>
2024
-
2025
-
2026
- <th>Type</th>
2027
-
2028
-
2029
-
2030
-
2031
-
2032
- <th class="last">Description</th>
2033
- </tr>
2034
- </thead>
2035
-
2036
- <tbody>
2037
-
2038
-
2039
- <tr>
2040
-
2041
- <td class="name"><code>value</code></td>
2042
-
2043
-
2044
- <td class="type">
2045
-
2046
-
2047
- <span class="param-type">Number</span>
2048
-
2049
-
2050
-
2051
- </td>
2052
-
2053
-
2054
-
2055
-
2056
-
2057
- <td class="description last"></td>
2058
- </tr>
2059
-
2060
-
2061
- </tbody>
2062
- </table>
2063
-
2064
- </div>
2065
-
2066
-
2067
-
2068
-
2069
-
2070
-
2071
-
2072
- <dl class="details">
2073
-
2074
-
2075
-
2076
-
2077
-
2078
-
2079
-
2080
-
2081
-
2082
-
2083
-
2084
-
2085
-
2086
-
2087
-
2088
-
2089
-
2090
-
2091
-
2092
-
2093
-
2094
-
2095
-
2096
-
2097
-
2098
-
2099
- <div class="details-item-container">
2100
- <dt class="tag-source">Source:</dt>
2101
- <dd class="tag-source"><ul class="dummy"><li>
2102
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line89">line 89</a>
2103
- </li></ul></dd>
2104
- </div>
2105
-
2106
-
2107
-
2108
-
2109
-
2110
-
2111
-
2112
- </dl>
2113
-
2114
-
2115
-
2116
-
2117
-
2118
-
2119
-
2120
-
2121
-
2122
-
2123
-
2124
-
2125
-
2126
-
2127
-
2128
- <div class="method-member-container mt-20">
2129
- <strong>Returns:</strong>
2130
-
2131
-
2132
-
2133
-
2134
- <dl class="param-type">
2135
- <dt>
2136
- Type
2137
- </dt>
2138
- <dd>
2139
-
2140
- <span class="param-type">Number</span>
2141
-
2142
-
2143
- </dd>
2144
- </dl>
2145
-
2146
-
2147
- </div>
2148
-
2149
-
2150
-
2151
-
2152
-
2153
-
2154
-
2155
-
2156
-
2157
- <h4 class="name" id=".percent">
2158
- <a href="#.percent">#</a>
2159
- <span class="type-signature">(static) </span>percent<span class="signature">(value, max<span class="signature-attributes">opt</span>, min<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Number}</span>
2160
- </h4>
2161
-
2162
-
2163
-
2164
-
2165
-
2166
- <div class="description">
2167
- Returns what percentage the value is between max and min
2168
- </div>
2169
-
2170
-
2171
-
2172
-
2173
-
2174
-
2175
-
2176
-
2177
-
2178
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
2179
- <strong>Parameters:</strong>
2180
-
2181
-
2182
- <table class="params">
2183
- <thead>
2184
- <tr>
2185
-
2186
- <th>Name</th>
2187
-
2188
-
2189
- <th>Type</th>
2190
-
2191
-
2192
- <th>Attributes</th>
2193
-
2194
-
2195
-
2196
- <th>Default</th>
2197
-
2198
-
2199
- <th class="last">Description</th>
2200
- </tr>
2201
- </thead>
2202
-
2203
- <tbody>
2204
-
2205
-
2206
- <tr>
2207
-
2208
- <td class="name"><code>value</code></td>
2209
-
2210
-
2211
- <td class="type">
2212
-
2213
-
2214
- <span class="param-type">Number</span>
2215
-
2216
-
2217
-
2218
- </td>
2219
-
2220
-
2221
- <td class="attributes">
2222
-
2223
-
2224
-
2225
-
2226
-
2227
- </td>
2228
-
2229
-
2230
-
2231
- <td class="default">
2232
-
2233
- </td>
2234
-
2235
-
2236
- <td class="description last"></td>
2237
- </tr>
2238
-
2239
-
2240
-
2241
- <tr>
2242
-
2243
- <td class="name"><code>max</code></td>
2244
-
2245
-
2246
- <td class="type">
2247
-
2248
-
2249
- <span class="param-type">Number</span>
2250
-
2251
-
2252
-
2253
- </td>
2254
-
2255
-
2256
- <td class="attributes">
2257
-
2258
- &lt;optional><br>
2259
-
2260
-
2261
-
2262
-
2263
-
2264
- </td>
2265
-
2266
-
2267
-
2268
- <td class="default">
2269
-
2270
- 1
2271
-
2272
- </td>
2273
-
2274
-
2275
- <td class="description last"></td>
2276
- </tr>
2277
-
2278
-
2279
-
2280
- <tr>
2281
-
2282
- <td class="name"><code>min</code></td>
2283
-
2284
-
2285
- <td class="type">
2286
-
2287
-
2288
- <span class="param-type">Number</span>
2289
-
2290
-
2291
-
2292
- </td>
2293
-
2294
-
2295
- <td class="attributes">
2296
-
2297
- &lt;optional><br>
2298
-
2299
-
2300
-
2301
-
2302
-
2303
- </td>
2304
-
2305
-
2306
-
2307
- <td class="default">
2308
-
2309
- 0
2310
-
2311
- </td>
2312
-
2313
-
2314
- <td class="description last"></td>
2315
- </tr>
2316
-
2317
-
2318
- </tbody>
2319
- </table>
2320
-
2321
- </div>
2322
-
2323
-
2324
-
2325
-
2326
-
2327
-
2328
-
2329
- <dl class="details">
2330
-
2331
-
2332
-
2333
-
2334
-
2335
-
2336
-
2337
-
2338
-
2339
-
2340
-
2341
-
2342
-
2343
-
2344
-
2345
-
2346
-
2347
-
2348
-
2349
-
2350
-
2351
-
2352
-
2353
-
2354
-
2355
-
2356
- <div class="details-item-container">
2357
- <dt class="tag-source">Source:</dt>
2358
- <dd class="tag-source"><ul class="dummy"><li>
2359
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line69">line 69</a>
2360
- </li></ul></dd>
2361
- </div>
2362
-
2363
-
2364
-
2365
-
2366
-
2367
-
2368
-
2369
- </dl>
2370
-
2371
-
2372
-
2373
-
2374
-
2375
-
2376
-
2377
-
2378
-
2379
-
2380
-
2381
-
2382
-
2383
-
2384
-
2385
- <div class="method-member-container mt-20">
2386
- <strong>Returns:</strong>
2387
-
2388
-
2389
-
2390
-
2391
- <dl class="param-type">
2392
- <dt>
2393
- Type
2394
- </dt>
2395
- <dd>
2396
-
2397
- <span class="param-type">Number</span>
2398
-
2399
-
2400
- </dd>
2401
- </dl>
2402
-
2403
-
2404
- </div>
2405
-
2406
-
2407
-
2408
-
2409
-
2410
-
2411
-
2412
-
2413
-
2414
- <h4 class="name" id=".sign">
2415
- <a href="#.sign">#</a>
2416
- <span class="type-signature">(static) </span>sign<span class="signature">(value)</span><span class="type-signature"> &rarr; {Number}</span>
2417
- </h4>
2418
-
2419
-
2420
-
2421
-
2422
-
2423
- <div class="description">
2424
- Returns the sign of value passed in
2425
- </div>
2426
-
2427
-
2428
-
2429
-
2430
-
2431
-
2432
-
2433
-
2434
-
2435
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
2436
- <strong>Parameters:</strong>
2437
-
2438
-
2439
- <table class="params">
2440
- <thead>
2441
- <tr>
2442
-
2443
- <th>Name</th>
2444
-
2445
-
2446
- <th>Type</th>
2447
-
2448
-
2449
-
2450
-
2451
-
2452
- <th class="last">Description</th>
2453
- </tr>
2454
- </thead>
2455
-
2456
- <tbody>
2457
-
2458
-
2459
- <tr>
2460
-
2461
- <td class="name"><code>value</code></td>
2462
-
2463
-
2464
- <td class="type">
2465
-
2466
-
2467
- <span class="param-type">Number</span>
2468
-
2469
-
2470
-
2471
- </td>
2472
-
2473
-
2474
-
2475
-
2476
-
2477
- <td class="description last"></td>
2478
- </tr>
2479
-
2480
-
2481
- </tbody>
2482
- </table>
2483
-
2484
- </div>
2485
-
2486
-
2487
-
2488
-
2489
-
2490
-
2491
-
2492
- <dl class="details">
2493
-
2494
-
2495
-
2496
-
2497
-
2498
-
2499
-
2500
-
2501
-
2502
-
2503
-
2504
-
2505
-
2506
-
2507
-
2508
-
2509
-
2510
-
2511
-
2512
-
2513
-
2514
-
2515
-
2516
-
2517
-
2518
-
2519
- <div class="details-item-container">
2520
- <dt class="tag-source">Source:</dt>
2521
- <dd class="tag-source"><ul class="dummy"><li>
2522
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line32">line 32</a>
2523
- </li></ul></dd>
2524
- </div>
2525
-
2526
-
2527
-
2528
-
2529
-
2530
-
2531
-
2532
- </dl>
2533
-
2534
-
2535
-
2536
-
2537
-
2538
-
2539
-
2540
-
2541
-
2542
-
2543
-
2544
-
2545
-
2546
-
2547
-
2548
- <div class="method-member-container mt-20">
2549
- <strong>Returns:</strong>
2550
-
2551
-
2552
-
2553
-
2554
- <dl class="param-type">
2555
- <dt>
2556
- Type
2557
- </dt>
2558
- <dd>
2559
-
2560
- <span class="param-type">Number</span>
2561
-
2562
-
2563
- </dd>
2564
- </dl>
2565
-
2566
-
2567
- </div>
2568
-
2569
-
2570
-
2571
-
2572
-
2573
-
2574
-
2575
-
2576
-
2577
- <h4 class="name" id=".smoothStep">
2578
- <a href="#.smoothStep">#</a>
2579
- <span class="type-signature">(static) </span>smoothStep<span class="signature">(value)</span><span class="type-signature"> &rarr; {Number}</span>
2580
- </h4>
2581
-
2582
-
2583
-
2584
-
2585
-
2586
- <div class="description">
2587
- Applies smoothstep function to the percentage value
2588
- </div>
2589
-
2590
-
2591
-
2592
-
2593
-
2594
-
2595
-
2596
-
2597
-
2598
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
2599
- <strong>Parameters:</strong>
2600
-
2601
-
2602
- <table class="params">
2603
- <thead>
2604
- <tr>
2605
-
2606
- <th>Name</th>
2607
-
2608
-
2609
- <th>Type</th>
2610
-
2611
-
2612
-
2613
-
2614
-
2615
- <th class="last">Description</th>
2616
- </tr>
2617
- </thead>
2618
-
2619
- <tbody>
2620
-
2621
-
2622
- <tr>
2623
-
2624
- <td class="name"><code>value</code></td>
2625
-
2626
-
2627
- <td class="type">
2628
-
2629
-
2630
- <span class="param-type">Number</span>
2631
-
2632
-
2633
-
2634
- </td>
2635
-
2636
-
2637
-
2638
-
2639
-
2640
- <td class="description last"></td>
2641
- </tr>
2642
-
2643
-
2644
- </tbody>
2645
- </table>
2646
-
2647
- </div>
2648
-
2649
-
2650
-
2651
-
2652
-
2653
-
2654
-
2655
- <dl class="details">
2656
-
2657
-
2658
-
2659
-
2660
-
2661
-
2662
-
2663
-
2664
-
2665
-
2666
-
2667
-
2668
-
2669
-
2670
-
2671
-
2672
-
2673
-
2674
-
2675
-
2676
-
2677
-
2678
-
2679
-
2680
-
2681
-
2682
- <div class="details-item-container">
2683
- <dt class="tag-source">Source:</dt>
2684
- <dd class="tag-source"><ul class="dummy"><li>
2685
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line95">line 95</a>
2686
- </li></ul></dd>
2687
- </div>
2688
-
2689
-
2690
-
2691
-
2692
-
2693
-
2694
-
2695
- </dl>
2696
-
2697
-
2698
-
2699
-
2700
-
2701
-
2702
-
2703
-
2704
-
2705
-
2706
-
2707
-
2708
-
2709
-
2710
-
2711
- <div class="method-member-container mt-20">
2712
- <strong>Returns:</strong>
2713
-
2714
-
2715
-
2716
-
2717
- <dl class="param-type">
2718
- <dt>
2719
- Type
2720
- </dt>
2721
- <dd>
2722
-
2723
- <span class="param-type">Number</span>
2724
-
2725
-
2726
- </dd>
2727
- </dl>
2728
-
2729
-
2730
- </div>
2731
-
2732
-
2733
-
2734
-
2735
-
2736
-
2737
-
2738
-
2739
-
2740
- <h4 class="name" id=".vec2">
2741
- <a href="#.vec2">#</a>
2742
- <span class="type-signature">(static) </span>vec2<span class="signature">(x<span class="signature-attributes">opt</span>, y<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {<a href="Vector2.html">Vector2</a>}</span>
2743
- </h4>
2744
-
2745
-
2746
-
2747
-
2748
-
2749
- <div class="description">
2750
- Create a 2d vector, can take another Vector2 to copy, 2 scalars, or 1 scalar
2751
- </div>
2752
-
2753
-
2754
-
2755
-
2756
-
2757
-
2758
-
2759
-
2760
-
2761
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
2762
- <strong>Parameters:</strong>
2763
-
2764
-
2765
- <table class="params">
2766
- <thead>
2767
- <tr>
2768
-
2769
- <th>Name</th>
2770
-
2771
-
2772
- <th>Type</th>
2773
-
2774
-
2775
- <th>Attributes</th>
2776
-
2777
-
2778
-
2779
- <th>Default</th>
2780
-
2781
-
2782
- <th class="last">Description</th>
2783
- </tr>
2784
- </thead>
2785
-
2786
- <tbody>
2787
-
2788
-
2789
- <tr>
2790
-
2791
- <td class="name"><code>x</code></td>
2792
-
2793
-
2794
- <td class="type">
2795
-
2796
-
2797
- <span class="param-type">Number</span>
2798
-
2799
-
2800
-
2801
- </td>
2802
-
2803
-
2804
- <td class="attributes">
2805
-
2806
- &lt;optional><br>
2807
-
2808
-
2809
-
2810
-
2811
-
2812
- </td>
2813
-
2814
-
2815
-
2816
- <td class="default">
2817
-
2818
- 0
2819
-
2820
- </td>
2821
-
2822
-
2823
- <td class="description last"></td>
2824
- </tr>
2825
-
2826
-
2827
-
2828
- <tr>
2829
-
2830
- <td class="name"><code>y</code></td>
2831
-
2832
-
2833
- <td class="type">
2834
-
2835
-
2836
- <span class="param-type">Number</span>
2837
-
2838
-
2839
-
2840
- </td>
2841
-
2842
-
2843
- <td class="attributes">
2844
-
2845
- &lt;optional><br>
2846
-
2847
-
2848
-
2849
-
2850
-
2851
- </td>
2852
-
2853
-
2854
-
2855
- <td class="default">
2856
-
2857
- 0
2858
-
2859
- </td>
2860
-
2861
-
2862
- <td class="description last"></td>
2863
- </tr>
2864
-
2865
-
2866
- </tbody>
2867
- </table>
2868
-
2869
- </div>
2870
-
2871
-
2872
-
2873
-
2874
-
2875
-
2876
-
2877
- <dl class="details">
2878
-
2879
-
2880
-
2881
-
2882
-
2883
-
2884
-
2885
-
2886
-
2887
-
2888
-
2889
-
2890
-
2891
-
2892
-
2893
-
2894
-
2895
-
2896
-
2897
-
2898
-
2899
-
2900
-
2901
-
2902
-
2903
-
2904
- <div class="details-item-container">
2905
- <dt class="tag-source">Source:</dt>
2906
- <dd class="tag-source"><ul class="dummy"><li>
2907
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line182">line 182</a>
2908
- </li></ul></dd>
2909
- </div>
2910
-
2911
-
2912
-
2913
-
2914
-
2915
-
2916
-
2917
- </dl>
2918
-
2919
-
2920
-
2921
-
2922
-
2923
-
2924
-
2925
-
2926
-
2927
-
2928
-
2929
-
2930
-
2931
-
2932
-
2933
- <div class="method-member-container mt-20">
2934
- <strong>Returns:</strong>
2935
-
2936
-
2937
-
2938
-
2939
- <dl class="param-type">
2940
- <dt>
2941
- Type
2942
- </dt>
2943
- <dd>
2944
-
2945
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2946
-
2947
-
2948
- </dd>
2949
- </dl>
2950
-
2951
-
2952
- </div>
2953
-
2954
-
2955
-
2956
-
2957
-
2958
-
2959
-
2960
-
2961
-
2962
- <h4 class="name" id=".wave">
2963
- <a href="#.wave">#</a>
2964
- <span class="type-signature">(static) </span>wave<span class="signature">(frequency<span class="signature-attributes">opt</span>, amplitude<span class="signature-attributes">opt</span>, t<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Number}</span>
2965
- </h4>
2966
-
2967
-
2968
-
2969
-
2970
-
2971
- <div class="description">
2972
- Returns an oscillating wave between 0 and amplitude with frequency of 1 Hz by default
2973
- </div>
2974
-
2975
-
2976
-
2977
-
2978
-
2979
-
2980
-
2981
-
2982
-
2983
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
2984
- <strong>Parameters:</strong>
2985
-
2986
-
2987
- <table class="params">
2988
- <thead>
2989
- <tr>
2990
-
2991
- <th>Name</th>
2992
-
2993
-
2994
- <th>Type</th>
2995
-
2996
-
2997
- <th>Attributes</th>
2998
-
2999
-
3000
-
3001
- <th>Default</th>
3002
-
3003
-
3004
- <th class="last">Description</th>
3005
- </tr>
3006
- </thead>
3007
-
3008
- <tbody>
3009
-
3010
-
3011
- <tr>
3012
-
3013
- <td class="name"><code>frequency</code></td>
3014
-
3015
-
3016
- <td class="type">
3017
-
3018
-
3019
- <span class="param-type">Number</span>
3020
-
3021
-
3022
-
3023
- </td>
3024
-
3025
-
3026
- <td class="attributes">
3027
-
3028
- &lt;optional><br>
3029
-
3030
-
3031
-
3032
-
3033
-
3034
- </td>
3035
-
3036
-
3037
-
3038
- <td class="default">
3039
-
3040
- 1
3041
-
3042
- </td>
3043
-
3044
-
3045
- <td class="description last">Frequency of the wave in Hz</td>
3046
- </tr>
3047
-
3048
-
3049
-
3050
- <tr>
3051
-
3052
- <td class="name"><code>amplitude</code></td>
3053
-
3054
-
3055
- <td class="type">
3056
-
3057
-
3058
- <span class="param-type">Number</span>
3059
-
3060
-
3061
-
3062
- </td>
3063
-
3064
-
3065
- <td class="attributes">
3066
-
3067
- &lt;optional><br>
3068
-
3069
-
3070
-
3071
-
3072
-
3073
- </td>
3074
-
3075
-
3076
-
3077
- <td class="default">
3078
-
3079
- 1
3080
-
3081
- </td>
3082
-
3083
-
3084
- <td class="description last">Amplitude (max height) of the wave</td>
3085
- </tr>
3086
-
3087
-
3088
-
3089
- <tr>
3090
-
3091
- <td class="name"><code>t</code></td>
3092
-
3093
-
3094
- <td class="type">
3095
-
3096
-
3097
- <span class="param-type">Number</span>
3098
-
3099
-
3100
-
3101
- </td>
3102
-
3103
-
3104
- <td class="attributes">
3105
-
3106
- &lt;optional><br>
3107
-
3108
-
3109
-
3110
-
3111
-
3112
- </td>
3113
-
3114
-
3115
-
3116
- <td class="default">
3117
-
3118
- time
3119
-
3120
- </td>
3121
-
3122
-
3123
- <td class="description last">Value to use for time of the wave</td>
3124
- </tr>
3125
-
3126
-
3127
- </tbody>
3128
- </table>
3129
-
3130
- </div>
3131
-
3132
-
3133
-
3134
-
3135
-
3136
-
3137
-
3138
- <dl class="details">
3139
-
3140
-
3141
-
3142
-
3143
-
3144
-
3145
-
3146
-
3147
-
3148
-
3149
-
3150
-
3151
-
3152
-
3153
-
3154
-
3155
-
3156
-
3157
-
3158
-
3159
-
3160
-
3161
-
3162
-
3163
-
3164
-
3165
- <div class="details-item-container">
3166
- <dt class="tag-source">Source:</dt>
3167
- <dd class="tag-source"><ul class="dummy"><li>
3168
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line112">line 112</a>
3169
- </li></ul></dd>
3170
- </div>
3171
-
3172
-
3173
-
3174
-
3175
-
3176
-
3177
-
3178
- </dl>
3179
-
3180
-
3181
-
3182
-
3183
-
3184
-
3185
-
3186
-
3187
-
3188
-
3189
-
3190
-
3191
-
3192
-
3193
-
3194
- <div class="method-member-container mt-20">
3195
- <strong>Returns:</strong>
3196
-
3197
-
3198
- <div class="param-desc">
3199
- - Value waving between 0 and amplitude
3200
- </div>
3201
-
3202
-
3203
-
3204
- <dl class="param-type">
3205
- <dt>
3206
- Type
3207
- </dt>
3208
- <dd>
3209
-
3210
- <span class="param-type">Number</span>
3211
-
3212
-
3213
- </dd>
3214
- </dl>
3215
-
3216
-
3217
- </div>
3218
-
3219
-
3220
-
3221
-
3222
-
3223
-
3224
-
3225
-
3226
-
3227
-
3228
- </article>
3229
-
3230
- </section>
3231
-
3232
-
3233
-
3234
-
3235
- </div>
3236
-
3237
- <footer class="footer" id="footer">
3238
- <a href=https://github.com/KilledByAPixel/LittleJS>LittleJS - MIT License - Copyright 2021 Frank Force</a>
3239
- </footer>
3240
-
3241
- <script src="scripts/third-party/prettify.js"></script>
3242
- <script src="scripts/third-party/lang-css.js"></script>
3243
- <script type="text/javascript" src="scripts/misc.js"></script>
3244
-
3245
- <script>prettyPrint();</script>
3246
- <script src="scripts/linenumber.js"></script>
3247
- <script src="scripts/fix-code-block.js"></script>
3248
- <script src="scripts/fix-navbar.js"></script>
3249
-
3250
- <script src="scripts/search.js"></script>
3251
- <script src="scripts/third-party/fuse.js"></script>
3252
- <script>
3253
- var list = [{"title":"Color","link":"<a href=\"Color.html\">Color</a>"},{"title":"Color#add","link":"<a href=\"Color.html#add\">Color &rtrif; add</a>"},{"title":"Color#clamp","link":"<a href=\"Color.html#clamp\">Color &rtrif; clamp</a>"},{"title":"Color#copy","link":"<a href=\"Color.html#copy\">Color &rtrif; copy</a>"},{"title":"Color#divide","link":"<a href=\"Color.html#divide\">Color &rtrif; divide</a>"},{"title":"Color#lerp","link":"<a href=\"Color.html#lerp\">Color &rtrif; lerp</a>"},{"title":"Color#multiply","link":"<a href=\"Color.html#multiply\">Color &rtrif; multiply</a>"},{"title":"Color#mutate","link":"<a href=\"Color.html#mutate\">Color &rtrif; mutate</a>"},{"title":"Color#rgba","link":"<a href=\"Color.html#rgba\">Color &rtrif; rgba</a>"},{"title":"Color#rgbaInt","link":"<a href=\"Color.html#rgbaInt\">Color &rtrif; rgbaInt</a>"},{"title":"Color#scale","link":"<a href=\"Color.html#scale\">Color &rtrif; scale</a>"},{"title":"Color#setHSLA","link":"<a href=\"Color.html#setHSLA\">Color &rtrif; setHSLA</a>"},{"title":"Color#subtract","link":"<a href=\"Color.html#subtract\">Color &rtrif; subtract</a>"},{"title":"EngineObject","link":"<a href=\"EngineObject.html\">EngineObject</a>"},{"title":"EngineObject#addChild","link":"<a href=\"EngineObject.html#addChild\">EngineObject &rtrif; addChild</a>"},{"title":"EngineObject#applyAcceleration","link":"<a href=\"EngineObject.html#applyAcceleration\">EngineObject &rtrif; applyAcceleration</a>"},{"title":"EngineObject#applyForce","link":"<a href=\"EngineObject.html#applyForce\">EngineObject &rtrif; applyForce</a>"},{"title":"EngineObject#collideWithObject","link":"<a href=\"EngineObject.html#collideWithObject\">EngineObject &rtrif; collideWithObject</a>"},{"title":"EngineObject#collideWithTile","link":"<a href=\"EngineObject.html#collideWithTile\">EngineObject &rtrif; collideWithTile</a>"},{"title":"EngineObject#collideWithTileRaycast","link":"<a href=\"EngineObject.html#collideWithTileRaycast\">EngineObject &rtrif; collideWithTileRaycast</a>"},{"title":"EngineObject#destroy","link":"<a href=\"EngineObject.html#destroy\">EngineObject &rtrif; destroy</a>"},{"title":"EngineObject#getAliveTime","link":"<a href=\"EngineObject.html#getAliveTime\">EngineObject &rtrif; getAliveTime</a>"},{"title":"EngineObject#getMirrorSign","link":"<a href=\"EngineObject.html#getMirrorSign\">EngineObject &rtrif; getMirrorSign</a>"},{"title":"EngineObject#removeChild","link":"<a href=\"EngineObject.html#removeChild\">EngineObject &rtrif; removeChild</a>"},{"title":"EngineObject#render","link":"<a href=\"EngineObject.html#render\">EngineObject &rtrif; render</a>"},{"title":"EngineObject#setCollision","link":"<a href=\"EngineObject.html#setCollision\">EngineObject &rtrif; setCollision</a>"},{"title":"EngineObject#update","link":"<a href=\"EngineObject.html#update\">EngineObject &rtrif; update</a>"},{"title":"Medal","link":"<a href=\"Medal.html\">Medal</a>"},{"title":"Medal#render","link":"<a href=\"Medal.html#render\">Medal &rtrif; render</a>"},{"title":"Medal#renderIcon","link":"<a href=\"Medal.html#renderIcon\">Medal &rtrif; renderIcon</a>"},{"title":"Medal#unlock","link":"<a href=\"Medal.html#unlock\">Medal &rtrif; unlock</a>"},{"title":"Music","link":"<a href=\"Music.html\">Music</a>"},{"title":"Music#play","link":"<a href=\"Music.html#play\">Music &rtrif; play</a>"},{"title":"Newgrounds","link":"<a href=\"Newgrounds.html\">Newgrounds</a>"},{"title":"Newgrounds#call","link":"<a href=\"Newgrounds.html#call\">Newgrounds &rtrif; call</a>"},{"title":"Newgrounds#getScores","link":"<a href=\"Newgrounds.html#getScores\">Newgrounds &rtrif; getScores</a>"},{"title":"Newgrounds#logView","link":"<a href=\"Newgrounds.html#logView\">Newgrounds &rtrif; logView</a>"},{"title":"Newgrounds#postScore","link":"<a href=\"Newgrounds.html#postScore\">Newgrounds &rtrif; postScore</a>"},{"title":"Newgrounds#unlockMedal","link":"<a href=\"Newgrounds.html#unlockMedal\">Newgrounds &rtrif; unlockMedal</a>"},{"title":"Particle","link":"<a href=\"Particle.html\">Particle</a>"},{"title":"Particle#render","link":"<a href=\"Particle.html#render\">Particle &rtrif; render</a>"},{"title":"ParticleEmitter","link":"<a href=\"ParticleEmitter.html\">ParticleEmitter</a>"},{"title":"ParticleEmitter#emitParticle","link":"<a href=\"ParticleEmitter.html#emitParticle\">ParticleEmitter &rtrif; emitParticle</a>"},{"title":"ParticleEmitter#update","link":"<a href=\"ParticleEmitter.html#update\">ParticleEmitter &rtrif; update</a>"},{"title":"Sound","link":"<a href=\"Sound.html\">Sound</a>"},{"title":"Sound#play","link":"<a href=\"Sound.html#play\">Sound &rtrif; play</a>"},{"title":"Sound#playNote","link":"<a href=\"Sound.html#playNote\">Sound &rtrif; playNote</a>"},{"title":"TileLayer","link":"<a href=\"TileLayer.html\">TileLayer</a>"},{"title":"TileLayer.getTileCollisionData","link":"<a href=\"TileLayer.html#.getTileCollisionData\">TileLayer.getTileCollisionData &rtrif; undefined</a>"},{"title":"TileLayer.initTileCollision","link":"<a href=\"TileLayer.html#.initTileCollision\">TileLayer.initTileCollision &rtrif; undefined</a>"},{"title":"TileLayer.setTileCollisionData","link":"<a href=\"TileLayer.html#.setTileCollisionData\">TileLayer.setTileCollisionData &rtrif; undefined</a>"},{"title":"TileLayer.tileCollisionRaycast","link":"<a href=\"TileLayer.html#.tileCollisionRaycast\">TileLayer.tileCollisionRaycast &rtrif; undefined</a>"},{"title":"TileLayer.tileCollisionTest","link":"<a href=\"TileLayer.html#.tileCollisionTest\">TileLayer.tileCollisionTest &rtrif; undefined</a>"},{"title":"TileLayer#destroy","link":"<a href=\"TileLayer.html#destroy\">TileLayer &rtrif; destroy</a>"},{"title":"TileLayer#drawAllTileData","link":"<a href=\"TileLayer.html#drawAllTileData\">TileLayer &rtrif; drawAllTileData</a>"},{"title":"TileLayer#drawCanvas2D","link":"<a href=\"TileLayer.html#drawCanvas2D\">TileLayer &rtrif; drawCanvas2D</a>"},{"title":"TileLayer#drawRect","link":"<a href=\"TileLayer.html#drawRect\">TileLayer &rtrif; drawRect</a>"},{"title":"TileLayer#drawTile","link":"<a href=\"TileLayer.html#drawTile\">TileLayer &rtrif; drawTile</a>"},{"title":"TileLayer#drawTileData","link":"<a href=\"TileLayer.html#drawTileData\">TileLayer &rtrif; drawTileData</a>"},{"title":"TileLayer#getData","link":"<a href=\"TileLayer.html#getData\">TileLayer &rtrif; getData</a>"},{"title":"TileLayer#redraw","link":"<a href=\"TileLayer.html#redraw\">TileLayer &rtrif; redraw</a>"},{"title":"TileLayer#redrawEnd","link":"<a href=\"TileLayer.html#redrawEnd\">TileLayer &rtrif; redrawEnd</a>"},{"title":"TileLayer#redrawStart","link":"<a href=\"TileLayer.html#redrawStart\">TileLayer &rtrif; redrawStart</a>"},{"title":"TileLayer#setData","link":"<a href=\"TileLayer.html#setData\">TileLayer &rtrif; setData</a>"},{"title":"TileLayerData","link":"<a href=\"TileLayerData.html\">TileLayerData</a>"},{"title":"TileLayerData#clear","link":"<a href=\"TileLayerData.html#clear\">TileLayerData &rtrif; clear</a>"},{"title":"Timer","link":"<a href=\"Timer.html\">Timer</a>"},{"title":"Timer#active","link":"<a href=\"Timer.html#active\">Timer &rtrif; active</a>"},{"title":"Timer#elapsed","link":"<a href=\"Timer.html#elapsed\">Timer &rtrif; elapsed</a>"},{"title":"Timer#get","link":"<a href=\"Timer.html#get\">Timer &rtrif; get</a>"},{"title":"Timer#getPercent","link":"<a href=\"Timer.html#getPercent\">Timer &rtrif; getPercent</a>"},{"title":"Timer#isSet","link":"<a href=\"Timer.html#isSet\">Timer &rtrif; isSet</a>"},{"title":"Timer#set","link":"<a href=\"Timer.html#set\">Timer &rtrif; set</a>"},{"title":"Timer#unset","link":"<a href=\"Timer.html#unset\">Timer &rtrif; unset</a>"},{"title":"Vector2","link":"<a href=\"Vector2.html\">Vector2</a>"},{"title":"Vector2#add","link":"<a href=\"Vector2.html#add\">Vector2 &rtrif; add</a>"},{"title":"Vector2#angle","link":"<a href=\"Vector2.html#angle\">Vector2 &rtrif; angle</a>"},{"title":"Vector2#area","link":"<a href=\"Vector2.html#area\">Vector2 &rtrif; area</a>"},{"title":"Vector2#arrayCheck","link":"<a href=\"Vector2.html#arrayCheck\">Vector2 &rtrif; arrayCheck</a>"},{"title":"Vector2#clampLength","link":"<a href=\"Vector2.html#clampLength\">Vector2 &rtrif; clampLength</a>"},{"title":"Vector2#copy","link":"<a href=\"Vector2.html#copy\">Vector2 &rtrif; copy</a>"},{"title":"Vector2#cross","link":"<a href=\"Vector2.html#cross\">Vector2 &rtrif; cross</a>"},{"title":"Vector2#direction","link":"<a href=\"Vector2.html#direction\">Vector2 &rtrif; direction</a>"},{"title":"Vector2#distance","link":"<a href=\"Vector2.html#distance\">Vector2 &rtrif; distance</a>"},{"title":"Vector2#distanceSquared","link":"<a href=\"Vector2.html#distanceSquared\">Vector2 &rtrif; distanceSquared</a>"},{"title":"Vector2#divide","link":"<a href=\"Vector2.html#divide\">Vector2 &rtrif; divide</a>"},{"title":"Vector2#dot","link":"<a href=\"Vector2.html#dot\">Vector2 &rtrif; dot</a>"},{"title":"Vector2#flip","link":"<a href=\"Vector2.html#flip\">Vector2 &rtrif; flip</a>"},{"title":"Vector2#floor","link":"<a href=\"Vector2.html#floor\">Vector2 &rtrif; floor</a>"},{"title":"Vector2#invert","link":"<a href=\"Vector2.html#invert\">Vector2 &rtrif; invert</a>"},{"title":"Vector2#length","link":"<a href=\"Vector2.html#length\">Vector2 &rtrif; length</a>"},{"title":"Vector2#lengthSquared","link":"<a href=\"Vector2.html#lengthSquared\">Vector2 &rtrif; lengthSquared</a>"},{"title":"Vector2#lerp","link":"<a href=\"Vector2.html#lerp\">Vector2 &rtrif; lerp</a>"},{"title":"Vector2#multiply","link":"<a href=\"Vector2.html#multiply\">Vector2 &rtrif; multiply</a>"},{"title":"Vector2#normalize","link":"<a href=\"Vector2.html#normalize\">Vector2 &rtrif; normalize</a>"},{"title":"Vector2#rotate","link":"<a href=\"Vector2.html#rotate\">Vector2 &rtrif; rotate</a>"},{"title":"Vector2#scale","link":"<a href=\"Vector2.html#scale\">Vector2 &rtrif; scale</a>"},{"title":"Vector2#setAngle","link":"<a href=\"Vector2.html#setAngle\">Vector2 &rtrif; setAngle</a>"},{"title":"Vector2#subtract","link":"<a href=\"Vector2.html#subtract\">Vector2 &rtrif; subtract</a>"},{"title":"Audio","link":"<a href=\"Audio.html\">Audio</a>"},{"title":"Audio.getNoteFrequency","link":"<a href=\"Audio.html#.getNoteFrequency\">Audio.getNoteFrequency &rtrif; undefined</a>"},{"title":"Audio.playAudioFile","link":"<a href=\"Audio.html#.playAudioFile\">Audio.playAudioFile &rtrif; undefined</a>"},{"title":"Audio.playSamples","link":"<a href=\"Audio.html#.playSamples\">Audio.playSamples &rtrif; undefined</a>"},{"title":"Audio.speak","link":"<a href=\"Audio.html#.speak\">Audio.speak &rtrif; undefined</a>"},{"title":"Audio.stopSpeech","link":"<a href=\"Audio.html#.stopSpeech\">Audio.stopSpeech &rtrif; undefined</a>"},{"title":"Audio.zzfx","link":"<a href=\"Audio.html#.zzfx\">Audio.zzfx &rtrif; undefined</a>"},{"title":"Audio.zzfxG","link":"<a href=\"Audio.html#.zzfxG\">Audio.zzfxG &rtrif; undefined</a>"},{"title":"Audio.zzfxM","link":"<a href=\"Audio.html#.zzfxM\">Audio.zzfxM &rtrif; undefined</a>"},{"title":"Debug","link":"<a href=\"Debug.html\">Debug</a>"},{"title":"Debug.debugAABB","link":"<a href=\"Debug.html#.debugAABB\">Debug.debugAABB &rtrif; undefined</a>"},{"title":"Debug.debugCircle","link":"<a href=\"Debug.html#.debugCircle\">Debug.debugCircle &rtrif; undefined</a>"},{"title":"Debug.debugClear","link":"<a href=\"Debug.html#.debugClear\">Debug.debugClear &rtrif; undefined</a>"},{"title":"Debug.debugLine","link":"<a href=\"Debug.html#.debugLine\">Debug.debugLine &rtrif; undefined</a>"},{"title":"Debug.debugPoint","link":"<a href=\"Debug.html#.debugPoint\">Debug.debugPoint &rtrif; undefined</a>"},{"title":"Debug.debugRect","link":"<a href=\"Debug.html#.debugRect\">Debug.debugRect &rtrif; undefined</a>"},{"title":"Debug.debugSaveCanvas","link":"<a href=\"Debug.html#.debugSaveCanvas\">Debug.debugSaveCanvas &rtrif; undefined</a>"},{"title":"Debug.debugText","link":"<a href=\"Debug.html#.debugText\">Debug.debugText &rtrif; undefined</a>"},{"title":"Draw","link":"<a href=\"Draw.html\">Draw</a>"},{"title":"Draw.drawCanvas2D","link":"<a href=\"Draw.html#.drawCanvas2D\">Draw.drawCanvas2D &rtrif; undefined</a>"},{"title":"Draw.drawLine","link":"<a href=\"Draw.html#.drawLine\">Draw.drawLine &rtrif; undefined</a>"},{"title":"Draw.drawRect","link":"<a href=\"Draw.html#.drawRect\">Draw.drawRect &rtrif; undefined</a>"},{"title":"Draw.drawRectScreenSpace","link":"<a href=\"Draw.html#.drawRectScreenSpace\">Draw.drawRectScreenSpace &rtrif; undefined</a>"},{"title":"Draw.drawText","link":"<a href=\"Draw.html#.drawText\">Draw.drawText &rtrif; undefined</a>"},{"title":"Draw.drawTile","link":"<a href=\"Draw.html#.drawTile\">Draw.drawTile &rtrif; undefined</a>"},{"title":"Draw.drawTileScreenSpace","link":"<a href=\"Draw.html#.drawTileScreenSpace\">Draw.drawTileScreenSpace &rtrif; undefined</a>"},{"title":"Draw.isFullscreen","link":"<a href=\"Draw.html#.isFullscreen\">Draw.isFullscreen &rtrif; undefined</a>"},{"title":"Draw.screenToWorld","link":"<a href=\"Draw.html#.screenToWorld\">Draw.screenToWorld &rtrif; undefined</a>"},{"title":"Draw.setBlendMode","link":"<a href=\"Draw.html#.setBlendMode\">Draw.setBlendMode &rtrif; undefined</a>"},{"title":"Draw.toggleFullscreen","link":"<a href=\"Draw.html#.toggleFullscreen\">Draw.toggleFullscreen &rtrif; undefined</a>"},{"title":"Draw.worldToScreen","link":"<a href=\"Draw.html#.worldToScreen\">Draw.worldToScreen &rtrif; undefined</a>"},{"title":"Input","link":"<a href=\"Input.html\">Input</a>"},{"title":"Input.clearInput","link":"<a href=\"Input.html#.clearInput\">Input.clearInput &rtrif; undefined</a>"},{"title":"Input.gamepadIsDown","link":"<a href=\"Input.html#.gamepadIsDown\">Input.gamepadIsDown &rtrif; undefined</a>"},{"title":"Input.gamepadStick","link":"<a href=\"Input.html#.gamepadStick\">Input.gamepadStick &rtrif; undefined</a>"},{"title":"Input.gamepadWasPressed","link":"<a href=\"Input.html#.gamepadWasPressed\">Input.gamepadWasPressed &rtrif; undefined</a>"},{"title":"Input.gamepadWasReleased","link":"<a href=\"Input.html#.gamepadWasReleased\">Input.gamepadWasReleased &rtrif; undefined</a>"},{"title":"Input.keyIsDown","link":"<a href=\"Input.html#.keyIsDown\">Input.keyIsDown &rtrif; undefined</a>"},{"title":"Input.keyWasPressed","link":"<a href=\"Input.html#.keyWasPressed\">Input.keyWasPressed &rtrif; undefined</a>"},{"title":"Input.keyWasReleased","link":"<a href=\"Input.html#.keyWasReleased\">Input.keyWasReleased &rtrif; undefined</a>"},{"title":"Medals","link":"<a href=\"Medals.html\">Medals</a>"},{"title":"Medals.medalsInit","link":"<a href=\"Medals.html#.medalsInit\">Medals.medalsInit &rtrif; undefined</a>"},{"title":"Random","link":"<a href=\"Random.html\">Random</a>"},{"title":"Random.rand","link":"<a href=\"Random.html#.rand\">Random.rand &rtrif; undefined</a>"},{"title":"Random.randColor","link":"<a href=\"Random.html#.randColor\">Random.randColor &rtrif; undefined</a>"},{"title":"Random.randInCircle","link":"<a href=\"Random.html#.randInCircle\">Random.randInCircle &rtrif; undefined</a>"},{"title":"Random.randInt","link":"<a href=\"Random.html#.randInt\">Random.randInt &rtrif; undefined</a>"},{"title":"Random.randSeeded","link":"<a href=\"Random.html#.randSeeded\">Random.randSeeded &rtrif; undefined</a>"},{"title":"Random.randSign","link":"<a href=\"Random.html#.randSign\">Random.randSign &rtrif; undefined</a>"},{"title":"Random.randVector","link":"<a href=\"Random.html#.randVector\">Random.randVector &rtrif; undefined</a>"},{"title":"Settings","link":"<a href=\"Settings.html\">Settings</a>"},{"title":"Utilities","link":"<a href=\"Utilities.html\">Utilities</a>"},{"title":"Utilities.abs","link":"<a href=\"Utilities.html#.abs\">Utilities.abs &rtrif; undefined</a>"},{"title":"Utilities.clamp","link":"<a href=\"Utilities.html#.clamp\">Utilities.clamp &rtrif; undefined</a>"},{"title":"Utilities.formatTime","link":"<a href=\"Utilities.html#.formatTime\">Utilities.formatTime &rtrif; undefined</a>"},{"title":"Utilities.isOverlapping","link":"<a href=\"Utilities.html#.isOverlapping\">Utilities.isOverlapping &rtrif; undefined</a>"},{"title":"Utilities.lerp","link":"<a href=\"Utilities.html#.lerp\">Utilities.lerp &rtrif; undefined</a>"},{"title":"Utilities.max","link":"<a href=\"Utilities.html#.max\">Utilities.max &rtrif; undefined</a>"},{"title":"Utilities.min","link":"<a href=\"Utilities.html#.min\">Utilities.min &rtrif; undefined</a>"},{"title":"Utilities.mod","link":"<a href=\"Utilities.html#.mod\">Utilities.mod &rtrif; undefined</a>"},{"title":"Utilities.nearestPowerOfTwo","link":"<a href=\"Utilities.html#.nearestPowerOfTwo\">Utilities.nearestPowerOfTwo &rtrif; undefined</a>"},{"title":"Utilities.percent","link":"<a href=\"Utilities.html#.percent\">Utilities.percent &rtrif; undefined</a>"},{"title":"Utilities.sign","link":"<a href=\"Utilities.html#.sign\">Utilities.sign &rtrif; undefined</a>"},{"title":"Utilities.smoothStep","link":"<a href=\"Utilities.html#.smoothStep\">Utilities.smoothStep &rtrif; undefined</a>"},{"title":"Utilities.vec2","link":"<a href=\"Utilities.html#.vec2\">Utilities.vec2 &rtrif; undefined</a>"},{"title":"Utilities.wave","link":"<a href=\"Utilities.html#.wave\">Utilities.wave &rtrif; undefined</a>"},{"title":"WebGL","link":"<a href=\"WebGL.html\">WebGL</a>"},{"title":"WebGL.glCompileShader","link":"<a href=\"WebGL.html#.glCompileShader\">WebGL.glCompileShader &rtrif; undefined</a>"},{"title":"WebGL.glCopyToContext","link":"<a href=\"WebGL.html#.glCopyToContext\">WebGL.glCopyToContext &rtrif; undefined</a>"},{"title":"WebGL.glCreateBuffer","link":"<a href=\"WebGL.html#.glCreateBuffer\">WebGL.glCreateBuffer &rtrif; undefined</a>"},{"title":"WebGL.glCreateProgram","link":"<a href=\"WebGL.html#.glCreateProgram\">WebGL.glCreateProgram &rtrif; undefined</a>"},{"title":"WebGL.glCreateTexture","link":"<a href=\"WebGL.html#.glCreateTexture\">WebGL.glCreateTexture &rtrif; undefined</a>"},{"title":"WebGL.glFlush","link":"<a href=\"WebGL.html#.glFlush\">WebGL.glFlush &rtrif; undefined</a>"},{"title":"WebGL.glSetBlendMode","link":"<a href=\"WebGL.html#.glSetBlendMode\">WebGL.glSetBlendMode &rtrif; undefined</a>"},{"title":"WebGL.glSetTexture","link":"<a href=\"WebGL.html#.glSetTexture\">WebGL.glSetTexture &rtrif; undefined</a>"},{"title":"engineCollideObjects","link":"<a href=\"global.html#engineCollideObjects\">engineCollideObjects</a>"},{"title":"engineInit","link":"<a href=\"global.html#engineInit\">engineInit</a>"},{"title":"engineName","link":"<a href=\"global.html#engineName\">engineName</a>"},{"title":"engineObjects","link":"<a href=\"global.html#engineObjects\">engineObjects</a>"},{"title":"engineObjectsCallback","link":"<a href=\"global.html#engineObjectsCallback\">engineObjectsCallback</a>"},{"title":"engineObjectsDestroy","link":"<a href=\"global.html#engineObjectsDestroy\">engineObjectsDestroy</a>"},{"title":"engineObjectsUpdate","link":"<a href=\"global.html#engineObjectsUpdate\">engineObjectsUpdate</a>"},{"title":"engineVersion","link":"<a href=\"global.html#engineVersion\">engineVersion</a>"},{"title":"FPS","link":"<a href=\"global.html#FPS\">FPS</a>"},{"title":"frame","link":"<a href=\"global.html#frame\">frame</a>"},{"title":"paused","link":"<a href=\"global.html#paused\">paused</a>"},{"title":"time","link":"<a href=\"global.html#time\">time</a>"},{"title":"timeDelta","link":"<a href=\"global.html#timeDelta\">timeDelta</a>"},{"title":"timeReal","link":"<a href=\"global.html#timeReal\">timeReal</a>"}];
3254
- var options =
3255
- setupSearch(list, options)
3256
- </script>
3257
-
3258
-
3259
-
3260
-
3261
-
3262
-
3263
-
3264
-
3265
-
3266
-
3267
-
3268
- </body>
3269
-
3270
- </html>