littlejsengine 1.1.6 → 1.1.8

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 (85) hide show
  1. package/docs/Audio.html +2268 -0
  2. package/docs/Color.html +2989 -0
  3. package/docs/Debug.html +2933 -0
  4. package/docs/Draw.html +4092 -0
  5. package/docs/EngineObject.html +4458 -0
  6. package/docs/Input.html +2482 -0
  7. package/docs/Medal.html +1007 -0
  8. package/docs/Medals.html +628 -0
  9. package/docs/Music.html +584 -0
  10. package/docs/Newgrounds.html +1399 -0
  11. package/docs/Particle.html +4535 -0
  12. package/docs/ParticleEmitter.html +7770 -0
  13. package/docs/Random.html +1774 -0
  14. package/docs/Settings.html +2679 -0
  15. package/docs/Sound.html +1249 -0
  16. package/docs/TileCollision.html +1409 -0
  17. package/docs/TileLayer.html +6948 -0
  18. package/docs/TileLayerData.html +1052 -0
  19. package/docs/Timer.html +1183 -0
  20. package/docs/Utilities.html +3281 -0
  21. package/docs/Vector2.html +4207 -0
  22. package/docs/WebGL.html +2327 -0
  23. package/docs/engine.js.html +429 -0
  24. package/docs/engineAudio.js.html +609 -0
  25. package/docs/engineDebug.js.html +725 -0
  26. package/docs/engineDraw.js.html +419 -0
  27. package/docs/engineInput.js.html +401 -0
  28. package/docs/engineMedals.js.html +461 -0
  29. package/docs/engineObject.js.html +518 -0
  30. package/docs/engineParticles.js.html +441 -0
  31. package/docs/engineSettings.js.html +349 -0
  32. package/docs/engineTileLayer.js.html +513 -0
  33. package/docs/engineUtilities.js.html +647 -0
  34. package/docs/engineWebGL.js.html +522 -0
  35. package/docs/fonts/MavenPro-Regular.ttf +0 -0
  36. package/docs/fonts/Montserrat-Regular.ttf +0 -0
  37. package/docs/fonts/Muli-Black.ttf +0 -0
  38. package/docs/fonts/OFL-hind.txt +93 -0
  39. package/docs/fonts/OFL-montserrat.txt +93 -0
  40. package/docs/global.html +1691 -0
  41. package/docs/index.css +6 -0
  42. package/docs/index.html +247 -0
  43. package/docs/scripts/fix-code-block.js +53 -0
  44. package/docs/scripts/fix-navbar.js +25 -0
  45. package/docs/scripts/linenumber.js +25 -0
  46. package/docs/scripts/misc.js +217 -0
  47. package/docs/scripts/resize.js +85 -0
  48. package/docs/scripts/search.js +83 -0
  49. package/docs/scripts/third-party/Apache-License-2.0.txt +202 -0
  50. package/docs/scripts/third-party/fuse.js +9 -0
  51. package/docs/scripts/third-party/lang-css.js +2 -0
  52. package/docs/scripts/third-party/prettify.js +28 -0
  53. package/docs/static/favicon.png +0 -0
  54. package/docs/static/index.css +4 -0
  55. package/docs/styles/clean-jsdoc-theme-base.css +393 -0
  56. package/docs/styles/clean-jsdoc-theme-dark.css +324 -0
  57. package/docs/styles/clean-jsdoc-theme-light.css +319 -0
  58. package/docs/styles/reset.css +346 -0
  59. package/docs/styles/third-party/ionicons.min.css +11 -0
  60. package/docs/styles/third-party/prettify-jsdoc.css +111 -0
  61. package/docs/styles/third-party/prettify-tomorrow.css +5 -0
  62. package/engine/engine.all.js +94 -110
  63. package/engine/engine.all.min.js +1 -1
  64. package/engine/engine.all.release.js +94 -110
  65. package/engine/engine.js +14 -17
  66. package/engine/engineAudio.js +7 -7
  67. package/engine/engineDraw.js +6 -6
  68. package/engine/engineInput.js +7 -7
  69. package/engine/engineMedals.js +3 -3
  70. package/engine/engineObject.js +15 -15
  71. package/engine/engineParticles.js +3 -3
  72. package/engine/engineSettings.js +30 -43
  73. package/engine/engineTileLayer.js +5 -5
  74. package/engine/engineUtilities.js +4 -4
  75. package/examples/breakout/game.js +1 -1
  76. package/examples/breakout/gameObjects.js +1 -1
  77. package/examples/breakout/index.html +3 -3
  78. package/examples/platformer/gameObjects.js +1 -1
  79. package/examples/platformer/gamePlayer.js +1 -1
  80. package/examples/platformer/index.html +6 -6
  81. package/examples/puzzle/game.js +1 -1
  82. package/examples/puzzle/index.html +2 -2
  83. package/examples/stress/index.html +1 -1
  84. package/index.html +13 -13
  85. package/package.json +1 -1
