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