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
package/docs/Vector2.html DELETED
@@ -1,3956 +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
- Vector2
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
- Vector2
104
- </h1>
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
- <section>
113
-
114
-
115
- <header>
116
-
117
-
118
- <h2>
119
-
120
- Vector2
121
-
122
- </h2>
123
-
124
-
125
- <div class="class-description">2D Vector object with vector math library</div>
126
-
127
-
128
- </header>
129
-
130
-
131
- <article>
132
- <div class="container-overview">
133
-
134
-
135
-
136
-
137
- <h2>Constructor</h2>
138
-
139
-
140
- <h4 class="name" id="Vector2">
141
- <a href="#Vector2">#</a>
142
- <span class="type-signature"></span>new Vector2<span class="signature">(x<span class="signature-attributes">opt</span>, y<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span>
143
- </h4>
144
-
145
-
146
-
147
-
148
-
149
- <div class="description">
150
- Create a 2D vector with the x and y passed in, can also be created with vec2()
151
- </div>
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
162
- <strong>Parameters:</strong>
163
-
164
-
165
- <table class="params">
166
- <thead>
167
- <tr>
168
-
169
- <th>Name</th>
170
-
171
-
172
- <th>Type</th>
173
-
174
-
175
- <th>Attributes</th>
176
-
177
-
178
-
179
- <th>Default</th>
180
-
181
-
182
- <th class="last">Description</th>
183
- </tr>
184
- </thead>
185
-
186
- <tbody>
187
-
188
-
189
- <tr>
190
-
191
- <td class="name"><code>x</code></td>
192
-
193
-
194
- <td class="type">
195
-
196
-
197
- <span class="param-type">Number</span>
198
-
199
-
200
-
201
- </td>
202
-
203
-
204
- <td class="attributes">
205
-
206
- &lt;optional><br>
207
-
208
-
209
-
210
-
211
-
212
- </td>
213
-
214
-
215
-
216
- <td class="default">
217
-
218
- 0
219
-
220
- </td>
221
-
222
-
223
- <td class="description last">x axis position</td>
224
- </tr>
225
-
226
-
227
-
228
- <tr>
229
-
230
- <td class="name"><code>y</code></td>
231
-
232
-
233
- <td class="type">
234
-
235
-
236
- <span class="param-type">Number</span>
237
-
238
-
239
-
240
- </td>
241
-
242
-
243
- <td class="attributes">
244
-
245
- &lt;optional><br>
246
-
247
-
248
-
249
-
250
-
251
- </td>
252
-
253
-
254
-
255
- <td class="default">
256
-
257
- 0
258
-
259
- </td>
260
-
261
-
262
- <td class="description last">y axis position</td>
263
- </tr>
264
-
265
-
266
- </tbody>
267
- </table>
268
-
269
- </div>
270
-
271
-
272
-
273
-
274
-
275
-
276
-
277
- <dl class="details">
278
-
279
-
280
-
281
-
282
-
283
-
284
-
285
-
286
-
287
-
288
-
289
-
290
-
291
-
292
-
293
-
294
-
295
-
296
-
297
-
298
-
299
-
300
-
301
-
302
-
303
-
304
- <div class="details-item-container">
305
- <dt class="tag-source">Source:</dt>
306
- <dd class="tag-source"><ul class="dummy"><li>
307
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line185">line 185</a>
308
- </li></ul></dd>
309
- </div>
310
-
311
-
312
-
313
-
314
-
315
-
316
-
317
- </dl>
318
-
319
-
320
-
321
-
322
-
323
-
324
-
325
-
326
-
327
-
328
-
329
-
330
-
331
-
332
-
333
-
334
-
335
-
336
-
337
- </div>
338
-
339
-
340
-
341
-
342
-
343
-
344
-
345
-
346
-
347
-
348
-
349
-
350
-
351
-
352
- <h3 class="subsection-title">Methods</h3>
353
-
354
-
355
-
356
-
357
-
358
-
359
- <h4 class="name" id="add">
360
- <a href="#add">#</a>
361
- <span class="type-signature"></span>add<span class="signature">(vector)</span><span class="type-signature"> &rarr; {<a href="Vector2.html">Vector2</a>}</span>
362
- </h4>
363
-
364
-
365
-
366
-
367
-
368
- <div class="description">
369
- Returns a copy of this vector plus the vector passed in
370
- </div>
371
-
372
-
373
-
374
-
375
-
376
-
377
-
378
-
379
-
380
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
381
- <strong>Parameters:</strong>
382
-
383
-
384
- <table class="params">
385
- <thead>
386
- <tr>
387
-
388
- <th>Name</th>
389
-
390
-
391
- <th>Type</th>
392
-
393
-
394
-
395
-
396
-
397
- <th class="last">Description</th>
398
- </tr>
399
- </thead>
400
-
401
- <tbody>
402
-
403
-
404
- <tr>
405
-
406
- <td class="name"><code>vector</code></td>
407
-
408
-
409
- <td class="type">
410
-
411
-
412
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
413
-
414
-
415
-
416
- </td>
417
-
418
-
419
-
420
-
421
-
422
- <td class="description last"></td>
423
- </tr>
424
-
425
-
426
- </tbody>
427
- </table>
428
-
429
- </div>
430
-
431
-
432
-
433
-
434
-
435
-
436
-
437
- <dl class="details">
438
-
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
- <div class="details-item-container">
465
- <dt class="tag-source">Source:</dt>
466
- <dd class="tag-source"><ul class="dummy"><li>
467
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line199">line 199</a>
468
- </li></ul></dd>
469
- </div>
470
-
471
-
472
-
473
-
474
-
475
-
476
-
477
- </dl>
478
-
479
-
480
-
481
-
482
-
483
-
484
-
485
-
486
-
487
-
488
-
489
-
490
-
491
-
492
-
493
- <div class="method-member-container mt-20">
494
- <strong>Returns:</strong>
495
-
496
-
497
-
498
-
499
- <dl class="param-type">
500
- <dt>
501
- Type
502
- </dt>
503
- <dd>
504
-
505
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
506
-
507
-
508
- </dd>
509
- </dl>
510
-
511
-
512
- </div>
513
-
514
-
515
-
516
-
517
-
518
-
519
-
520
-
521
-
522
- <h4 class="name" id="angle">
523
- <a href="#angle">#</a>
524
- <span class="type-signature"></span>angle<span class="signature">()</span><span class="type-signature"> &rarr; {Number}</span>
525
- </h4>
526
-
527
-
528
-
529
-
530
-
531
- <div class="description">
532
- Returns the angle of this vector, up is angle 0
533
- </div>
534
-
535
-
536
-
537
-
538
-
539
-
540
-
541
-
542
-
543
-
544
-
545
-
546
-
547
-
548
-
549
- <dl class="details">
550
-
551
-
552
-
553
-
554
-
555
-
556
-
557
-
558
-
559
-
560
-
561
-
562
-
563
-
564
-
565
-
566
-
567
-
568
-
569
-
570
-
571
-
572
-
573
-
574
-
575
-
576
- <div class="details-item-container">
577
- <dt class="tag-source">Source:</dt>
578
- <dd class="tag-source"><ul class="dummy"><li>
579
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line261">line 261</a>
580
- </li></ul></dd>
581
- </div>
582
-
583
-
584
-
585
-
586
-
587
-
588
-
589
- </dl>
590
-
591
-
592
-
593
-
594
-
595
-
596
-
597
-
598
-
599
-
600
-
601
-
602
-
603
-
604
-
605
- <div class="method-member-container mt-20">
606
- <strong>Returns:</strong>
607
-
608
-
609
-
610
-
611
- <dl class="param-type">
612
- <dt>
613
- Type
614
- </dt>
615
- <dd>
616
-
617
- <span class="param-type">Number</span>
618
-
619
-
620
- </dd>
621
- </dl>
622
-
623
-
624
- </div>
625
-
626
-
627
-
628
-
629
-
630
-
631
-
632
-
633
-
634
- <h4 class="name" id="area">
635
- <a href="#area">#</a>
636
- <span class="type-signature"></span>area<span class="signature">()</span><span class="type-signature"> &rarr; {Number}</span>
637
- </h4>
638
-
639
-
640
-
641
-
642
-
643
- <div class="description">
644
- Returns the area this vector covers as a rectangle
645
- </div>
646
-
647
-
648
-
649
-
650
-
651
-
652
-
653
-
654
-
655
-
656
-
657
-
658
-
659
-
660
-
661
- <dl class="details">
662
-
663
-
664
-
665
-
666
-
667
-
668
-
669
-
670
-
671
-
672
-
673
-
674
-
675
-
676
-
677
-
678
-
679
-
680
-
681
-
682
-
683
-
684
-
685
-
686
-
687
-
688
- <div class="details-item-container">
689
- <dt class="tag-source">Source:</dt>
690
- <dd class="tag-source"><ul class="dummy"><li>
691
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line291">line 291</a>
692
- </li></ul></dd>
693
- </div>
694
-
695
-
696
-
697
-
698
-
699
-
700
-
701
- </dl>
702
-
703
-
704
-
705
-
706
-
707
-
708
-
709
-
710
-
711
-
712
-
713
-
714
-
715
-
716
-
717
- <div class="method-member-container mt-20">
718
- <strong>Returns:</strong>
719
-
720
-
721
-
722
-
723
- <dl class="param-type">
724
- <dt>
725
- Type
726
- </dt>
727
- <dd>
728
-
729
- <span class="param-type">Number</span>
730
-
731
-
732
- </dd>
733
- </dl>
734
-
735
-
736
- </div>
737
-
738
-
739
-
740
-
741
-
742
-
743
-
744
-
745
-
746
- <h4 class="name" id="arrayCheck">
747
- <a href="#arrayCheck">#</a>
748
- <span class="type-signature"></span>arrayCheck<span class="signature">(arraySize)</span><span class="type-signature"> &rarr; {Boolean}</span>
749
- </h4>
750
-
751
-
752
-
753
-
754
-
755
- <div class="description">
756
- Returns true if this vector is within the bounds of an array size passed in
757
- </div>
758
-
759
-
760
-
761
-
762
-
763
-
764
-
765
-
766
-
767
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
768
- <strong>Parameters:</strong>
769
-
770
-
771
- <table class="params">
772
- <thead>
773
- <tr>
774
-
775
- <th>Name</th>
776
-
777
-
778
- <th>Type</th>
779
-
780
-
781
-
782
-
783
-
784
- <th class="last">Description</th>
785
- </tr>
786
- </thead>
787
-
788
- <tbody>
789
-
790
-
791
- <tr>
792
-
793
- <td class="name"><code>arraySize</code></td>
794
-
795
-
796
- <td class="type">
797
-
798
-
799
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
800
-
801
-
802
-
803
- </td>
804
-
805
-
806
-
807
-
808
-
809
- <td class="description last"></td>
810
- </tr>
811
-
812
-
813
- </tbody>
814
- </table>
815
-
816
- </div>
817
-
818
-
819
-
820
-
821
-
822
-
823
-
824
- <dl class="details">
825
-
826
-
827
-
828
-
829
-
830
-
831
-
832
-
833
-
834
-
835
-
836
-
837
-
838
-
839
-
840
-
841
-
842
-
843
-
844
-
845
-
846
-
847
-
848
-
849
-
850
-
851
- <div class="details-item-container">
852
- <dt class="tag-source">Source:</dt>
853
- <dd class="tag-source"><ul class="dummy"><li>
854
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line302">line 302</a>
855
- </li></ul></dd>
856
- </div>
857
-
858
-
859
-
860
-
861
-
862
-
863
-
864
- </dl>
865
-
866
-
867
-
868
-
869
-
870
-
871
-
872
-
873
-
874
-
875
-
876
-
877
-
878
-
879
-
880
- <div class="method-member-container mt-20">
881
- <strong>Returns:</strong>
882
-
883
-
884
-
885
-
886
- <dl class="param-type">
887
- <dt>
888
- Type
889
- </dt>
890
- <dd>
891
-
892
- <span class="param-type">Boolean</span>
893
-
894
-
895
- </dd>
896
- </dl>
897
-
898
-
899
- </div>
900
-
901
-
902
-
903
-
904
-
905
-
906
-
907
-
908
-
909
- <h4 class="name" id="clampLength">
910
- <a href="#clampLength">#</a>
911
- <span class="type-signature"></span>clampLength<span class="signature">(length<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {<a href="Vector2.html">Vector2</a>}</span>
912
- </h4>
913
-
914
-
915
-
916
-
917
-
918
- <div class="description">
919
- Returns a new vector clamped to length passed in
920
- </div>
921
-
922
-
923
-
924
-
925
-
926
-
927
-
928
-
929
-
930
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
931
- <strong>Parameters:</strong>
932
-
933
-
934
- <table class="params">
935
- <thead>
936
- <tr>
937
-
938
- <th>Name</th>
939
-
940
-
941
- <th>Type</th>
942
-
943
-
944
- <th>Attributes</th>
945
-
946
-
947
-
948
- <th>Default</th>
949
-
950
-
951
- <th class="last">Description</th>
952
- </tr>
953
- </thead>
954
-
955
- <tbody>
956
-
957
-
958
- <tr>
959
-
960
- <td class="name"><code>length</code></td>
961
-
962
-
963
- <td class="type">
964
-
965
-
966
- <span class="param-type">Number</span>
967
-
968
-
969
-
970
- </td>
971
-
972
-
973
- <td class="attributes">
974
-
975
- &lt;optional><br>
976
-
977
-
978
-
979
-
980
-
981
- </td>
982
-
983
-
984
-
985
- <td class="default">
986
-
987
- 1
988
-
989
- </td>
990
-
991
-
992
- <td class="description last"></td>
993
- </tr>
994
-
995
-
996
- </tbody>
997
- </table>
998
-
999
- </div>
1000
-
1001
-
1002
-
1003
-
1004
-
1005
-
1006
-
1007
- <dl class="details">
1008
-
1009
-
1010
-
1011
-
1012
-
1013
-
1014
-
1015
-
1016
-
1017
-
1018
-
1019
-
1020
-
1021
-
1022
-
1023
-
1024
-
1025
-
1026
-
1027
-
1028
-
1029
-
1030
-
1031
-
1032
-
1033
-
1034
- <div class="details-item-container">
1035
- <dt class="tag-source">Source:</dt>
1036
- <dd class="tag-source"><ul class="dummy"><li>
1037
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line247">line 247</a>
1038
- </li></ul></dd>
1039
- </div>
1040
-
1041
-
1042
-
1043
-
1044
-
1045
-
1046
-
1047
- </dl>
1048
-
1049
-
1050
-
1051
-
1052
-
1053
-
1054
-
1055
-
1056
-
1057
-
1058
-
1059
-
1060
-
1061
-
1062
-
1063
- <div class="method-member-container mt-20">
1064
- <strong>Returns:</strong>
1065
-
1066
-
1067
-
1068
-
1069
- <dl class="param-type">
1070
- <dt>
1071
- Type
1072
- </dt>
1073
- <dd>
1074
-
1075
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1076
-
1077
-
1078
- </dd>
1079
- </dl>
1080
-
1081
-
1082
- </div>
1083
-
1084
-
1085
-
1086
-
1087
-
1088
-
1089
-
1090
-
1091
-
1092
- <h4 class="name" id="copy">
1093
- <a href="#copy">#</a>
1094
- <span class="type-signature"></span>copy<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Vector2.html">Vector2</a>}</span>
1095
- </h4>
1096
-
1097
-
1098
-
1099
-
1100
-
1101
- <div class="description">
1102
- Returns a new vector that is a copy of this
1103
- </div>
1104
-
1105
-
1106
-
1107
-
1108
-
1109
-
1110
-
1111
-
1112
-
1113
-
1114
-
1115
-
1116
-
1117
-
1118
-
1119
- <dl class="details">
1120
-
1121
-
1122
-
1123
-
1124
-
1125
-
1126
-
1127
-
1128
-
1129
-
1130
-
1131
-
1132
-
1133
-
1134
-
1135
-
1136
-
1137
-
1138
-
1139
-
1140
-
1141
-
1142
-
1143
-
1144
-
1145
-
1146
- <div class="details-item-container">
1147
- <dt class="tag-source">Source:</dt>
1148
- <dd class="tag-source"><ul class="dummy"><li>
1149
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line194">line 194</a>
1150
- </li></ul></dd>
1151
- </div>
1152
-
1153
-
1154
-
1155
-
1156
-
1157
-
1158
-
1159
- </dl>
1160
-
1161
-
1162
-
1163
-
1164
-
1165
-
1166
-
1167
-
1168
-
1169
-
1170
-
1171
-
1172
-
1173
-
1174
-
1175
- <div class="method-member-container mt-20">
1176
- <strong>Returns:</strong>
1177
-
1178
-
1179
-
1180
-
1181
- <dl class="param-type">
1182
- <dt>
1183
- Type
1184
- </dt>
1185
- <dd>
1186
-
1187
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1188
-
1189
-
1190
- </dd>
1191
- </dl>
1192
-
1193
-
1194
- </div>
1195
-
1196
-
1197
-
1198
-
1199
-
1200
-
1201
-
1202
-
1203
-
1204
- <h4 class="name" id="cross">
1205
- <a href="#cross">#</a>
1206
- <span class="type-signature"></span>cross<span class="signature">(vector)</span><span class="type-signature"> &rarr; {Number}</span>
1207
- </h4>
1208
-
1209
-
1210
-
1211
-
1212
-
1213
- <div class="description">
1214
- Returns the cross product of this and the vector passed in
1215
- </div>
1216
-
1217
-
1218
-
1219
-
1220
-
1221
-
1222
-
1223
-
1224
-
1225
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
1226
- <strong>Parameters:</strong>
1227
-
1228
-
1229
- <table class="params">
1230
- <thead>
1231
- <tr>
1232
-
1233
- <th>Name</th>
1234
-
1235
-
1236
- <th>Type</th>
1237
-
1238
-
1239
-
1240
-
1241
-
1242
- <th class="last">Description</th>
1243
- </tr>
1244
- </thead>
1245
-
1246
- <tbody>
1247
-
1248
-
1249
- <tr>
1250
-
1251
- <td class="name"><code>vector</code></td>
1252
-
1253
-
1254
- <td class="type">
1255
-
1256
-
1257
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1258
-
1259
-
1260
-
1261
- </td>
1262
-
1263
-
1264
-
1265
-
1266
-
1267
- <td class="description last"></td>
1268
- </tr>
1269
-
1270
-
1271
- </tbody>
1272
- </table>
1273
-
1274
- </div>
1275
-
1276
-
1277
-
1278
-
1279
-
1280
-
1281
-
1282
- <dl class="details">
1283
-
1284
-
1285
-
1286
-
1287
-
1288
-
1289
-
1290
-
1291
-
1292
-
1293
-
1294
-
1295
-
1296
-
1297
-
1298
-
1299
-
1300
-
1301
-
1302
-
1303
-
1304
-
1305
-
1306
-
1307
-
1308
-
1309
- <div class="details-item-container">
1310
- <dt class="tag-source">Source:</dt>
1311
- <dd class="tag-source"><ul class="dummy"><li>
1312
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line257">line 257</a>
1313
- </li></ul></dd>
1314
- </div>
1315
-
1316
-
1317
-
1318
-
1319
-
1320
-
1321
-
1322
- </dl>
1323
-
1324
-
1325
-
1326
-
1327
-
1328
-
1329
-
1330
-
1331
-
1332
-
1333
-
1334
-
1335
-
1336
-
1337
-
1338
- <div class="method-member-container mt-20">
1339
- <strong>Returns:</strong>
1340
-
1341
-
1342
-
1343
-
1344
- <dl class="param-type">
1345
- <dt>
1346
- Type
1347
- </dt>
1348
- <dd>
1349
-
1350
- <span class="param-type">Number</span>
1351
-
1352
-
1353
- </dd>
1354
- </dl>
1355
-
1356
-
1357
- </div>
1358
-
1359
-
1360
-
1361
-
1362
-
1363
-
1364
-
1365
-
1366
-
1367
- <h4 class="name" id="direction">
1368
- <a href="#direction">#</a>
1369
- <span class="type-signature"></span>direction<span class="signature">()</span><span class="type-signature"> &rarr; {Number}</span>
1370
- </h4>
1371
-
1372
-
1373
-
1374
-
1375
-
1376
- <div class="description">
1377
- Returns the integer direction of this vector, corrosponding to multiples of 90 degree rotation (0-3)
1378
- </div>
1379
-
1380
-
1381
-
1382
-
1383
-
1384
-
1385
-
1386
-
1387
-
1388
-
1389
-
1390
-
1391
-
1392
-
1393
-
1394
- <dl class="details">
1395
-
1396
-
1397
-
1398
-
1399
-
1400
-
1401
-
1402
-
1403
-
1404
-
1405
-
1406
-
1407
-
1408
-
1409
-
1410
-
1411
-
1412
-
1413
-
1414
-
1415
-
1416
-
1417
-
1418
-
1419
-
1420
-
1421
- <div class="details-item-container">
1422
- <dt class="tag-source">Source:</dt>
1423
- <dd class="tag-source"><ul class="dummy"><li>
1424
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line275">line 275</a>
1425
- </li></ul></dd>
1426
- </div>
1427
-
1428
-
1429
-
1430
-
1431
-
1432
-
1433
-
1434
- </dl>
1435
-
1436
-
1437
-
1438
-
1439
-
1440
-
1441
-
1442
-
1443
-
1444
-
1445
-
1446
-
1447
-
1448
-
1449
-
1450
- <div class="method-member-container mt-20">
1451
- <strong>Returns:</strong>
1452
-
1453
-
1454
-
1455
-
1456
- <dl class="param-type">
1457
- <dt>
1458
- Type
1459
- </dt>
1460
- <dd>
1461
-
1462
- <span class="param-type">Number</span>
1463
-
1464
-
1465
- </dd>
1466
- </dl>
1467
-
1468
-
1469
- </div>
1470
-
1471
-
1472
-
1473
-
1474
-
1475
-
1476
-
1477
-
1478
-
1479
- <h4 class="name" id="distance">
1480
- <a href="#distance">#</a>
1481
- <span class="type-signature"></span>distance<span class="signature">(vector)</span><span class="type-signature"> &rarr; {Number}</span>
1482
- </h4>
1483
-
1484
-
1485
-
1486
-
1487
-
1488
- <div class="description">
1489
- Returns the distance from this vector to vector passed in
1490
- </div>
1491
-
1492
-
1493
-
1494
-
1495
-
1496
-
1497
-
1498
-
1499
-
1500
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
1501
- <strong>Parameters:</strong>
1502
-
1503
-
1504
- <table class="params">
1505
- <thead>
1506
- <tr>
1507
-
1508
- <th>Name</th>
1509
-
1510
-
1511
- <th>Type</th>
1512
-
1513
-
1514
-
1515
-
1516
-
1517
- <th class="last">Description</th>
1518
- </tr>
1519
- </thead>
1520
-
1521
- <tbody>
1522
-
1523
-
1524
- <tr>
1525
-
1526
- <td class="name"><code>vector</code></td>
1527
-
1528
-
1529
- <td class="type">
1530
-
1531
-
1532
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1533
-
1534
-
1535
-
1536
- </td>
1537
-
1538
-
1539
-
1540
-
1541
-
1542
- <td class="description last"></td>
1543
- </tr>
1544
-
1545
-
1546
- </tbody>
1547
- </table>
1548
-
1549
- </div>
1550
-
1551
-
1552
-
1553
-
1554
-
1555
-
1556
-
1557
- <dl class="details">
1558
-
1559
-
1560
-
1561
-
1562
-
1563
-
1564
-
1565
-
1566
-
1567
-
1568
-
1569
-
1570
-
1571
-
1572
-
1573
-
1574
-
1575
-
1576
-
1577
-
1578
-
1579
-
1580
-
1581
-
1582
-
1583
-
1584
- <div class="details-item-container">
1585
- <dt class="tag-source">Source:</dt>
1586
- <dd class="tag-source"><ul class="dummy"><li>
1587
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line232">line 232</a>
1588
- </li></ul></dd>
1589
- </div>
1590
-
1591
-
1592
-
1593
-
1594
-
1595
-
1596
-
1597
- </dl>
1598
-
1599
-
1600
-
1601
-
1602
-
1603
-
1604
-
1605
-
1606
-
1607
-
1608
-
1609
-
1610
-
1611
-
1612
-
1613
- <div class="method-member-container mt-20">
1614
- <strong>Returns:</strong>
1615
-
1616
-
1617
-
1618
-
1619
- <dl class="param-type">
1620
- <dt>
1621
- Type
1622
- </dt>
1623
- <dd>
1624
-
1625
- <span class="param-type">Number</span>
1626
-
1627
-
1628
- </dd>
1629
- </dl>
1630
-
1631
-
1632
- </div>
1633
-
1634
-
1635
-
1636
-
1637
-
1638
-
1639
-
1640
-
1641
-
1642
- <h4 class="name" id="distanceSquared">
1643
- <a href="#distanceSquared">#</a>
1644
- <span class="type-signature"></span>distanceSquared<span class="signature">(vector)</span><span class="type-signature"> &rarr; {Number}</span>
1645
- </h4>
1646
-
1647
-
1648
-
1649
-
1650
-
1651
- <div class="description">
1652
- Returns the distance squared from this vector to vector passed in
1653
- </div>
1654
-
1655
-
1656
-
1657
-
1658
-
1659
-
1660
-
1661
-
1662
-
1663
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
1664
- <strong>Parameters:</strong>
1665
-
1666
-
1667
- <table class="params">
1668
- <thead>
1669
- <tr>
1670
-
1671
- <th>Name</th>
1672
-
1673
-
1674
- <th>Type</th>
1675
-
1676
-
1677
-
1678
-
1679
-
1680
- <th class="last">Description</th>
1681
- </tr>
1682
- </thead>
1683
-
1684
- <tbody>
1685
-
1686
-
1687
- <tr>
1688
-
1689
- <td class="name"><code>vector</code></td>
1690
-
1691
-
1692
- <td class="type">
1693
-
1694
-
1695
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1696
-
1697
-
1698
-
1699
- </td>
1700
-
1701
-
1702
-
1703
-
1704
-
1705
- <td class="description last"></td>
1706
- </tr>
1707
-
1708
-
1709
- </tbody>
1710
- </table>
1711
-
1712
- </div>
1713
-
1714
-
1715
-
1716
-
1717
-
1718
-
1719
-
1720
- <dl class="details">
1721
-
1722
-
1723
-
1724
-
1725
-
1726
-
1727
-
1728
-
1729
-
1730
-
1731
-
1732
-
1733
-
1734
-
1735
-
1736
-
1737
-
1738
-
1739
-
1740
-
1741
-
1742
-
1743
-
1744
-
1745
-
1746
-
1747
- <div class="details-item-container">
1748
- <dt class="tag-source">Source:</dt>
1749
- <dd class="tag-source"><ul class="dummy"><li>
1750
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line237">line 237</a>
1751
- </li></ul></dd>
1752
- </div>
1753
-
1754
-
1755
-
1756
-
1757
-
1758
-
1759
-
1760
- </dl>
1761
-
1762
-
1763
-
1764
-
1765
-
1766
-
1767
-
1768
-
1769
-
1770
-
1771
-
1772
-
1773
-
1774
-
1775
-
1776
- <div class="method-member-container mt-20">
1777
- <strong>Returns:</strong>
1778
-
1779
-
1780
-
1781
-
1782
- <dl class="param-type">
1783
- <dt>
1784
- Type
1785
- </dt>
1786
- <dd>
1787
-
1788
- <span class="param-type">Number</span>
1789
-
1790
-
1791
- </dd>
1792
- </dl>
1793
-
1794
-
1795
- </div>
1796
-
1797
-
1798
-
1799
-
1800
-
1801
-
1802
-
1803
-
1804
-
1805
- <h4 class="name" id="divide">
1806
- <a href="#divide">#</a>
1807
- <span class="type-signature"></span>divide<span class="signature">(vector)</span><span class="type-signature"> &rarr; {<a href="Vector2.html">Vector2</a>}</span>
1808
- </h4>
1809
-
1810
-
1811
-
1812
-
1813
-
1814
- <div class="description">
1815
- Returns a copy of this vector divided by the vector passed in
1816
- </div>
1817
-
1818
-
1819
-
1820
-
1821
-
1822
-
1823
-
1824
-
1825
-
1826
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
1827
- <strong>Parameters:</strong>
1828
-
1829
-
1830
- <table class="params">
1831
- <thead>
1832
- <tr>
1833
-
1834
- <th>Name</th>
1835
-
1836
-
1837
- <th>Type</th>
1838
-
1839
-
1840
-
1841
-
1842
-
1843
- <th class="last">Description</th>
1844
- </tr>
1845
- </thead>
1846
-
1847
- <tbody>
1848
-
1849
-
1850
- <tr>
1851
-
1852
- <td class="name"><code>vector</code></td>
1853
-
1854
-
1855
- <td class="type">
1856
-
1857
-
1858
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1859
-
1860
-
1861
-
1862
- </td>
1863
-
1864
-
1865
-
1866
-
1867
-
1868
- <td class="description last"></td>
1869
- </tr>
1870
-
1871
-
1872
- </tbody>
1873
- </table>
1874
-
1875
- </div>
1876
-
1877
-
1878
-
1879
-
1880
-
1881
-
1882
-
1883
- <dl class="details">
1884
-
1885
-
1886
-
1887
-
1888
-
1889
-
1890
-
1891
-
1892
-
1893
-
1894
-
1895
-
1896
-
1897
-
1898
-
1899
-
1900
-
1901
-
1902
-
1903
-
1904
-
1905
-
1906
-
1907
-
1908
-
1909
-
1910
- <div class="details-item-container">
1911
- <dt class="tag-source">Source:</dt>
1912
- <dd class="tag-source"><ul class="dummy"><li>
1913
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line214">line 214</a>
1914
- </li></ul></dd>
1915
- </div>
1916
-
1917
-
1918
-
1919
-
1920
-
1921
-
1922
-
1923
- </dl>
1924
-
1925
-
1926
-
1927
-
1928
-
1929
-
1930
-
1931
-
1932
-
1933
-
1934
-
1935
-
1936
-
1937
-
1938
-
1939
- <div class="method-member-container mt-20">
1940
- <strong>Returns:</strong>
1941
-
1942
-
1943
-
1944
-
1945
- <dl class="param-type">
1946
- <dt>
1947
- Type
1948
- </dt>
1949
- <dd>
1950
-
1951
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
1952
-
1953
-
1954
- </dd>
1955
- </dl>
1956
-
1957
-
1958
- </div>
1959
-
1960
-
1961
-
1962
-
1963
-
1964
-
1965
-
1966
-
1967
-
1968
- <h4 class="name" id="dot">
1969
- <a href="#dot">#</a>
1970
- <span class="type-signature"></span>dot<span class="signature">(vector)</span><span class="type-signature"> &rarr; {Number}</span>
1971
- </h4>
1972
-
1973
-
1974
-
1975
-
1976
-
1977
- <div class="description">
1978
- Returns the dot product of this and the vector passed in
1979
- </div>
1980
-
1981
-
1982
-
1983
-
1984
-
1985
-
1986
-
1987
-
1988
-
1989
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
1990
- <strong>Parameters:</strong>
1991
-
1992
-
1993
- <table class="params">
1994
- <thead>
1995
- <tr>
1996
-
1997
- <th>Name</th>
1998
-
1999
-
2000
- <th>Type</th>
2001
-
2002
-
2003
-
2004
-
2005
-
2006
- <th class="last">Description</th>
2007
- </tr>
2008
- </thead>
2009
-
2010
- <tbody>
2011
-
2012
-
2013
- <tr>
2014
-
2015
- <td class="name"><code>vector</code></td>
2016
-
2017
-
2018
- <td class="type">
2019
-
2020
-
2021
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2022
-
2023
-
2024
-
2025
- </td>
2026
-
2027
-
2028
-
2029
-
2030
-
2031
- <td class="description last"></td>
2032
- </tr>
2033
-
2034
-
2035
- </tbody>
2036
- </table>
2037
-
2038
- </div>
2039
-
2040
-
2041
-
2042
-
2043
-
2044
-
2045
-
2046
- <dl class="details">
2047
-
2048
-
2049
-
2050
-
2051
-
2052
-
2053
-
2054
-
2055
-
2056
-
2057
-
2058
-
2059
-
2060
-
2061
-
2062
-
2063
-
2064
-
2065
-
2066
-
2067
-
2068
-
2069
-
2070
-
2071
-
2072
-
2073
- <div class="details-item-container">
2074
- <dt class="tag-source">Source:</dt>
2075
- <dd class="tag-source"><ul class="dummy"><li>
2076
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line252">line 252</a>
2077
- </li></ul></dd>
2078
- </div>
2079
-
2080
-
2081
-
2082
-
2083
-
2084
-
2085
-
2086
- </dl>
2087
-
2088
-
2089
-
2090
-
2091
-
2092
-
2093
-
2094
-
2095
-
2096
-
2097
-
2098
-
2099
-
2100
-
2101
-
2102
- <div class="method-member-container mt-20">
2103
- <strong>Returns:</strong>
2104
-
2105
-
2106
-
2107
-
2108
- <dl class="param-type">
2109
- <dt>
2110
- Type
2111
- </dt>
2112
- <dd>
2113
-
2114
- <span class="param-type">Number</span>
2115
-
2116
-
2117
- </dd>
2118
- </dl>
2119
-
2120
-
2121
- </div>
2122
-
2123
-
2124
-
2125
-
2126
-
2127
-
2128
-
2129
-
2130
-
2131
- <h4 class="name" id="flip">
2132
- <a href="#flip">#</a>
2133
- <span class="type-signature"></span>flip<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Vector2.html">Vector2</a>}</span>
2134
- </h4>
2135
-
2136
-
2137
-
2138
-
2139
-
2140
- <div class="description">
2141
- Returns a copy of this vector with the axies flipped
2142
- </div>
2143
-
2144
-
2145
-
2146
-
2147
-
2148
-
2149
-
2150
-
2151
-
2152
-
2153
-
2154
-
2155
-
2156
-
2157
-
2158
- <dl class="details">
2159
-
2160
-
2161
-
2162
-
2163
-
2164
-
2165
-
2166
-
2167
-
2168
-
2169
-
2170
-
2171
-
2172
-
2173
-
2174
-
2175
-
2176
-
2177
-
2178
-
2179
-
2180
-
2181
-
2182
-
2183
-
2184
-
2185
- <div class="details-item-container">
2186
- <dt class="tag-source">Source:</dt>
2187
- <dd class="tag-source"><ul class="dummy"><li>
2188
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line283">line 283</a>
2189
- </li></ul></dd>
2190
- </div>
2191
-
2192
-
2193
-
2194
-
2195
-
2196
-
2197
-
2198
- </dl>
2199
-
2200
-
2201
-
2202
-
2203
-
2204
-
2205
-
2206
-
2207
-
2208
-
2209
-
2210
-
2211
-
2212
-
2213
-
2214
- <div class="method-member-container mt-20">
2215
- <strong>Returns:</strong>
2216
-
2217
-
2218
-
2219
-
2220
- <dl class="param-type">
2221
- <dt>
2222
- Type
2223
- </dt>
2224
- <dd>
2225
-
2226
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2227
-
2228
-
2229
- </dd>
2230
- </dl>
2231
-
2232
-
2233
- </div>
2234
-
2235
-
2236
-
2237
-
2238
-
2239
-
2240
-
2241
-
2242
-
2243
- <h4 class="name" id="floor">
2244
- <a href="#floor">#</a>
2245
- <span class="type-signature"></span>floor<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Vector2.html">Vector2</a>}</span>
2246
- </h4>
2247
-
2248
-
2249
-
2250
-
2251
-
2252
- <div class="description">
2253
- Returns a copy of this vector with each axis floored
2254
- </div>
2255
-
2256
-
2257
-
2258
-
2259
-
2260
-
2261
-
2262
-
2263
-
2264
-
2265
-
2266
-
2267
-
2268
-
2269
-
2270
- <dl class="details">
2271
-
2272
-
2273
-
2274
-
2275
-
2276
-
2277
-
2278
-
2279
-
2280
-
2281
-
2282
-
2283
-
2284
-
2285
-
2286
-
2287
-
2288
-
2289
-
2290
-
2291
-
2292
-
2293
-
2294
-
2295
-
2296
-
2297
- <div class="details-item-container">
2298
- <dt class="tag-source">Source:</dt>
2299
- <dd class="tag-source"><ul class="dummy"><li>
2300
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line287">line 287</a>
2301
- </li></ul></dd>
2302
- </div>
2303
-
2304
-
2305
-
2306
-
2307
-
2308
-
2309
-
2310
- </dl>
2311
-
2312
-
2313
-
2314
-
2315
-
2316
-
2317
-
2318
-
2319
-
2320
-
2321
-
2322
-
2323
-
2324
-
2325
-
2326
- <div class="method-member-container mt-20">
2327
- <strong>Returns:</strong>
2328
-
2329
-
2330
-
2331
-
2332
- <dl class="param-type">
2333
- <dt>
2334
- Type
2335
- </dt>
2336
- <dd>
2337
-
2338
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2339
-
2340
-
2341
- </dd>
2342
- </dl>
2343
-
2344
-
2345
- </div>
2346
-
2347
-
2348
-
2349
-
2350
-
2351
-
2352
-
2353
-
2354
-
2355
- <h4 class="name" id="invert">
2356
- <a href="#invert">#</a>
2357
- <span class="type-signature"></span>invert<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Vector2.html">Vector2</a>}</span>
2358
- </h4>
2359
-
2360
-
2361
-
2362
-
2363
-
2364
- <div class="description">
2365
- Returns a copy of this vector that has been inverted
2366
- </div>
2367
-
2368
-
2369
-
2370
-
2371
-
2372
-
2373
-
2374
-
2375
-
2376
-
2377
-
2378
-
2379
-
2380
-
2381
-
2382
- <dl class="details">
2383
-
2384
-
2385
-
2386
-
2387
-
2388
-
2389
-
2390
-
2391
-
2392
-
2393
-
2394
-
2395
-
2396
-
2397
-
2398
-
2399
-
2400
-
2401
-
2402
-
2403
-
2404
-
2405
-
2406
-
2407
-
2408
-
2409
- <div class="details-item-container">
2410
- <dt class="tag-source">Source:</dt>
2411
- <dd class="tag-source"><ul class="dummy"><li>
2412
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line279">line 279</a>
2413
- </li></ul></dd>
2414
- </div>
2415
-
2416
-
2417
-
2418
-
2419
-
2420
-
2421
-
2422
- </dl>
2423
-
2424
-
2425
-
2426
-
2427
-
2428
-
2429
-
2430
-
2431
-
2432
-
2433
-
2434
-
2435
-
2436
-
2437
-
2438
- <div class="method-member-container mt-20">
2439
- <strong>Returns:</strong>
2440
-
2441
-
2442
-
2443
-
2444
- <dl class="param-type">
2445
- <dt>
2446
- Type
2447
- </dt>
2448
- <dd>
2449
-
2450
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2451
-
2452
-
2453
- </dd>
2454
- </dl>
2455
-
2456
-
2457
- </div>
2458
-
2459
-
2460
-
2461
-
2462
-
2463
-
2464
-
2465
-
2466
-
2467
- <h4 class="name" id="length">
2468
- <a href="#length">#</a>
2469
- <span class="type-signature"></span>length<span class="signature">()</span><span class="type-signature"> &rarr; {Number}</span>
2470
- </h4>
2471
-
2472
-
2473
-
2474
-
2475
-
2476
- <div class="description">
2477
- Returns the length of this vector
2478
- </div>
2479
-
2480
-
2481
-
2482
-
2483
-
2484
-
2485
-
2486
-
2487
-
2488
-
2489
-
2490
-
2491
-
2492
-
2493
-
2494
- <dl class="details">
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
-
2520
-
2521
- <div class="details-item-container">
2522
- <dt class="tag-source">Source:</dt>
2523
- <dd class="tag-source"><ul class="dummy"><li>
2524
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line223">line 223</a>
2525
- </li></ul></dd>
2526
- </div>
2527
-
2528
-
2529
-
2530
-
2531
-
2532
-
2533
-
2534
- </dl>
2535
-
2536
-
2537
-
2538
-
2539
-
2540
-
2541
-
2542
-
2543
-
2544
-
2545
-
2546
-
2547
-
2548
-
2549
-
2550
- <div class="method-member-container mt-20">
2551
- <strong>Returns:</strong>
2552
-
2553
-
2554
-
2555
-
2556
- <dl class="param-type">
2557
- <dt>
2558
- Type
2559
- </dt>
2560
- <dd>
2561
-
2562
- <span class="param-type">Number</span>
2563
-
2564
-
2565
- </dd>
2566
- </dl>
2567
-
2568
-
2569
- </div>
2570
-
2571
-
2572
-
2573
-
2574
-
2575
-
2576
-
2577
-
2578
-
2579
- <h4 class="name" id="lengthSquared">
2580
- <a href="#lengthSquared">#</a>
2581
- <span class="type-signature"></span>lengthSquared<span class="signature">()</span><span class="type-signature"> &rarr; {Number}</span>
2582
- </h4>
2583
-
2584
-
2585
-
2586
-
2587
-
2588
- <div class="description">
2589
- Returns the length of this vector squared
2590
- </div>
2591
-
2592
-
2593
-
2594
-
2595
-
2596
-
2597
-
2598
-
2599
-
2600
-
2601
-
2602
-
2603
-
2604
-
2605
-
2606
- <dl class="details">
2607
-
2608
-
2609
-
2610
-
2611
-
2612
-
2613
-
2614
-
2615
-
2616
-
2617
-
2618
-
2619
-
2620
-
2621
-
2622
-
2623
-
2624
-
2625
-
2626
-
2627
-
2628
-
2629
-
2630
-
2631
-
2632
-
2633
- <div class="details-item-container">
2634
- <dt class="tag-source">Source:</dt>
2635
- <dd class="tag-source"><ul class="dummy"><li>
2636
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line227">line 227</a>
2637
- </li></ul></dd>
2638
- </div>
2639
-
2640
-
2641
-
2642
-
2643
-
2644
-
2645
-
2646
- </dl>
2647
-
2648
-
2649
-
2650
-
2651
-
2652
-
2653
-
2654
-
2655
-
2656
-
2657
-
2658
-
2659
-
2660
-
2661
-
2662
- <div class="method-member-container mt-20">
2663
- <strong>Returns:</strong>
2664
-
2665
-
2666
-
2667
-
2668
- <dl class="param-type">
2669
- <dt>
2670
- Type
2671
- </dt>
2672
- <dd>
2673
-
2674
- <span class="param-type">Number</span>
2675
-
2676
-
2677
- </dd>
2678
- </dl>
2679
-
2680
-
2681
- </div>
2682
-
2683
-
2684
-
2685
-
2686
-
2687
-
2688
-
2689
-
2690
-
2691
- <h4 class="name" id="lerp">
2692
- <a href="#lerp">#</a>
2693
- <span class="type-signature"></span>lerp<span class="signature">(vector, percent)</span><span class="type-signature"> &rarr; {<a href="Vector2.html">Vector2</a>}</span>
2694
- </h4>
2695
-
2696
-
2697
-
2698
-
2699
-
2700
- <div class="description">
2701
- Returns a new vector that is p percent between this and the vector passed in
2702
- </div>
2703
-
2704
-
2705
-
2706
-
2707
-
2708
-
2709
-
2710
-
2711
-
2712
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
2713
- <strong>Parameters:</strong>
2714
-
2715
-
2716
- <table class="params">
2717
- <thead>
2718
- <tr>
2719
-
2720
- <th>Name</th>
2721
-
2722
-
2723
- <th>Type</th>
2724
-
2725
-
2726
-
2727
-
2728
-
2729
- <th class="last">Description</th>
2730
- </tr>
2731
- </thead>
2732
-
2733
- <tbody>
2734
-
2735
-
2736
- <tr>
2737
-
2738
- <td class="name"><code>vector</code></td>
2739
-
2740
-
2741
- <td class="type">
2742
-
2743
-
2744
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2745
-
2746
-
2747
-
2748
- </td>
2749
-
2750
-
2751
-
2752
-
2753
-
2754
- <td class="description last"></td>
2755
- </tr>
2756
-
2757
-
2758
-
2759
- <tr>
2760
-
2761
- <td class="name"><code>percent</code></td>
2762
-
2763
-
2764
- <td class="type">
2765
-
2766
-
2767
- <span class="param-type">Number</span>
2768
-
2769
-
2770
-
2771
- </td>
2772
-
2773
-
2774
-
2775
-
2776
-
2777
- <td class="description last"></td>
2778
- </tr>
2779
-
2780
-
2781
- </tbody>
2782
- </table>
2783
-
2784
- </div>
2785
-
2786
-
2787
-
2788
-
2789
-
2790
-
2791
-
2792
- <dl class="details">
2793
-
2794
-
2795
-
2796
-
2797
-
2798
-
2799
-
2800
-
2801
-
2802
-
2803
-
2804
-
2805
-
2806
-
2807
-
2808
-
2809
-
2810
-
2811
-
2812
-
2813
-
2814
-
2815
-
2816
-
2817
-
2818
-
2819
- <div class="details-item-container">
2820
- <dt class="tag-source">Source:</dt>
2821
- <dd class="tag-source"><ul class="dummy"><li>
2822
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line297">line 297</a>
2823
- </li></ul></dd>
2824
- </div>
2825
-
2826
-
2827
-
2828
-
2829
-
2830
-
2831
-
2832
- </dl>
2833
-
2834
-
2835
-
2836
-
2837
-
2838
-
2839
-
2840
-
2841
-
2842
-
2843
-
2844
-
2845
-
2846
-
2847
-
2848
- <div class="method-member-container mt-20">
2849
- <strong>Returns:</strong>
2850
-
2851
-
2852
-
2853
-
2854
- <dl class="param-type">
2855
- <dt>
2856
- Type
2857
- </dt>
2858
- <dd>
2859
-
2860
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2861
-
2862
-
2863
- </dd>
2864
- </dl>
2865
-
2866
-
2867
- </div>
2868
-
2869
-
2870
-
2871
-
2872
-
2873
-
2874
-
2875
-
2876
-
2877
- <h4 class="name" id="multiply">
2878
- <a href="#multiply">#</a>
2879
- <span class="type-signature"></span>multiply<span class="signature">(vector)</span><span class="type-signature"> &rarr; {<a href="Vector2.html">Vector2</a>}</span>
2880
- </h4>
2881
-
2882
-
2883
-
2884
-
2885
-
2886
- <div class="description">
2887
- Returns a copy of this vector times the vector passed in
2888
- </div>
2889
-
2890
-
2891
-
2892
-
2893
-
2894
-
2895
-
2896
-
2897
-
2898
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
2899
- <strong>Parameters:</strong>
2900
-
2901
-
2902
- <table class="params">
2903
- <thead>
2904
- <tr>
2905
-
2906
- <th>Name</th>
2907
-
2908
-
2909
- <th>Type</th>
2910
-
2911
-
2912
-
2913
-
2914
-
2915
- <th class="last">Description</th>
2916
- </tr>
2917
- </thead>
2918
-
2919
- <tbody>
2920
-
2921
-
2922
- <tr>
2923
-
2924
- <td class="name"><code>vector</code></td>
2925
-
2926
-
2927
- <td class="type">
2928
-
2929
-
2930
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2931
-
2932
-
2933
-
2934
- </td>
2935
-
2936
-
2937
-
2938
-
2939
-
2940
- <td class="description last"></td>
2941
- </tr>
2942
-
2943
-
2944
- </tbody>
2945
- </table>
2946
-
2947
- </div>
2948
-
2949
-
2950
-
2951
-
2952
-
2953
-
2954
-
2955
- <dl class="details">
2956
-
2957
-
2958
-
2959
-
2960
-
2961
-
2962
-
2963
-
2964
-
2965
-
2966
-
2967
-
2968
-
2969
-
2970
-
2971
-
2972
-
2973
-
2974
-
2975
-
2976
-
2977
-
2978
-
2979
-
2980
-
2981
-
2982
- <div class="details-item-container">
2983
- <dt class="tag-source">Source:</dt>
2984
- <dd class="tag-source"><ul class="dummy"><li>
2985
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line209">line 209</a>
2986
- </li></ul></dd>
2987
- </div>
2988
-
2989
-
2990
-
2991
-
2992
-
2993
-
2994
-
2995
- </dl>
2996
-
2997
-
2998
-
2999
-
3000
-
3001
-
3002
-
3003
-
3004
-
3005
-
3006
-
3007
-
3008
-
3009
-
3010
-
3011
- <div class="method-member-container mt-20">
3012
- <strong>Returns:</strong>
3013
-
3014
-
3015
-
3016
-
3017
- <dl class="param-type">
3018
- <dt>
3019
- Type
3020
- </dt>
3021
- <dd>
3022
-
3023
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
3024
-
3025
-
3026
- </dd>
3027
- </dl>
3028
-
3029
-
3030
- </div>
3031
-
3032
-
3033
-
3034
-
3035
-
3036
-
3037
-
3038
-
3039
-
3040
- <h4 class="name" id="normalize">
3041
- <a href="#normalize">#</a>
3042
- <span class="type-signature"></span>normalize<span class="signature">(length<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {<a href="Vector2.html">Vector2</a>}</span>
3043
- </h4>
3044
-
3045
-
3046
-
3047
-
3048
-
3049
- <div class="description">
3050
- Returns a new vector in same direction as this one with the length passed in
3051
- </div>
3052
-
3053
-
3054
-
3055
-
3056
-
3057
-
3058
-
3059
-
3060
-
3061
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
3062
- <strong>Parameters:</strong>
3063
-
3064
-
3065
- <table class="params">
3066
- <thead>
3067
- <tr>
3068
-
3069
- <th>Name</th>
3070
-
3071
-
3072
- <th>Type</th>
3073
-
3074
-
3075
- <th>Attributes</th>
3076
-
3077
-
3078
-
3079
- <th>Default</th>
3080
-
3081
-
3082
- <th class="last">Description</th>
3083
- </tr>
3084
- </thead>
3085
-
3086
- <tbody>
3087
-
3088
-
3089
- <tr>
3090
-
3091
- <td class="name"><code>length</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
- 1
3119
-
3120
- </td>
3121
-
3122
-
3123
- <td class="description last"></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#line242">line 242</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
-
3199
-
3200
- <dl class="param-type">
3201
- <dt>
3202
- Type
3203
- </dt>
3204
- <dd>
3205
-
3206
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
3207
-
3208
-
3209
- </dd>
3210
- </dl>
3211
-
3212
-
3213
- </div>
3214
-
3215
-
3216
-
3217
-
3218
-
3219
-
3220
-
3221
-
3222
-
3223
- <h4 class="name" id="rotate">
3224
- <a href="#rotate">#</a>
3225
- <span class="type-signature"></span>rotate<span class="signature">(angle)</span><span class="type-signature"> &rarr; {<a href="Vector2.html">Vector2</a>}</span>
3226
- </h4>
3227
-
3228
-
3229
-
3230
-
3231
-
3232
- <div class="description">
3233
- Returns copy of this vector rotated by the angle passed in
3234
- </div>
3235
-
3236
-
3237
-
3238
-
3239
-
3240
-
3241
-
3242
-
3243
-
3244
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
3245
- <strong>Parameters:</strong>
3246
-
3247
-
3248
- <table class="params">
3249
- <thead>
3250
- <tr>
3251
-
3252
- <th>Name</th>
3253
-
3254
-
3255
- <th>Type</th>
3256
-
3257
-
3258
-
3259
-
3260
-
3261
- <th class="last">Description</th>
3262
- </tr>
3263
- </thead>
3264
-
3265
- <tbody>
3266
-
3267
-
3268
- <tr>
3269
-
3270
- <td class="name"><code>angle</code></td>
3271
-
3272
-
3273
- <td class="type">
3274
-
3275
-
3276
- <span class="param-type">Number</span>
3277
-
3278
-
3279
-
3280
- </td>
3281
-
3282
-
3283
-
3284
-
3285
-
3286
- <td class="description last"></td>
3287
- </tr>
3288
-
3289
-
3290
- </tbody>
3291
- </table>
3292
-
3293
- </div>
3294
-
3295
-
3296
-
3297
-
3298
-
3299
-
3300
-
3301
- <dl class="details">
3302
-
3303
-
3304
-
3305
-
3306
-
3307
-
3308
-
3309
-
3310
-
3311
-
3312
-
3313
-
3314
-
3315
-
3316
-
3317
-
3318
-
3319
-
3320
-
3321
-
3322
-
3323
-
3324
-
3325
-
3326
-
3327
-
3328
- <div class="details-item-container">
3329
- <dt class="tag-source">Source:</dt>
3330
- <dd class="tag-source"><ul class="dummy"><li>
3331
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line271">line 271</a>
3332
- </li></ul></dd>
3333
- </div>
3334
-
3335
-
3336
-
3337
-
3338
-
3339
-
3340
-
3341
- </dl>
3342
-
3343
-
3344
-
3345
-
3346
-
3347
-
3348
-
3349
-
3350
-
3351
-
3352
-
3353
-
3354
-
3355
-
3356
-
3357
- <div class="method-member-container mt-20">
3358
- <strong>Returns:</strong>
3359
-
3360
-
3361
-
3362
-
3363
- <dl class="param-type">
3364
- <dt>
3365
- Type
3366
- </dt>
3367
- <dd>
3368
-
3369
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
3370
-
3371
-
3372
- </dd>
3373
- </dl>
3374
-
3375
-
3376
- </div>
3377
-
3378
-
3379
-
3380
-
3381
-
3382
-
3383
-
3384
-
3385
-
3386
- <h4 class="name" id="scale">
3387
- <a href="#scale">#</a>
3388
- <span class="type-signature"></span>scale<span class="signature">(scale)</span><span class="type-signature"> &rarr; {<a href="Vector2.html">Vector2</a>}</span>
3389
- </h4>
3390
-
3391
-
3392
-
3393
-
3394
-
3395
- <div class="description">
3396
- Returns a copy of this vector scaled by the vector passed in
3397
- </div>
3398
-
3399
-
3400
-
3401
-
3402
-
3403
-
3404
-
3405
-
3406
-
3407
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
3408
- <strong>Parameters:</strong>
3409
-
3410
-
3411
- <table class="params">
3412
- <thead>
3413
- <tr>
3414
-
3415
- <th>Name</th>
3416
-
3417
-
3418
- <th>Type</th>
3419
-
3420
-
3421
-
3422
-
3423
-
3424
- <th class="last">Description</th>
3425
- </tr>
3426
- </thead>
3427
-
3428
- <tbody>
3429
-
3430
-
3431
- <tr>
3432
-
3433
- <td class="name"><code>scale</code></td>
3434
-
3435
-
3436
- <td class="type">
3437
-
3438
-
3439
- <span class="param-type">Number</span>
3440
-
3441
-
3442
-
3443
- </td>
3444
-
3445
-
3446
-
3447
-
3448
-
3449
- <td class="description last"></td>
3450
- </tr>
3451
-
3452
-
3453
- </tbody>
3454
- </table>
3455
-
3456
- </div>
3457
-
3458
-
3459
-
3460
-
3461
-
3462
-
3463
-
3464
- <dl class="details">
3465
-
3466
-
3467
-
3468
-
3469
-
3470
-
3471
-
3472
-
3473
-
3474
-
3475
-
3476
-
3477
-
3478
-
3479
-
3480
-
3481
-
3482
-
3483
-
3484
-
3485
-
3486
-
3487
-
3488
-
3489
-
3490
-
3491
- <div class="details-item-container">
3492
- <dt class="tag-source">Source:</dt>
3493
- <dd class="tag-source"><ul class="dummy"><li>
3494
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line219">line 219</a>
3495
- </li></ul></dd>
3496
- </div>
3497
-
3498
-
3499
-
3500
-
3501
-
3502
-
3503
-
3504
- </dl>
3505
-
3506
-
3507
-
3508
-
3509
-
3510
-
3511
-
3512
-
3513
-
3514
-
3515
-
3516
-
3517
-
3518
-
3519
-
3520
- <div class="method-member-container mt-20">
3521
- <strong>Returns:</strong>
3522
-
3523
-
3524
-
3525
-
3526
- <dl class="param-type">
3527
- <dt>
3528
- Type
3529
- </dt>
3530
- <dd>
3531
-
3532
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
3533
-
3534
-
3535
- </dd>
3536
- </dl>
3537
-
3538
-
3539
- </div>
3540
-
3541
-
3542
-
3543
-
3544
-
3545
-
3546
-
3547
-
3548
-
3549
- <h4 class="name" id="setAngle">
3550
- <a href="#setAngle">#</a>
3551
- <span class="type-signature"></span>setAngle<span class="signature">(angle<span class="signature-attributes">opt</span>, length<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span>
3552
- </h4>
3553
-
3554
-
3555
-
3556
-
3557
-
3558
- <div class="description">
3559
- Sets this vector with angle and length passed in
3560
- </div>
3561
-
3562
-
3563
-
3564
-
3565
-
3566
-
3567
-
3568
-
3569
-
3570
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
3571
- <strong>Parameters:</strong>
3572
-
3573
-
3574
- <table class="params">
3575
- <thead>
3576
- <tr>
3577
-
3578
- <th>Name</th>
3579
-
3580
-
3581
- <th>Type</th>
3582
-
3583
-
3584
- <th>Attributes</th>
3585
-
3586
-
3587
-
3588
- <th>Default</th>
3589
-
3590
-
3591
- <th class="last">Description</th>
3592
- </tr>
3593
- </thead>
3594
-
3595
- <tbody>
3596
-
3597
-
3598
- <tr>
3599
-
3600
- <td class="name"><code>angle</code></td>
3601
-
3602
-
3603
- <td class="type">
3604
-
3605
-
3606
- <span class="param-type">Number</span>
3607
-
3608
-
3609
-
3610
- </td>
3611
-
3612
-
3613
- <td class="attributes">
3614
-
3615
- &lt;optional><br>
3616
-
3617
-
3618
-
3619
-
3620
-
3621
- </td>
3622
-
3623
-
3624
-
3625
- <td class="default">
3626
-
3627
- 0
3628
-
3629
- </td>
3630
-
3631
-
3632
- <td class="description last"></td>
3633
- </tr>
3634
-
3635
-
3636
-
3637
- <tr>
3638
-
3639
- <td class="name"><code>length</code></td>
3640
-
3641
-
3642
- <td class="type">
3643
-
3644
-
3645
- <span class="param-type">Number</span>
3646
-
3647
-
3648
-
3649
- </td>
3650
-
3651
-
3652
- <td class="attributes">
3653
-
3654
- &lt;optional><br>
3655
-
3656
-
3657
-
3658
-
3659
-
3660
- </td>
3661
-
3662
-
3663
-
3664
- <td class="default">
3665
-
3666
- 1
3667
-
3668
- </td>
3669
-
3670
-
3671
- <td class="description last"></td>
3672
- </tr>
3673
-
3674
-
3675
- </tbody>
3676
- </table>
3677
-
3678
- </div>
3679
-
3680
-
3681
-
3682
-
3683
-
3684
-
3685
-
3686
- <dl class="details">
3687
-
3688
-
3689
-
3690
-
3691
-
3692
-
3693
-
3694
-
3695
-
3696
-
3697
-
3698
-
3699
-
3700
-
3701
-
3702
-
3703
-
3704
-
3705
-
3706
-
3707
-
3708
-
3709
-
3710
-
3711
-
3712
-
3713
- <div class="details-item-container">
3714
- <dt class="tag-source">Source:</dt>
3715
- <dd class="tag-source"><ul class="dummy"><li>
3716
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line266">line 266</a>
3717
- </li></ul></dd>
3718
- </div>
3719
-
3720
-
3721
-
3722
-
3723
-
3724
-
3725
-
3726
- </dl>
3727
-
3728
-
3729
-
3730
-
3731
-
3732
-
3733
-
3734
-
3735
-
3736
-
3737
-
3738
-
3739
-
3740
-
3741
-
3742
-
3743
-
3744
-
3745
-
3746
-
3747
-
3748
-
3749
-
3750
- <h4 class="name" id="subtract">
3751
- <a href="#subtract">#</a>
3752
- <span class="type-signature"></span>subtract<span class="signature">(vector)</span><span class="type-signature"> &rarr; {<a href="Vector2.html">Vector2</a>}</span>
3753
- </h4>
3754
-
3755
-
3756
-
3757
-
3758
-
3759
- <div class="description">
3760
- Returns a copy of this vector minus the vector passed in
3761
- </div>
3762
-
3763
-
3764
-
3765
-
3766
-
3767
-
3768
-
3769
-
3770
-
3771
- <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
3772
- <strong>Parameters:</strong>
3773
-
3774
-
3775
- <table class="params">
3776
- <thead>
3777
- <tr>
3778
-
3779
- <th>Name</th>
3780
-
3781
-
3782
- <th>Type</th>
3783
-
3784
-
3785
-
3786
-
3787
-
3788
- <th class="last">Description</th>
3789
- </tr>
3790
- </thead>
3791
-
3792
- <tbody>
3793
-
3794
-
3795
- <tr>
3796
-
3797
- <td class="name"><code>vector</code></td>
3798
-
3799
-
3800
- <td class="type">
3801
-
3802
-
3803
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
3804
-
3805
-
3806
-
3807
- </td>
3808
-
3809
-
3810
-
3811
-
3812
-
3813
- <td class="description last"></td>
3814
- </tr>
3815
-
3816
-
3817
- </tbody>
3818
- </table>
3819
-
3820
- </div>
3821
-
3822
-
3823
-
3824
-
3825
-
3826
-
3827
-
3828
- <dl class="details">
3829
-
3830
-
3831
-
3832
-
3833
-
3834
-
3835
-
3836
-
3837
-
3838
-
3839
-
3840
-
3841
-
3842
-
3843
-
3844
-
3845
-
3846
-
3847
-
3848
-
3849
-
3850
-
3851
-
3852
-
3853
-
3854
-
3855
- <div class="details-item-container">
3856
- <dt class="tag-source">Source:</dt>
3857
- <dd class="tag-source"><ul class="dummy"><li>
3858
- <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line204">line 204</a>
3859
- </li></ul></dd>
3860
- </div>
3861
-
3862
-
3863
-
3864
-
3865
-
3866
-
3867
-
3868
- </dl>
3869
-
3870
-
3871
-
3872
-
3873
-
3874
-
3875
-
3876
-
3877
-
3878
-
3879
-
3880
-
3881
-
3882
-
3883
-
3884
- <div class="method-member-container mt-20">
3885
- <strong>Returns:</strong>
3886
-
3887
-
3888
-
3889
-
3890
- <dl class="param-type">
3891
- <dt>
3892
- Type
3893
- </dt>
3894
- <dd>
3895
-
3896
- <span class="param-type"><a href="Vector2.html">Vector2</a></span>
3897
-
3898
-
3899
- </dd>
3900
- </dl>
3901
-
3902
-
3903
- </div>
3904
-
3905
-
3906
-
3907
-
3908
-
3909
-
3910
-
3911
-
3912
-
3913
-
3914
- </article>
3915
-
3916
- </section>
3917
-
3918
-
3919
-
3920
-
3921
- </div>
3922
-
3923
- <footer class="footer" id="footer">
3924
- <a href=https://github.com/KilledByAPixel/LittleJS>LittleJS - MIT License - Copyright 2021 Frank Force</a>
3925
- </footer>
3926
-
3927
- <script src="scripts/third-party/prettify.js"></script>
3928
- <script src="scripts/third-party/lang-css.js"></script>
3929
- <script type="text/javascript" src="scripts/misc.js"></script>
3930
-
3931
- <script>prettyPrint();</script>
3932
- <script src="scripts/linenumber.js"></script>
3933
- <script src="scripts/fix-code-block.js"></script>
3934
- <script src="scripts/fix-navbar.js"></script>
3935
-
3936
- <script src="scripts/search.js"></script>
3937
- <script src="scripts/third-party/fuse.js"></script>
3938
- <script>
3939
- 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>"}];
3940
- var options =
3941
- setupSearch(list, options)
3942
- </script>
3943
-
3944
-
3945
-
3946
-
3947
-
3948
-
3949
-
3950
-
3951
-
3952
-
3953
-
3954
- </body>
3955
-
3956
- </html>