@@ -0,0 +1,4207 @@
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="3026681" > <h3 class="accordion-heading">Classes<svg><use xlink:href="#down-icon"></use></svg></h3><ul class="accordion-content"><li class="accordion collapsed child" id=864267><div class="accordion-heading child"><a href="Color.html">Color</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Color.html#add">add</a></li><li data-type='method'><a href="Color.html#clamp">clamp</a></li><li data-type='method'><a href="Color.html#copy">copy</a></li><li data-type='method'><a href="Color.html#divide">divide</a></li><li data-type='method'><a href="Color.html#lerp">lerp</a></li><li data-type='method'><a href="Color.html#multiply">multiply</a></li><li data-type='method'><a href="Color.html#mutate">mutate</a></li><li data-type='method'><a href="Color.html#rgba">rgba</a></li><li data-type='method'><a href="Color.html#rgbaInt">rgbaInt</a></li><li data-type='method'><a href="Color.html#scale">scale</a></li><li data-type='method'><a href="Color.html#setHSLA">setHSLA</a></li><li data-type='method'><a href="Color.html#subtract">subtract</a></li></ul></li><li class="accordion collapsed child" id=3569399><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=2970668><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=2533015><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=5490011><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=5370538><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=4983401><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=4102019><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=3455641><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=1570904><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=3515045><div class="accordion-heading child"><a href="Timer.html">Timer</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Timer.html#active">active</a></li><li data-type='method'><a href="Timer.html#elapsed">elapsed</a></li><li data-type='method'><a href="Timer.html#get">get</a></li><li data-type='method'><a href="Timer.html#getPercent">getPercent</a></li><li data-type='method'><a href="Timer.html#isSet">isSet</a></li><li data-type='method'><a href="Timer.html#set">set</a></li><li data-type='method'><a href="Timer.html#unset">unset</a></li></ul></li><li class="accordion collapsed child" id=7852068><div class="accordion-heading child"><a href="Vector2.html">Vector2</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Vector2.html#add">add</a></li><li data-type='method'><a href="Vector2.html#angle">angle</a></li><li data-type='method'><a href="Vector2.html#area">area</a></li><li data-type='method'><a href="Vector2.html#arrayCheck">arrayCheck</a></li><li data-type='method'><a href="Vector2.html#clampLength">clampLength</a></li><li data-type='method'><a href="Vector2.html#copy">copy</a></li><li data-type='method'><a href="Vector2.html#cross">cross</a></li><li data-type='method'><a href="Vector2.html#direction">direction</a></li><li data-type='method'><a href="Vector2.html#distance">distance</a></li><li data-type='method'><a href="Vector2.html#distanceSquared">distanceSquared</a></li><li data-type='method'><a href="Vector2.html#divide">divide</a></li><li data-type='method'><a href="Vector2.html#dot">dot</a></li><li data-type='method'><a href="Vector2.html#flip">flip</a></li><li data-type='method'><a href="Vector2.html#floor">floor</a></li><li data-type='method'><a href="Vector2.html#invert">invert</a></li><li data-type='method'><a href="Vector2.html#length">length</a></li><li data-type='method'><a href="Vector2.html#lengthSquared">lengthSquared</a></li><li data-type='method'><a href="Vector2.html#lerp">lerp</a></li><li data-type='method'><a href="Vector2.html#multiply">multiply</a></li><li data-type='method'><a href="Vector2.html#normalize">normalize</a></li><li data-type='method'><a href="Vector2.html#rotate">rotate</a></li><li data-type='method'><a href="Vector2.html#scale">scale</a></li><li data-type='method'><a href="Vector2.html#setAngle">setAngle</a></li><li data-type='method'><a href="Vector2.html#subtract">subtract</a></li></ul></li></ul> </div><div class="accordion collapsed" id="813939" > <h3 class="accordion-heading">Namespaces<svg><use xlink:href="#down-icon"></use></svg></h3><ul class="accordion-content"><li class="accordion collapsed child" id=2717358><div class="accordion-heading child"><a href="Audio.html">Audio</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Audio.html#.getNoteFrequency">getNoteFrequency</a></li><li data-type='method'><a href="Audio.html#.playAudioFile">playAudioFile</a></li><li data-type='method'><a href="Audio.html#.playSamples">playSamples</a></li><li data-type='method'><a href="Audio.html#.speak">speak</a></li><li data-type='method'><a href="Audio.html#.stopSpeech">stopSpeech</a></li><li data-type='method'><a href="Audio.html#.zzfx">zzfx</a></li><li data-type='method'><a href="Audio.html#.zzfxG">zzfxG</a></li><li data-type='method'><a href="Audio.html#.zzfxM">zzfxM</a></li></ul></li><li class="accordion collapsed child" id=8015982><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=3886530><div class="accordion-heading child"><a href="Draw.html">Draw</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Draw.html#.drawCanvas2D">drawCanvas2D</a></li><li data-type='method'><a href="Draw.html#.drawLine">drawLine</a></li><li data-type='method'><a href="Draw.html#.drawRect">drawRect</a></li><li data-type='method'><a href="Draw.html#.drawRectScreenSpace">drawRectScreenSpace</a></li><li data-type='method'><a href="Draw.html#.drawText">drawText</a></li><li data-type='method'><a href="Draw.html#.drawTile">drawTile</a></li><li data-type='method'><a href="Draw.html#.drawTileScreenSpace">drawTileScreenSpace</a></li><li data-type='method'><a href="Draw.html#.isFullscreen">isFullscreen</a></li><li data-type='method'><a href="Draw.html#.screenToWorld">screenToWorld</a></li><li data-type='method'><a href="Draw.html#.setBlendMode">setBlendMode</a></li><li data-type='method'><a href="Draw.html#.toggleFullscreen">toggleFullscreen</a></li><li data-type='method'><a href="Draw.html#.worldToScreen">worldToScreen</a></li></ul></li><li class="accordion collapsed child" id=2344392><div class="accordion-heading child"><a href="Input.html">Input</a><svg><use xlink:href="#down-icon"></use></svg></div><ul class='methods accordion-content'><li data-type='method'><a href="Input.html#.clearInput">clearInput</a></li><li data-type='method'><a href="Input.html#.gamepadIsDown">gamepadIsDown</a></li><li data-type='method'><a href="Input.html#.gamepadStick">gamepadStick</a></li><li data-type='method'><a href="Input.html#.gamepadWasPressed">gamepadWasPressed</a></li><li data-type='method'><a href="Input.html#.gamepadWasReleased">gamepadWasReleased</a></li><li data-type='method'><a href="Input.html#.keyIsDown">keyIsDown</a></li><li data-type='method'><a href="Input.html#.keyWasPressed">keyWasPressed</a></li><li data-type='method'><a href="Input.html#.keyWasReleased">keyWasReleased</a></li></ul></li><li class="accordion collapsed child" id=4725200><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=7676165><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=2840044><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=6238309><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=6305592><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="9475387" > <h3 class="accordion-heading">Global<svg><use xlink:href="#down-icon"></use></svg></h3><ul class="accordion-content"><li class="accordion-list" id=""><a href="global.html#engineCollideObjects">engineCollideObjects</a></li><li class="accordion-list" id=""><a href="global.html#engineInit">engineInit</a></li><li class="accordion-list" id=""><a href="global.html#engineName">engineName</a></li><li class="accordion-list" id=""><a href="global.html#engineObjects">engineObjects</a></li><li class="accordion-list" id=""><a href="global.html#engineObjectsCallback">engineObjectsCallback</a></li><li class="accordion-list" id=""><a href="global.html#engineObjectsDestroy">engineObjectsDestroy</a></li><li class="accordion-list" id=""><a href="global.html#engineObjectsUpdate">engineObjectsUpdate</a></li><li class="accordion-list" id=""><a href="global.html#engineVersion">engineVersion</a></li><li class="accordion-list" id=""><a href="global.html#FPS">FPS</a></li><li class="accordion-list" id=""><a href="global.html#frame">frame</a></li><li class="accordion-list" id=""><a href="global.html#paused">paused</a></li><li class="accordion-list" id=""><a href="global.html#time">time</a></li><li class="accordion-list" id=""><a href="global.html#timeDelta">timeDelta</a></li><li class="accordion-list" id=""><a href="global.html#timeReal">timeReal</a></li></ul> </div></div>
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</div>
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#line198">line 198</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#line206">line 206</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#line208">line 208</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#line218">line 218</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#line280">line 280</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#line310">line 310</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#line321">line 321</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#line266">line 266</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#line213">line 213</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#line276">line 276</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#line294">line 294</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#line251">line 251</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#line256">line 256</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#line233">line 233</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#line271">line 271</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="flip">
2383
+ <a href="#flip">#</a>
2384
+ <span class="type-signature"></span>flip<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 the axies flipped
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#line302">line 302</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="floor">
2495
+ <a href="#floor">#</a>
2496
+ <span class="type-signature"></span>floor<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 with each axis floored
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#line306">line 306</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="invert">
2607
+ <a href="#invert">#</a>
2608
+ <span class="type-signature"></span>invert<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Vector2.html">Vector2</a>}</span>
2609
+ </h4>
2610
+
2611
+
2612
+
2613
+
2614
+
2615
+ <div class="description">
2616
+ Returns a copy of this vector that has been inverted
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#line298">line 298</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"><a href="Vector2.html">Vector2</a></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="length">
2719
+ <a href="#length">#</a>
2720
+ <span class="type-signature"></span>length<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
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#line242">line 242</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="lengthSquared">
2831
+ <a href="#lengthSquared">#</a>
2832
+ <span class="type-signature"></span>lengthSquared<span class="signature">()</span><span class="type-signature"> &rarr; {Number}</span>
2833
+ </h4>
2834
+
2835
+
2836
+
2837
+
2838
+
2839
+ <div class="description">
2840
+ Returns the length of this vector squared
2841
+ </div>
2842
+
2843
+
2844
+
2845
+
2846
+
2847
+
2848
+
2849
+
2850
+
2851
+
2852
+
2853
+
2854
+
2855
+
2856
+
2857
+ <dl class="details">
2858
+
2859
+
2860
+
2861
+
2862
+
2863
+
2864
+
2865
+
2866
+
2867
+
2868
+
2869
+
2870
+
2871
+
2872
+
2873
+
2874
+
2875
+
2876
+
2877
+
2878
+
2879
+
2880
+
2881
+
2882
+
2883
+
2884
+ <div class="details-item-container">
2885
+ <dt class="tag-source">Source:</dt>
2886
+ <dd class="tag-source"><ul class="dummy"><li>
2887
+ <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line246">line 246</a>
2888
+ </li></ul></dd>
2889
+ </div>
2890
+
2891
+
2892
+
2893
+
2894
+
2895
+
2896
+
2897
+ </dl>
2898
+
2899
+
2900
+
2901
+
2902
+
2903
+
2904
+
2905
+
2906
+
2907
+
2908
+
2909
+
2910
+
2911
+
2912
+
2913
+ <div class="method-member-container mt-20">
2914
+ <strong>Returns:</strong>
2915
+
2916
+
2917
+
2918
+
2919
+ <dl class="param-type">
2920
+ <dt>
2921
+ Type
2922
+ </dt>
2923
+ <dd>
2924
+
2925
+ <span class="param-type">Number</span>
2926
+
2927
+
2928
+ </dd>
2929
+ </dl>
2930
+
2931
+
2932
+ </div>
2933
+
2934
+
2935
+
2936
+
2937
+
2938
+
2939
+
2940
+
2941
+
2942
+ <h4 class="name" id="lerp">
2943
+ <a href="#lerp">#</a>
2944
+ <span class="type-signature"></span>lerp<span class="signature">(vector, percent)</span><span class="type-signature"> &rarr; {<a href="Vector2.html">Vector2</a>}</span>
2945
+ </h4>
2946
+
2947
+
2948
+
2949
+
2950
+
2951
+ <div class="description">
2952
+ Returns a new vector that is p percent between this and the vector passed in
2953
+ </div>
2954
+
2955
+
2956
+
2957
+
2958
+
2959
+
2960
+
2961
+
2962
+
2963
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
2964
+ <strong>Parameters:</strong>
2965
+
2966
+
2967
+ <table class="params">
2968
+ <thead>
2969
+ <tr>
2970
+
2971
+ <th>Name</th>
2972
+
2973
+
2974
+ <th>Type</th>
2975
+
2976
+
2977
+
2978
+
2979
+
2980
+ <th class="last">Description</th>
2981
+ </tr>
2982
+ </thead>
2983
+
2984
+ <tbody>
2985
+
2986
+
2987
+ <tr>
2988
+
2989
+ <td class="name"><code>vector</code></td>
2990
+
2991
+
2992
+ <td class="type">
2993
+
2994
+
2995
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
2996
+
2997
+
2998
+
2999
+ </td>
3000
+
3001
+
3002
+
3003
+
3004
+
3005
+ <td class="description last"></td>
3006
+ </tr>
3007
+
3008
+
3009
+
3010
+ <tr>
3011
+
3012
+ <td class="name"><code>percent</code></td>
3013
+
3014
+
3015
+ <td class="type">
3016
+
3017
+
3018
+ <span class="param-type">Number</span>
3019
+
3020
+
3021
+
3022
+ </td>
3023
+
3024
+
3025
+
3026
+
3027
+
3028
+ <td class="description last"></td>
3029
+ </tr>
3030
+
3031
+
3032
+ </tbody>
3033
+ </table>
3034
+
3035
+ </div>
3036
+
3037
+
3038
+
3039
+
3040
+
3041
+
3042
+
3043
+ <dl class="details">
3044
+
3045
+
3046
+
3047
+
3048
+
3049
+
3050
+
3051
+
3052
+
3053
+
3054
+
3055
+
3056
+
3057
+
3058
+
3059
+
3060
+
3061
+
3062
+
3063
+
3064
+
3065
+
3066
+
3067
+
3068
+
3069
+
3070
+ <div class="details-item-container">
3071
+ <dt class="tag-source">Source:</dt>
3072
+ <dd class="tag-source"><ul class="dummy"><li>
3073
+ <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line316">line 316</a>
3074
+ </li></ul></dd>
3075
+ </div>
3076
+
3077
+
3078
+
3079
+
3080
+
3081
+
3082
+
3083
+ </dl>
3084
+
3085
+
3086
+
3087
+
3088
+
3089
+
3090
+
3091
+
3092
+
3093
+
3094
+
3095
+
3096
+
3097
+
3098
+
3099
+ <div class="method-member-container mt-20">
3100
+ <strong>Returns:</strong>
3101
+
3102
+
3103
+
3104
+
3105
+ <dl class="param-type">
3106
+ <dt>
3107
+ Type
3108
+ </dt>
3109
+ <dd>
3110
+
3111
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
3112
+
3113
+
3114
+ </dd>
3115
+ </dl>
3116
+
3117
+
3118
+ </div>
3119
+
3120
+
3121
+
3122
+
3123
+
3124
+
3125
+
3126
+
3127
+
3128
+ <h4 class="name" id="multiply">
3129
+ <a href="#multiply">#</a>
3130
+ <span class="type-signature"></span>multiply<span class="signature">(vector)</span><span class="type-signature"> &rarr; {<a href="Vector2.html">Vector2</a>}</span>
3131
+ </h4>
3132
+
3133
+
3134
+
3135
+
3136
+
3137
+ <div class="description">
3138
+ Returns a copy of this vector times the vector passed in
3139
+ </div>
3140
+
3141
+
3142
+
3143
+
3144
+
3145
+
3146
+
3147
+
3148
+
3149
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
3150
+ <strong>Parameters:</strong>
3151
+
3152
+
3153
+ <table class="params">
3154
+ <thead>
3155
+ <tr>
3156
+
3157
+ <th>Name</th>
3158
+
3159
+
3160
+ <th>Type</th>
3161
+
3162
+
3163
+
3164
+
3165
+
3166
+ <th class="last">Description</th>
3167
+ </tr>
3168
+ </thead>
3169
+
3170
+ <tbody>
3171
+
3172
+
3173
+ <tr>
3174
+
3175
+ <td class="name"><code>vector</code></td>
3176
+
3177
+
3178
+ <td class="type">
3179
+
3180
+
3181
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
3182
+
3183
+
3184
+
3185
+ </td>
3186
+
3187
+
3188
+
3189
+
3190
+
3191
+ <td class="description last"></td>
3192
+ </tr>
3193
+
3194
+
3195
+ </tbody>
3196
+ </table>
3197
+
3198
+ </div>
3199
+
3200
+
3201
+
3202
+
3203
+
3204
+
3205
+
3206
+ <dl class="details">
3207
+
3208
+
3209
+
3210
+
3211
+
3212
+
3213
+
3214
+
3215
+
3216
+
3217
+
3218
+
3219
+
3220
+
3221
+
3222
+
3223
+
3224
+
3225
+
3226
+
3227
+
3228
+
3229
+
3230
+
3231
+
3232
+
3233
+ <div class="details-item-container">
3234
+ <dt class="tag-source">Source:</dt>
3235
+ <dd class="tag-source"><ul class="dummy"><li>
3236
+ <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line228">line 228</a>
3237
+ </li></ul></dd>
3238
+ </div>
3239
+
3240
+
3241
+
3242
+
3243
+
3244
+
3245
+
3246
+ </dl>
3247
+
3248
+
3249
+
3250
+
3251
+
3252
+
3253
+
3254
+
3255
+
3256
+
3257
+
3258
+
3259
+
3260
+
3261
+
3262
+ <div class="method-member-container mt-20">
3263
+ <strong>Returns:</strong>
3264
+
3265
+
3266
+
3267
+
3268
+ <dl class="param-type">
3269
+ <dt>
3270
+ Type
3271
+ </dt>
3272
+ <dd>
3273
+
3274
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
3275
+
3276
+
3277
+ </dd>
3278
+ </dl>
3279
+
3280
+
3281
+ </div>
3282
+
3283
+
3284
+
3285
+
3286
+
3287
+
3288
+
3289
+
3290
+
3291
+ <h4 class="name" id="normalize">
3292
+ <a href="#normalize">#</a>
3293
+ <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>
3294
+ </h4>
3295
+
3296
+
3297
+
3298
+
3299
+
3300
+ <div class="description">
3301
+ Returns a new vector in same direction as this one with the length passed in
3302
+ </div>
3303
+
3304
+
3305
+
3306
+
3307
+
3308
+
3309
+
3310
+
3311
+
3312
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
3313
+ <strong>Parameters:</strong>
3314
+
3315
+
3316
+ <table class="params">
3317
+ <thead>
3318
+ <tr>
3319
+
3320
+ <th>Name</th>
3321
+
3322
+
3323
+ <th>Type</th>
3324
+
3325
+
3326
+ <th>Attributes</th>
3327
+
3328
+
3329
+
3330
+ <th>Default</th>
3331
+
3332
+
3333
+ <th class="last">Description</th>
3334
+ </tr>
3335
+ </thead>
3336
+
3337
+ <tbody>
3338
+
3339
+
3340
+ <tr>
3341
+
3342
+ <td class="name"><code>length</code></td>
3343
+
3344
+
3345
+ <td class="type">
3346
+
3347
+
3348
+ <span class="param-type">Number</span>
3349
+
3350
+
3351
+
3352
+ </td>
3353
+
3354
+
3355
+ <td class="attributes">
3356
+
3357
+ &lt;optional><br>
3358
+
3359
+
3360
+
3361
+
3362
+
3363
+ </td>
3364
+
3365
+
3366
+
3367
+ <td class="default">
3368
+
3369
+ 1
3370
+
3371
+ </td>
3372
+
3373
+
3374
+ <td class="description last"></td>
3375
+ </tr>
3376
+
3377
+
3378
+ </tbody>
3379
+ </table>
3380
+
3381
+ </div>
3382
+
3383
+
3384
+
3385
+
3386
+
3387
+
3388
+
3389
+ <dl class="details">
3390
+
3391
+
3392
+
3393
+
3394
+
3395
+
3396
+
3397
+
3398
+
3399
+
3400
+
3401
+
3402
+
3403
+
3404
+
3405
+
3406
+
3407
+
3408
+
3409
+
3410
+
3411
+
3412
+
3413
+
3414
+
3415
+
3416
+ <div class="details-item-container">
3417
+ <dt class="tag-source">Source:</dt>
3418
+ <dd class="tag-source"><ul class="dummy"><li>
3419
+ <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line261">line 261</a>
3420
+ </li></ul></dd>
3421
+ </div>
3422
+
3423
+
3424
+
3425
+
3426
+
3427
+
3428
+
3429
+ </dl>
3430
+
3431
+
3432
+
3433
+
3434
+
3435
+
3436
+
3437
+
3438
+
3439
+
3440
+
3441
+
3442
+
3443
+
3444
+
3445
+ <div class="method-member-container mt-20">
3446
+ <strong>Returns:</strong>
3447
+
3448
+
3449
+
3450
+
3451
+ <dl class="param-type">
3452
+ <dt>
3453
+ Type
3454
+ </dt>
3455
+ <dd>
3456
+
3457
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
3458
+
3459
+
3460
+ </dd>
3461
+ </dl>
3462
+
3463
+
3464
+ </div>
3465
+
3466
+
3467
+
3468
+
3469
+
3470
+
3471
+
3472
+
3473
+
3474
+ <h4 class="name" id="rotate">
3475
+ <a href="#rotate">#</a>
3476
+ <span class="type-signature"></span>rotate<span class="signature">(angle)</span><span class="type-signature"> &rarr; {<a href="Vector2.html">Vector2</a>}</span>
3477
+ </h4>
3478
+
3479
+
3480
+
3481
+
3482
+
3483
+ <div class="description">
3484
+ Returns copy of this vector rotated by the angle passed in
3485
+ </div>
3486
+
3487
+
3488
+
3489
+
3490
+
3491
+
3492
+
3493
+
3494
+
3495
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
3496
+ <strong>Parameters:</strong>
3497
+
3498
+
3499
+ <table class="params">
3500
+ <thead>
3501
+ <tr>
3502
+
3503
+ <th>Name</th>
3504
+
3505
+
3506
+ <th>Type</th>
3507
+
3508
+
3509
+
3510
+
3511
+
3512
+ <th class="last">Description</th>
3513
+ </tr>
3514
+ </thead>
3515
+
3516
+ <tbody>
3517
+
3518
+
3519
+ <tr>
3520
+
3521
+ <td class="name"><code>angle</code></td>
3522
+
3523
+
3524
+ <td class="type">
3525
+
3526
+
3527
+ <span class="param-type">Number</span>
3528
+
3529
+
3530
+
3531
+ </td>
3532
+
3533
+
3534
+
3535
+
3536
+
3537
+ <td class="description last"></td>
3538
+ </tr>
3539
+
3540
+
3541
+ </tbody>
3542
+ </table>
3543
+
3544
+ </div>
3545
+
3546
+
3547
+
3548
+
3549
+
3550
+
3551
+
3552
+ <dl class="details">
3553
+
3554
+
3555
+
3556
+
3557
+
3558
+
3559
+
3560
+
3561
+
3562
+
3563
+
3564
+
3565
+
3566
+
3567
+
3568
+
3569
+
3570
+
3571
+
3572
+
3573
+
3574
+
3575
+
3576
+
3577
+
3578
+
3579
+ <div class="details-item-container">
3580
+ <dt class="tag-source">Source:</dt>
3581
+ <dd class="tag-source"><ul class="dummy"><li>
3582
+ <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line290">line 290</a>
3583
+ </li></ul></dd>
3584
+ </div>
3585
+
3586
+
3587
+
3588
+
3589
+
3590
+
3591
+
3592
+ </dl>
3593
+
3594
+
3595
+
3596
+
3597
+
3598
+
3599
+
3600
+
3601
+
3602
+
3603
+
3604
+
3605
+
3606
+
3607
+
3608
+ <div class="method-member-container mt-20">
3609
+ <strong>Returns:</strong>
3610
+
3611
+
3612
+
3613
+
3614
+ <dl class="param-type">
3615
+ <dt>
3616
+ Type
3617
+ </dt>
3618
+ <dd>
3619
+
3620
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
3621
+
3622
+
3623
+ </dd>
3624
+ </dl>
3625
+
3626
+
3627
+ </div>
3628
+
3629
+
3630
+
3631
+
3632
+
3633
+
3634
+
3635
+
3636
+
3637
+ <h4 class="name" id="scale">
3638
+ <a href="#scale">#</a>
3639
+ <span class="type-signature"></span>scale<span class="signature">(scale)</span><span class="type-signature"> &rarr; {<a href="Vector2.html">Vector2</a>}</span>
3640
+ </h4>
3641
+
3642
+
3643
+
3644
+
3645
+
3646
+ <div class="description">
3647
+ Returns a copy of this vector scaled by the vector passed in
3648
+ </div>
3649
+
3650
+
3651
+
3652
+
3653
+
3654
+
3655
+
3656
+
3657
+
3658
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
3659
+ <strong>Parameters:</strong>
3660
+
3661
+
3662
+ <table class="params">
3663
+ <thead>
3664
+ <tr>
3665
+
3666
+ <th>Name</th>
3667
+
3668
+
3669
+ <th>Type</th>
3670
+
3671
+
3672
+
3673
+
3674
+
3675
+ <th class="last">Description</th>
3676
+ </tr>
3677
+ </thead>
3678
+
3679
+ <tbody>
3680
+
3681
+
3682
+ <tr>
3683
+
3684
+ <td class="name"><code>scale</code></td>
3685
+
3686
+
3687
+ <td class="type">
3688
+
3689
+
3690
+ <span class="param-type">Number</span>
3691
+
3692
+
3693
+
3694
+ </td>
3695
+
3696
+
3697
+
3698
+
3699
+
3700
+ <td class="description last"></td>
3701
+ </tr>
3702
+
3703
+
3704
+ </tbody>
3705
+ </table>
3706
+
3707
+ </div>
3708
+
3709
+
3710
+
3711
+
3712
+
3713
+
3714
+
3715
+ <dl class="details">
3716
+
3717
+
3718
+
3719
+
3720
+
3721
+
3722
+
3723
+
3724
+
3725
+
3726
+
3727
+
3728
+
3729
+
3730
+
3731
+
3732
+
3733
+
3734
+
3735
+
3736
+
3737
+
3738
+
3739
+
3740
+
3741
+
3742
+ <div class="details-item-container">
3743
+ <dt class="tag-source">Source:</dt>
3744
+ <dd class="tag-source"><ul class="dummy"><li>
3745
+ <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line238">line 238</a>
3746
+ </li></ul></dd>
3747
+ </div>
3748
+
3749
+
3750
+
3751
+
3752
+
3753
+
3754
+
3755
+ </dl>
3756
+
3757
+
3758
+
3759
+
3760
+
3761
+
3762
+
3763
+
3764
+
3765
+
3766
+
3767
+
3768
+
3769
+
3770
+
3771
+ <div class="method-member-container mt-20">
3772
+ <strong>Returns:</strong>
3773
+
3774
+
3775
+
3776
+
3777
+ <dl class="param-type">
3778
+ <dt>
3779
+ Type
3780
+ </dt>
3781
+ <dd>
3782
+
3783
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
3784
+
3785
+
3786
+ </dd>
3787
+ </dl>
3788
+
3789
+
3790
+ </div>
3791
+
3792
+
3793
+
3794
+
3795
+
3796
+
3797
+
3798
+
3799
+
3800
+ <h4 class="name" id="setAngle">
3801
+ <a href="#setAngle">#</a>
3802
+ <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>
3803
+ </h4>
3804
+
3805
+
3806
+
3807
+
3808
+
3809
+ <div class="description">
3810
+ Sets this vector with angle and length passed in
3811
+ </div>
3812
+
3813
+
3814
+
3815
+
3816
+
3817
+
3818
+
3819
+
3820
+
3821
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
3822
+ <strong>Parameters:</strong>
3823
+
3824
+
3825
+ <table class="params">
3826
+ <thead>
3827
+ <tr>
3828
+
3829
+ <th>Name</th>
3830
+
3831
+
3832
+ <th>Type</th>
3833
+
3834
+
3835
+ <th>Attributes</th>
3836
+
3837
+
3838
+
3839
+ <th>Default</th>
3840
+
3841
+
3842
+ <th class="last">Description</th>
3843
+ </tr>
3844
+ </thead>
3845
+
3846
+ <tbody>
3847
+
3848
+
3849
+ <tr>
3850
+
3851
+ <td class="name"><code>angle</code></td>
3852
+
3853
+
3854
+ <td class="type">
3855
+
3856
+
3857
+ <span class="param-type">Number</span>
3858
+
3859
+
3860
+
3861
+ </td>
3862
+
3863
+
3864
+ <td class="attributes">
3865
+
3866
+ &lt;optional><br>
3867
+
3868
+
3869
+
3870
+
3871
+
3872
+ </td>
3873
+
3874
+
3875
+
3876
+ <td class="default">
3877
+
3878
+ 0
3879
+
3880
+ </td>
3881
+
3882
+
3883
+ <td class="description last"></td>
3884
+ </tr>
3885
+
3886
+
3887
+
3888
+ <tr>
3889
+
3890
+ <td class="name"><code>length</code></td>
3891
+
3892
+
3893
+ <td class="type">
3894
+
3895
+
3896
+ <span class="param-type">Number</span>
3897
+
3898
+
3899
+
3900
+ </td>
3901
+
3902
+
3903
+ <td class="attributes">
3904
+
3905
+ &lt;optional><br>
3906
+
3907
+
3908
+
3909
+
3910
+
3911
+ </td>
3912
+
3913
+
3914
+
3915
+ <td class="default">
3916
+
3917
+ 1
3918
+
3919
+ </td>
3920
+
3921
+
3922
+ <td class="description last"></td>
3923
+ </tr>
3924
+
3925
+
3926
+ </tbody>
3927
+ </table>
3928
+
3929
+ </div>
3930
+
3931
+
3932
+
3933
+
3934
+
3935
+
3936
+
3937
+ <dl class="details">
3938
+
3939
+
3940
+
3941
+
3942
+
3943
+
3944
+
3945
+
3946
+
3947
+
3948
+
3949
+
3950
+
3951
+
3952
+
3953
+
3954
+
3955
+
3956
+
3957
+
3958
+
3959
+
3960
+
3961
+
3962
+
3963
+
3964
+ <div class="details-item-container">
3965
+ <dt class="tag-source">Source:</dt>
3966
+ <dd class="tag-source"><ul class="dummy"><li>
3967
+ <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line285">line 285</a>
3968
+ </li></ul></dd>
3969
+ </div>
3970
+
3971
+
3972
+
3973
+
3974
+
3975
+
3976
+
3977
+ </dl>
3978
+
3979
+
3980
+
3981
+
3982
+
3983
+
3984
+
3985
+
3986
+
3987
+
3988
+
3989
+
3990
+
3991
+
3992
+
3993
+
3994
+
3995
+
3996
+
3997
+
3998
+
3999
+
4000
+
4001
+ <h4 class="name" id="subtract">
4002
+ <a href="#subtract">#</a>
4003
+ <span class="type-signature"></span>subtract<span class="signature">(vector)</span><span class="type-signature"> &rarr; {<a href="Vector2.html">Vector2</a>}</span>
4004
+ </h4>
4005
+
4006
+
4007
+
4008
+
4009
+
4010
+ <div class="description">
4011
+ Returns a copy of this vector minus the vector passed in
4012
+ </div>
4013
+
4014
+
4015
+
4016
+
4017
+
4018
+
4019
+
4020
+
4021
+
4022
+ <div class="method-member-container flex flex-col w-100 overflow-auto mt-20">
4023
+ <strong>Parameters:</strong>
4024
+
4025
+
4026
+ <table class="params">
4027
+ <thead>
4028
+ <tr>
4029
+
4030
+ <th>Name</th>
4031
+
4032
+
4033
+ <th>Type</th>
4034
+
4035
+
4036
+
4037
+
4038
+
4039
+ <th class="last">Description</th>
4040
+ </tr>
4041
+ </thead>
4042
+
4043
+ <tbody>
4044
+
4045
+
4046
+ <tr>
4047
+
4048
+ <td class="name"><code>vector</code></td>
4049
+
4050
+
4051
+ <td class="type">
4052
+
4053
+
4054
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
4055
+
4056
+
4057
+
4058
+ </td>
4059
+
4060
+
4061
+
4062
+
4063
+
4064
+ <td class="description last"></td>
4065
+ </tr>
4066
+
4067
+
4068
+ </tbody>
4069
+ </table>
4070
+
4071
+ </div>
4072
+
4073
+
4074
+
4075
+
4076
+
4077
+
4078
+
4079
+ <dl class="details">
4080
+
4081
+
4082
+
4083
+
4084
+
4085
+
4086
+
4087
+
4088
+
4089
+
4090
+
4091
+
4092
+
4093
+
4094
+
4095
+
4096
+
4097
+
4098
+
4099
+
4100
+
4101
+
4102
+
4103
+
4104
+
4105
+
4106
+ <div class="details-item-container">
4107
+ <dt class="tag-source">Source:</dt>
4108
+ <dd class="tag-source"><ul class="dummy"><li>
4109
+ <a href="engineUtilities.js.html">engineUtilities.js</a>, <a href="engineUtilities.js.html#line223">line 223</a>
4110
+ </li></ul></dd>
4111
+ </div>
4112
+
4113
+
4114
+
4115
+
4116
+
4117
+
4118
+
4119
+ </dl>
4120
+
4121
+
4122
+
4123
+
4124
+
4125
+
4126
+
4127
+
4128
+
4129
+
4130
+
4131
+
4132
+
4133
+
4134
+
4135
+ <div class="method-member-container mt-20">
4136
+ <strong>Returns:</strong>
4137
+
4138
+
4139
+
4140
+
4141
+ <dl class="param-type">
4142
+ <dt>
4143
+ Type
4144
+ </dt>
4145
+ <dd>
4146
+
4147
+ <span class="param-type"><a href="Vector2.html">Vector2</a></span>
4148
+
4149
+
4150
+ </dd>
4151
+ </dl>
4152
+
4153
+
4154
+ </div>
4155
+
4156
+
4157
+
4158
+
4159
+
4160
+
4161
+
4162
+
4163
+
4164
+
4165
+ </article>
4166
+
4167
+ </section>
4168
+
4169
+
4170
+
4171
+
4172
+ </div>
4173
+
4174
+ <footer class="footer" id="footer">
4175
+ <a href=https://github.com/KilledByAPixel/LittleJS>LittleJS - MIT License - Copyright 2021 Frank Force</a>
4176
+ </footer>
4177
+
4178
+ <script src="scripts/third-party/prettify.js"></script>
4179
+ <script src="scripts/third-party/lang-css.js"></script>
4180
+ <script type="text/javascript" src="scripts/misc.js"></script>
4181
+
4182
+ <script>prettyPrint();</script>
4183
+ <script src="scripts/linenumber.js"></script>
4184
+ <script src="scripts/fix-code-block.js"></script>
4185
+ <script src="scripts/fix-navbar.js"></script>
4186
+
4187
+ <script src="scripts/search.js"></script>
4188
+ <script src="scripts/third-party/fuse.js"></script>
4189
+ <script>
4190
+ var list = [{"title":"Color","link":"<a href=\"Color.html\">Color</a>"},{"title":"Color#add","link":"<a href=\"Color.html#add\">Color &rtrif; add</a>"},{"title":"Color#clamp","link":"<a href=\"Color.html#clamp\">Color &rtrif; clamp</a>"},{"title":"Color#copy","link":"<a href=\"Color.html#copy\">Color &rtrif; copy</a>"},{"title":"Color#divide","link":"<a href=\"Color.html#divide\">Color &rtrif; divide</a>"},{"title":"Color#lerp","link":"<a href=\"Color.html#lerp\">Color &rtrif; lerp</a>"},{"title":"Color#multiply","link":"<a href=\"Color.html#multiply\">Color &rtrif; multiply</a>"},{"title":"Color#mutate","link":"<a href=\"Color.html#mutate\">Color &rtrif; mutate</a>"},{"title":"Color#rgba","link":"<a href=\"Color.html#rgba\">Color &rtrif; rgba</a>"},{"title":"Color#rgbaInt","link":"<a href=\"Color.html#rgbaInt\">Color &rtrif; rgbaInt</a>"},{"title":"Color#scale","link":"<a href=\"Color.html#scale\">Color &rtrif; scale</a>"},{"title":"Color#setHSLA","link":"<a href=\"Color.html#setHSLA\">Color &rtrif; setHSLA</a>"},{"title":"Color#subtract","link":"<a href=\"Color.html#subtract\">Color &rtrif; subtract</a>"},{"title":"EngineObject","link":"<a href=\"EngineObject.html\">EngineObject</a>"},{"title":"EngineObject#addChild","link":"<a href=\"EngineObject.html#addChild\">EngineObject &rtrif; addChild</a>"},{"title":"EngineObject#applyAcceleration","link":"<a href=\"EngineObject.html#applyAcceleration\">EngineObject &rtrif; applyAcceleration</a>"},{"title":"EngineObject#applyForce","link":"<a href=\"EngineObject.html#applyForce\">EngineObject &rtrif; applyForce</a>"},{"title":"EngineObject#collideWithObject","link":"<a href=\"EngineObject.html#collideWithObject\">EngineObject &rtrif; collideWithObject</a>"},{"title":"EngineObject#collideWithTile","link":"<a href=\"EngineObject.html#collideWithTile\">EngineObject &rtrif; collideWithTile</a>"},{"title":"EngineObject#collideWithTileRaycast","link":"<a href=\"EngineObject.html#collideWithTileRaycast\">EngineObject &rtrif; collideWithTileRaycast</a>"},{"title":"EngineObject#destroy","link":"<a href=\"EngineObject.html#destroy\">EngineObject &rtrif; destroy</a>"},{"title":"EngineObject#getAliveTime","link":"<a href=\"EngineObject.html#getAliveTime\">EngineObject &rtrif; getAliveTime</a>"},{"title":"EngineObject#getMirrorSign","link":"<a href=\"EngineObject.html#getMirrorSign\">EngineObject &rtrif; getMirrorSign</a>"},{"title":"EngineObject#removeChild","link":"<a href=\"EngineObject.html#removeChild\">EngineObject &rtrif; removeChild</a>"},{"title":"EngineObject#render","link":"<a href=\"EngineObject.html#render\">EngineObject &rtrif; render</a>"},{"title":"EngineObject#setCollision","link":"<a href=\"EngineObject.html#setCollision\">EngineObject &rtrif; setCollision</a>"},{"title":"EngineObject#update","link":"<a href=\"EngineObject.html#update\">EngineObject &rtrif; update</a>"},{"title":"Medal","link":"<a href=\"Medal.html\">Medal</a>"},{"title":"Medal#render","link":"<a href=\"Medal.html#render\">Medal &rtrif; render</a>"},{"title":"Medal#renderIcon","link":"<a href=\"Medal.html#renderIcon\">Medal &rtrif; renderIcon</a>"},{"title":"Medal#unlock","link":"<a href=\"Medal.html#unlock\">Medal &rtrif; unlock</a>"},{"title":"Music","link":"<a href=\"Music.html\">Music</a>"},{"title":"Music#play","link":"<a href=\"Music.html#play\">Music &rtrif; play</a>"},{"title":"Newgrounds","link":"<a href=\"Newgrounds.html\">Newgrounds</a>"},{"title":"Newgrounds#call","link":"<a href=\"Newgrounds.html#call\">Newgrounds &rtrif; call</a>"},{"title":"Newgrounds#getScores","link":"<a href=\"Newgrounds.html#getScores\">Newgrounds &rtrif; getScores</a>"},{"title":"Newgrounds#logView","link":"<a href=\"Newgrounds.html#logView\">Newgrounds &rtrif; logView</a>"},{"title":"Newgrounds#postScore","link":"<a href=\"Newgrounds.html#postScore\">Newgrounds &rtrif; postScore</a>"},{"title":"Newgrounds#unlockMedal","link":"<a href=\"Newgrounds.html#unlockMedal\">Newgrounds &rtrif; unlockMedal</a>"},{"title":"Particle","link":"<a href=\"Particle.html\">Particle</a>"},{"title":"Particle#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#unset","link":"<a href=\"Timer.html#unset\">Timer &rtrif; unset</a>"},{"title":"Vector2","link":"<a href=\"Vector2.html\">Vector2</a>"},{"title":"Vector2#add","link":"<a href=\"Vector2.html#add\">Vector2 &rtrif; add</a>"},{"title":"Vector2#angle","link":"<a href=\"Vector2.html#angle\">Vector2 &rtrif; angle</a>"},{"title":"Vector2#area","link":"<a href=\"Vector2.html#area\">Vector2 &rtrif; area</a>"},{"title":"Vector2#arrayCheck","link":"<a href=\"Vector2.html#arrayCheck\">Vector2 &rtrif; arrayCheck</a>"},{"title":"Vector2#clampLength","link":"<a href=\"Vector2.html#clampLength\">Vector2 &rtrif; clampLength</a>"},{"title":"Vector2#copy","link":"<a href=\"Vector2.html#copy\">Vector2 &rtrif; copy</a>"},{"title":"Vector2#cross","link":"<a href=\"Vector2.html#cross\">Vector2 &rtrif; cross</a>"},{"title":"Vector2#direction","link":"<a href=\"Vector2.html#direction\">Vector2 &rtrif; direction</a>"},{"title":"Vector2#distance","link":"<a href=\"Vector2.html#distance\">Vector2 &rtrif; distance</a>"},{"title":"Vector2#distanceSquared","link":"<a href=\"Vector2.html#distanceSquared\">Vector2 &rtrif; distanceSquared</a>"},{"title":"Vector2#divide","link":"<a href=\"Vector2.html#divide\">Vector2 &rtrif; divide</a>"},{"title":"Vector2#dot","link":"<a href=\"Vector2.html#dot\">Vector2 &rtrif; dot</a>"},{"title":"Vector2#flip","link":"<a href=\"Vector2.html#flip\">Vector2 &rtrif; flip</a>"},{"title":"Vector2#floor","link":"<a href=\"Vector2.html#floor\">Vector2 &rtrif; floor</a>"},{"title":"Vector2#invert","link":"<a href=\"Vector2.html#invert\">Vector2 &rtrif; invert</a>"},{"title":"Vector2#length","link":"<a href=\"Vector2.html#length\">Vector2 &rtrif; length</a>"},{"title":"Vector2#lengthSquared","link":"<a href=\"Vector2.html#lengthSquared\">Vector2 &rtrif; lengthSquared</a>"},{"title":"Vector2#lerp","link":"<a href=\"Vector2.html#lerp\">Vector2 &rtrif; lerp</a>"},{"title":"Vector2#multiply","link":"<a href=\"Vector2.html#multiply\">Vector2 &rtrif; multiply</a>"},{"title":"Vector2#normalize","link":"<a href=\"Vector2.html#normalize\">Vector2 &rtrif; normalize</a>"},{"title":"Vector2#rotate","link":"<a href=\"Vector2.html#rotate\">Vector2 &rtrif; rotate</a>"},{"title":"Vector2#scale","link":"<a href=\"Vector2.html#scale\">Vector2 &rtrif; scale</a>"},{"title":"Vector2#setAngle","link":"<a href=\"Vector2.html#setAngle\">Vector2 &rtrif; setAngle</a>"},{"title":"Vector2#subtract","link":"<a href=\"Vector2.html#subtract\">Vector2 &rtrif; subtract</a>"},{"title":"Audio","link":"<a href=\"Audio.html\">Audio</a>"},{"title":"Audio.getNoteFrequency","link":"<a href=\"Audio.html#.getNoteFrequency\">Audio.getNoteFrequency &rtrif; undefined</a>"},{"title":"Audio.playAudioFile","link":"<a href=\"Audio.html#.playAudioFile\">Audio.playAudioFile &rtrif; undefined</a>"},{"title":"Audio.playSamples","link":"<a href=\"Audio.html#.playSamples\">Audio.playSamples &rtrif; undefined</a>"},{"title":"Audio.speak","link":"<a href=\"Audio.html#.speak\">Audio.speak &rtrif; undefined</a>"},{"title":"Audio.stopSpeech","link":"<a href=\"Audio.html#.stopSpeech\">Audio.stopSpeech &rtrif; undefined</a>"},{"title":"Audio.zzfx","link":"<a href=\"Audio.html#.zzfx\">Audio.zzfx &rtrif; undefined</a>"},{"title":"Audio.zzfxG","link":"<a href=\"Audio.html#.zzfxG\">Audio.zzfxG &rtrif; undefined</a>"},{"title":"Audio.zzfxM","link":"<a href=\"Audio.html#.zzfxM\">Audio.zzfxM &rtrif; undefined</a>"},{"title":"Debug","link":"<a href=\"Debug.html\">Debug</a>"},{"title":"Debug.debugAABB","link":"<a href=\"Debug.html#.debugAABB\">Debug.debugAABB &rtrif; undefined</a>"},{"title":"Debug.debugCircle","link":"<a href=\"Debug.html#.debugCircle\">Debug.debugCircle &rtrif; undefined</a>"},{"title":"Debug.debugClear","link":"<a href=\"Debug.html#.debugClear\">Debug.debugClear &rtrif; undefined</a>"},{"title":"Debug.debugLine","link":"<a href=\"Debug.html#.debugLine\">Debug.debugLine &rtrif; undefined</a>"},{"title":"Debug.debugPoint","link":"<a href=\"Debug.html#.debugPoint\">Debug.debugPoint &rtrif; undefined</a>"},{"title":"Debug.debugRect","link":"<a href=\"Debug.html#.debugRect\">Debug.debugRect &rtrif; undefined</a>"},{"title":"Debug.debugSaveCanvas","link":"<a href=\"Debug.html#.debugSaveCanvas\">Debug.debugSaveCanvas &rtrif; undefined</a>"},{"title":"Debug.debugText","link":"<a href=\"Debug.html#.debugText\">Debug.debugText &rtrif; undefined</a>"},{"title":"Draw","link":"<a href=\"Draw.html\">Draw</a>"},{"title":"Draw.drawCanvas2D","link":"<a href=\"Draw.html#.drawCanvas2D\">Draw.drawCanvas2D &rtrif; undefined</a>"},{"title":"Draw.drawLine","link":"<a href=\"Draw.html#.drawLine\">Draw.drawLine &rtrif; undefined</a>"},{"title":"Draw.drawRect","link":"<a href=\"Draw.html#.drawRect\">Draw.drawRect &rtrif; undefined</a>"},{"title":"Draw.drawRectScreenSpace","link":"<a href=\"Draw.html#.drawRectScreenSpace\">Draw.drawRectScreenSpace &rtrif; undefined</a>"},{"title":"Draw.drawText","link":"<a href=\"Draw.html#.drawText\">Draw.drawText &rtrif; undefined</a>"},{"title":"Draw.drawTile","link":"<a href=\"Draw.html#.drawTile\">Draw.drawTile &rtrif; undefined</a>"},{"title":"Draw.drawTileScreenSpace","link":"<a href=\"Draw.html#.drawTileScreenSpace\">Draw.drawTileScreenSpace &rtrif; undefined</a>"},{"title":"Draw.isFullscreen","link":"<a href=\"Draw.html#.isFullscreen\">Draw.isFullscreen &rtrif; undefined</a>"},{"title":"Draw.screenToWorld","link":"<a href=\"Draw.html#.screenToWorld\">Draw.screenToWorld &rtrif; undefined</a>"},{"title":"Draw.setBlendMode","link":"<a href=\"Draw.html#.setBlendMode\">Draw.setBlendMode &rtrif; undefined</a>"},{"title":"Draw.toggleFullscreen","link":"<a href=\"Draw.html#.toggleFullscreen\">Draw.toggleFullscreen &rtrif; undefined</a>"},{"title":"Draw.worldToScreen","link":"<a href=\"Draw.html#.worldToScreen\">Draw.worldToScreen &rtrif; undefined</a>"},{"title":"Input","link":"<a href=\"Input.html\">Input</a>"},{"title":"Input.clearInput","link":"<a href=\"Input.html#.clearInput\">Input.clearInput &rtrif; undefined</a>"},{"title":"Input.gamepadIsDown","link":"<a href=\"Input.html#.gamepadIsDown\">Input.gamepadIsDown &rtrif; undefined</a>"},{"title":"Input.gamepadStick","link":"<a href=\"Input.html#.gamepadStick\">Input.gamepadStick &rtrif; undefined</a>"},{"title":"Input.gamepadWasPressed","link":"<a href=\"Input.html#.gamepadWasPressed\">Input.gamepadWasPressed &rtrif; undefined</a>"},{"title":"Input.gamepadWasReleased","link":"<a href=\"Input.html#.gamepadWasReleased\">Input.gamepadWasReleased &rtrif; undefined</a>"},{"title":"Input.keyIsDown","link":"<a href=\"Input.html#.keyIsDown\">Input.keyIsDown &rtrif; undefined</a>"},{"title":"Input.keyWasPressed","link":"<a href=\"Input.html#.keyWasPressed\">Input.keyWasPressed &rtrif; undefined</a>"},{"title":"Input.keyWasReleased","link":"<a href=\"Input.html#.keyWasReleased\">Input.keyWasReleased &rtrif; undefined</a>"},{"title":"Medals","link":"<a href=\"Medals.html\">Medals</a>"},{"title":"Medals.medalsInit","link":"<a href=\"Medals.html#.medalsInit\">Medals.medalsInit &rtrif; undefined</a>"},{"title":"Random","link":"<a href=\"Random.html\">Random</a>"},{"title":"Random.rand","link":"<a href=\"Random.html#.rand\">Random.rand &rtrif; undefined</a>"},{"title":"Random.randColor","link":"<a href=\"Random.html#.randColor\">Random.randColor &rtrif; undefined</a>"},{"title":"Random.randInCircle","link":"<a href=\"Random.html#.randInCircle\">Random.randInCircle &rtrif; undefined</a>"},{"title":"Random.randInt","link":"<a href=\"Random.html#.randInt\">Random.randInt &rtrif; undefined</a>"},{"title":"Random.randSeeded","link":"<a href=\"Random.html#.randSeeded\">Random.randSeeded &rtrif; undefined</a>"},{"title":"Random.randSign","link":"<a href=\"Random.html#.randSign\">Random.randSign &rtrif; undefined</a>"},{"title":"Random.randVector","link":"<a href=\"Random.html#.randVector\">Random.randVector &rtrif; undefined</a>"},{"title":"Settings","link":"<a href=\"Settings.html\">Settings</a>"},{"title":"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":"engineCollideObjects","link":"<a href=\"global.html#engineCollideObjects\">engineCollideObjects</a>"},{"title":"engineInit","link":"<a href=\"global.html#engineInit\">engineInit</a>"},{"title":"engineName","link":"<a href=\"global.html#engineName\">engineName</a>"},{"title":"engineObjects","link":"<a href=\"global.html#engineObjects\">engineObjects</a>"},{"title":"engineObjectsCallback","link":"<a href=\"global.html#engineObjectsCallback\">engineObjectsCallback</a>"},{"title":"engineObjectsDestroy","link":"<a href=\"global.html#engineObjectsDestroy\">engineObjectsDestroy</a>"},{"title":"engineObjectsUpdate","link":"<a href=\"global.html#engineObjectsUpdate\">engineObjectsUpdate</a>"},{"title":"engineVersion","link":"<a href=\"global.html#engineVersion\">engineVersion</a>"},{"title":"FPS","link":"<a href=\"global.html#FPS\">FPS</a>"},{"title":"frame","link":"<a href=\"global.html#frame\">frame</a>"},{"title":"paused","link":"<a href=\"global.html#paused\">paused</a>"},{"title":"time","link":"<a href=\"global.html#time\">time</a>"},{"title":"timeDelta","link":"<a href=\"global.html#timeDelta\">timeDelta</a>"},{"title":"timeReal","link":"<a href=\"global.html#timeReal\">timeReal</a>"}];
4191
+ var options =
4192
+ setupSearch(list, options)
4193
+ </script>
4194
+
4195
+
4196
+
4197
+
4198
+
4199
+
4200
+
4201
+
4202
+
4203
+
4204
+
4205
+ </body>
4206
+
4207
+ </html>