UNPKG

duckengine

Version:
90 lines 84.6 kB
<!DOCTYPE html><html class="default no-js"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Camera | DuckEngine - v2.1.0</title><meta name="description" content="Documentation for DuckEngine - v2.1.0"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">DuckEngine - v2.1.0</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../modules.html">DuckEngine - v2.1.0</a></li><li><a href="../modules/core_camera_camera.html">core/camera/camera</a></li><li><a href="core_camera_camera.Camera.html">Camera</a></li></ul><h1>Class Camera</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>classdesc</dt><dd><p>Creates a DuckEngine Camera</p> </dd><dt>description</dt><dd><p>The Camera Class. Creates and uses a viewport that acts like a camera</p> </dd><dt>since</dt><dd><p>1.0.0-beta</p> </dd></dl></div></section><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">Camera</span></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Constructors</h3><ul class="tsd-index-list"><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="core_camera_camera.Camera.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section "><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href="core_camera_camera.Camera.html#aspectRatio" class="tsd-kind-icon">aspect<wbr/>Ratio</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href="core_camera_camera.Camera.html#bounds" class="tsd-kind-icon">bounds</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="core_camera_camera.Camera.html#distance" class="tsd-kind-icon">distance</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="core_camera_camera.Camera.html#fieldOfView" class="tsd-kind-icon">field<wbr/>Of<wbr/>View</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="core_camera_camera.Camera.html#following" class="tsd-kind-icon">following</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="core_camera_camera.Camera.html#game" class="tsd-kind-icon">game</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="core_camera_camera.Camera.html#isMain" class="tsd-kind-icon">is<wbr/>Main</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href="core_camera_camera.Camera.html#lerpX" class="tsd-kind-icon">lerpX</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href="core_camera_camera.Camera.html#lerpY" class="tsd-kind-icon">lerpY</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href="core_camera_camera.Camera.html#lookAt" class="tsd-kind-icon">look<wbr/>At</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="core_camera_camera.Camera.html#scene" class="tsd-kind-icon">scene</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="core_camera_camera.Camera.html#viewport" class="tsd-kind-icon">viewport</a></li></ul></section><section class="tsd-index-section "><h3>Accessors</h3><ul class="tsd-index-list"><li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="core_camera_camera.Camera.html#defaultFOV" class="tsd-kind-icon">defaultFOV</a></li><li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="core_camera_camera.Camera.html#defaultZoom" class="tsd-kind-icon">default<wbr/>Zoom</a></li></ul></section><section class="tsd-index-section "><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a href="core_camera_camera.Camera.html#applyScale" class="tsd-kind-icon">apply<wbr/>Scale</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a href="core_camera_camera.Camera.html#applyTranslation" class="tsd-kind-icon">apply<wbr/>Translation</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="core_camera_camera.Camera.html#autoCull" class="tsd-kind-icon">auto<wbr/>Cull</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="core_camera_camera.Camera.html#begin" class="tsd-kind-icon">begin</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="core_camera_camera.Camera.html#cull" class="tsd-kind-icon">cull</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="core_camera_camera.Camera.html#end" class="tsd-kind-icon">end</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="core_camera_camera.Camera.html#moveTo" class="tsd-kind-icon">move<wbr/>To</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="core_camera_camera.Camera.html#resetFOV" class="tsd-kind-icon">resetFOV</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="core_camera_camera.Camera.html#resetZoom" class="tsd-kind-icon">reset<wbr/>Zoom</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="core_camera_camera.Camera.html#screenToWorld" class="tsd-kind-icon">screen<wbr/>To<wbr/>World</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="core_camera_camera.Camera.html#setBounds" class="tsd-kind-icon">set<wbr/>Bounds</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="core_camera_camera.Camera.html#setFOV" class="tsd-kind-icon">setFOV</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="core_camera_camera.Camera.html#setFOVSmooth" class="tsd-kind-icon">setFOVSmooth</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="core_camera_camera.Camera.html#setZoom" class="tsd-kind-icon">set<wbr/>Zoom</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="core_camera_camera.Camera.html#setZoomSmooth" class="tsd-kind-icon">set<wbr/>Zoom<wbr/>Smooth</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="core_camera_camera.Camera.html#shake" class="tsd-kind-icon">shake</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="core_camera_camera.Camera.html#startFollow" class="tsd-kind-icon">start<wbr/>Follow</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="core_camera_camera.Camera.html#stopFollow" class="tsd-kind-icon">stop<wbr/>Follow</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a href="core_camera_camera.Camera.html#updateViewport" class="tsd-kind-icon">update<wbr/>Viewport</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="core_camera_camera.Camera.html#worldToScreen" class="tsd-kind-icon">world<wbr/>To<wbr/>Screen</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class"><a id="constructor" class="tsd-anchor"></a><h3>constructor</h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">new <wbr/>Camera<span class="tsd-signature-symbol">(</span>game<span class="tsd-signature-symbol">: </span><a href="core_game.Game.html" class="tsd-signature-type" data-tsd-kind="Class">Game</a>, scene<span class="tsd-signature-symbol">: </span><a href="core_scene.Scene.html" class="tsd-signature-type" data-tsd-kind="Class">Scene</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="core_camera_camera.Camera.html" class="tsd-signature-type" data-tsd-kind="Class">Camera</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L111">core/camera/camera.ts:111</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>description</dt><dd><p>Creates a Camera instance.</p> </dd><dt>since</dt><dd><p>1.0.0-beta</p> </dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>game: <a href="core_game.Game.html" class="tsd-signature-type" data-tsd-kind="Class">Game</a></h5><div class="tsd-comment tsd-typography"><div class="lead"> <p>Game instance</p> </div></div></li><li><h5>scene: <a href="core_scene.Scene.html" class="tsd-signature-type" data-tsd-kind="Class">Scene</a></h5><div class="tsd-comment tsd-typography"><div class="lead"> <p>Scene instance</p> </div></div></li></ul><h4 class="tsd-returns-title">Returns <a href="core_camera_camera.Camera.html" class="tsd-signature-type" data-tsd-kind="Class">Camera</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a id="aspectRatio" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagProtected">Protected</span> aspect<wbr/>Ratio</h3><div class="tsd-signature tsd-kind-icon">aspect<wbr/>Ratio<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L78">core/camera/camera.ts:78</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a id="bounds" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagProtected">Protected</span> bounds</h3><div class="tsd-signature tsd-kind-icon">bounds<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">{ </span>h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>position<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">; </span>w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L88">core/camera/camera.ts:88</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="distance" class="tsd-anchor"></a><h3>distance</h3><div class="tsd-signature tsd-kind-icon">distance<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L62">core/camera/camera.ts:62</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>Camera</p> </dd><dt>description</dt><dd><p>The Camera&#39;s current zoom</p> </dd><dt>since</dt><dd><p>2.1.0</p> </dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="fieldOfView" class="tsd-anchor"></a><h3>field<wbr/>Of<wbr/>View</h3><div class="tsd-signature tsd-kind-icon">field<wbr/>Of<wbr/>View<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L54">core/camera/camera.ts:54</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>Camera</p> </dd><dt>description</dt><dd><p>The Camera&#39;s current FOV</p> </dd><dt>since</dt><dd><p>2.1.0</p> </dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="following" class="tsd-anchor"></a><h3>following</h3><div class="tsd-signature tsd-kind-icon">following<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../modules/index.Duck.html" class="tsd-signature-type" data-tsd-kind="Namespace">Duck</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.TypeClasses.html" class="tsd-signature-type" data-tsd-kind="Namespace">TypeClasses</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.TypeClasses.GameObjects.html" class="tsd-signature-type" data-tsd-kind="Namespace">GameObjects</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.TypeClasses.GameObjects.html#GameObject" class="tsd-signature-type" data-tsd-kind="Type alias">GameObject</a><span class="tsd-signature-symbol">&lt;</span><a href="../modules/index.Duck.html" class="tsd-signature-type" data-tsd-kind="Namespace">Duck</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.Types.html" class="tsd-signature-type" data-tsd-kind="Namespace">Types</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.Types.Texture.html" class="tsd-signature-type" data-tsd-kind="Namespace">Texture</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.Types.Texture.html#Type" class="tsd-signature-type" data-tsd-kind="Type alias">Type</a><span class="tsd-signature-symbol">&gt;</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L98">core/camera/camera.ts:98</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>Camera</p> </dd><dt>description</dt><dd><p>A gameobject that the Camera is currently following</p> </dd><dt>since</dt><dd></dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="game" class="tsd-anchor"></a><h3>game</h3><div class="tsd-signature tsd-kind-icon">game<span class="tsd-signature-symbol">:</span> <a href="core_game.Game.html" class="tsd-signature-type" data-tsd-kind="Class">Game</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L37">core/camera/camera.ts:37</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>Camera</p> </dd><dt>description</dt><dd><p>Game instance</p> </dd><dt>since</dt><dd><p>1.0.0-beta</p> </dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="isMain" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagReadonly">Readonly</span> is<wbr/>Main</h3><div class="tsd-signature tsd-kind-icon">is<wbr/>Main<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L86">core/camera/camera.ts:86</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>Camera</p> </dd><dt>description</dt><dd><p>Determines if the camera is a main camera in the attached scene. Must be added by Scene.mainCamera</p> </dd><dt>since</dt><dd><p>1.0.0-beta</p> </dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a id="lerpX" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagProtected">Protected</span> lerpX</h3><div class="tsd-signature tsd-kind-icon">lerpX<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 1</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L101">core/camera/camera.ts:101</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a id="lerpY" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagProtected">Protected</span> lerpY</h3><div class="tsd-signature tsd-kind-icon">lerpY<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 1</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L102">core/camera/camera.ts:102</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a id="lookAt" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagProtected">Protected</span> look<wbr/>At</h3><div class="tsd-signature tsd-kind-icon">look<wbr/>At<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L46">core/camera/camera.ts:46</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="scene" class="tsd-anchor"></a><h3>scene</h3><div class="tsd-signature tsd-kind-icon">scene<span class="tsd-signature-symbol">:</span> <a href="core_scene.Scene.html" class="tsd-signature-type" data-tsd-kind="Class">Scene</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L45">core/camera/camera.ts:45</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>Camera</p> </dd><dt>description</dt><dd><p>Scene instance</p> </dd><dt>since</dt><dd><p>2.0.0</p> </dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="viewport" class="tsd-anchor"></a><h3>viewport</h3><div class="tsd-signature tsd-kind-icon">viewport<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>bottom<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>left<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>right<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>scale<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span>top<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L69">core/camera/camera.ts:69</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>Camera</p> </dd><dt>description</dt><dd><p>Camera&#39;s viewport, has info about the viewport</p> </dd><dt>since</dt><dd><p>1.0.0-beta</p> </dd></dl></div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>bottom<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>left<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>right<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>scale<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h5></li><li class="tsd-parameter"><h5>top<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Accessors</h2><section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class"><a id="defaultFOV" class="tsd-anchor"></a><h3>defaultFOV</h3><ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> defaultFOV<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L738">core/camera/camera.ts:738</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>Camera</p> </dd><dt>description</dt><dd><p>Returns the default FOV</p> </dd><dt>since</dt><dd><p>1.0.0</p> </dd></dl></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class"><a id="defaultZoom" class="tsd-anchor"></a><h3>default<wbr/>Zoom</h3><ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> defaultZoom<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L720">core/camera/camera.ts:720</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>Camera</p> </dd><dt>description</dt><dd><p>Returns the default zoom, also uses DPR scaling if enabled</p> </dd><dt>since</dt><dd><p>1.0.0</p> </dd></dl></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a id="applyScale" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagProtected">Protected</span> apply<wbr/>Scale</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected"><li class="tsd-signature tsd-kind-icon">apply<wbr/>Scale<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L232">core/camera/camera.ts:232</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a id="applyTranslation" class="tsd-anchor"></a><h3><span class="tsd-flag ts-flagProtected">Protected</span> apply<wbr/>Translation</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected"><li class="tsd-signature tsd-kind-icon">apply<wbr/>Translation<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L239">core/camera/camera.ts:239</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="autoCull" class="tsd-anchor"></a><h3>auto<wbr/>Cull</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">auto<wbr/>Cull<span class="tsd-signature-symbol">(</span>options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/index.Duck.Types.Camera.CullingOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">CullingOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L614">core/camera/camera.ts:614</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>Camera</p> </dd><dt>description</dt><dd><p>A form of Frustum Culling that gets all objects visible to the player by the viewport&#39;s width and height and culls those objects and does not render objects outside/not-visible to the player/camera</p> </dd><dt>since</dt><dd><p>2.0.0</p> </dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> options: <a href="../interfaces/index.Duck.Types.Camera.CullingOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">CullingOptions</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="begin" class="tsd-anchor"></a><h3>begin</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">begin<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L146">core/camera/camera.ts:146</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>Camera</p> </dd><dt>description</dt><dd><p>Begins camera path</p> <p>DO NOT CALL MANUALLY, CALLED IN GAME -&gt; SCENE LOOP AUTOMATICALLY</p> </dd><dt>since</dt><dd><p>1.0.0-beta</p> </dd></dl></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="cull" class="tsd-anchor"></a><h3>cull</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">cull<span class="tsd-signature-symbol">(</span>renderableObjects<span class="tsd-signature-symbol">: </span><a href="../interfaces/index.Duck.Types.Renderable.html" class="tsd-signature-type" data-tsd-kind="Interface">Renderable</a><span class="tsd-signature-symbol">[]</span>, options<span class="tsd-signature-symbol">?: </span><a href="../interfaces/index.Duck.Types.Camera.CullingOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">CullingOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L542">core/camera/camera.ts:542</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>Camera</p> </dd><dt>description</dt><dd><p>Culls/Renders objects that are passed and does not render other object that are not passed</p> </dd><dt>since</dt><dd><p>2.0.0</p> </dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>renderableObjects: <a href="../interfaces/index.Duck.Types.Renderable.html" class="tsd-signature-type" data-tsd-kind="Interface">Renderable</a><span class="tsd-signature-symbol">[]</span></h5><div class="tsd-comment tsd-typography"><div class="lead"> <p>Objects that should be culled/rendered</p> </div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> options: <a href="../interfaces/index.Duck.Types.Camera.CullingOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">CullingOptions</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="end" class="tsd-anchor"></a><h3>end</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">end<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L228">core/camera/camera.ts:228</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>Camera</p> </dd><dt>description</dt><dd><p>Ends camera path</p> <p>DO NOT CALL MANUALLY, CALLED IN GAME -&gt; SCENE LOOP AUTOMATICALLY</p> </dd><dt>since</dt><dd><p>1.0.0-beta</p> </dd></dl></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="moveTo" class="tsd-anchor"></a><h3>move<wbr/>To</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">move<wbr/>To<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L338">core/camera/camera.ts:338</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>Camera</p> </dd><dt>description</dt><dd><p>Moves the camera to a position</p> </dd><dt>since</dt><dd><p>1.0.0-beta</p> </dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>x: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead"> <p>X position</p> </div></div></li><li><h5>y: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead"> <p>Y position</p> </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="resetFOV" class="tsd-anchor"></a><h3>resetFOV</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">resetFOV<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L467">core/camera/camera.ts:467</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>Camera</p> </dd><dt>description</dt><dd><p>Resets the FOV to the default value</p> </dd><dt>since</dt><dd><p>1.0.0-beta</p> </dd></dl></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="resetZoom" class="tsd-anchor"></a><h3>reset<wbr/>Zoom</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">reset<wbr/>Zoom<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L476">core/camera/camera.ts:476</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>Camera</p> </dd><dt>description</dt><dd><p>Resets the Zoom to the default value</p> </dd><dt>since</dt><dd><p>1.0.0-beta</p> </dd></dl></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="screenToWorld" class="tsd-anchor"></a><h3>screen<wbr/>To<wbr/>World</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">screen<wbr/>To<wbr/>World<span class="tsd-signature-symbol">(</span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, obj<span class="tsd-signature-symbol">: </span><a href="../modules/index.Duck.html" class="tsd-signature-type" data-tsd-kind="Namespace">Duck</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.TypeClasses.html" class="tsd-signature-type" data-tsd-kind="Namespace">TypeClasses</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.TypeClasses.GameObjects.html" class="tsd-signature-type" data-tsd-kind="Namespace">GameObjects</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.TypeClasses.GameObjects.html#GameObject" class="tsd-signature-type" data-tsd-kind="Type alias">GameObject</a><span class="tsd-signature-symbol">&lt;</span><a href="../modules/index.Duck.html" class="tsd-signature-type" data-tsd-kind="Namespace">Duck</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.Types.html" class="tsd-signature-type" data-tsd-kind="Namespace">Types</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.Types.Texture.html" class="tsd-signature-type" data-tsd-kind="Namespace">Texture</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.Types.Texture.html#Type" class="tsd-signature-type" data-tsd-kind="Type alias">Type</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../modules/index.Duck.html" class="tsd-signature-type" data-tsd-kind="Namespace">Duck</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.TypeClasses.html" class="tsd-signature-type" data-tsd-kind="Namespace">TypeClasses</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.TypeClasses.GameObjects.html" class="tsd-signature-type" data-tsd-kind="Namespace">GameObjects</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.TypeClasses.GameObjects.html#GameObject" class="tsd-signature-type" data-tsd-kind="Type alias">GameObject</a><span class="tsd-signature-symbol">&lt;</span><a href="../modules/index.Duck.html" class="tsd-signature-type" data-tsd-kind="Namespace">Duck</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.Types.html" class="tsd-signature-type" data-tsd-kind="Namespace">Types</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.Types.Texture.html" class="tsd-signature-type" data-tsd-kind="Namespace">Texture</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.Types.Texture.html#Type" class="tsd-signature-type" data-tsd-kind="Type alias">Type</a><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L379">core/camera/camera.ts:379</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>Camera</p> </dd><dt>description</dt><dd><p>Transforms a coordinate pair from screen coordinates (relative to the canvas) into world coordinates</p> </dd><dt>since</dt><dd><p>1.0.0-beta</p> </dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>x: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead"> <p>X position</p> </div></div></li><li><h5>y: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead"> <p>Y position</p> </div></div></li><li><h5>obj: <a href="../modules/index.Duck.html" class="tsd-signature-type" data-tsd-kind="Namespace">Duck</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.TypeClasses.html" class="tsd-signature-type" data-tsd-kind="Namespace">TypeClasses</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.TypeClasses.GameObjects.html" class="tsd-signature-type" data-tsd-kind="Namespace">GameObjects</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.TypeClasses.GameObjects.html#GameObject" class="tsd-signature-type" data-tsd-kind="Type alias">GameObject</a><span class="tsd-signature-symbol">&lt;</span><a href="../modules/index.Duck.html" class="tsd-signature-type" data-tsd-kind="Namespace">Duck</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.Types.html" class="tsd-signature-type" data-tsd-kind="Namespace">Types</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.Types.Texture.html" class="tsd-signature-type" data-tsd-kind="Namespace">Texture</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.Types.Texture.html#Type" class="tsd-signature-type" data-tsd-kind="Type alias">Type</a><span class="tsd-signature-symbol">&gt;</span></h5><div class="tsd-comment tsd-typography"><div class="lead"> <p>GameObject</p> </div></div></li></ul><h4 class="tsd-returns-title">Returns <a href="../modules/index.Duck.html" class="tsd-signature-type" data-tsd-kind="Namespace">Duck</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.TypeClasses.html" class="tsd-signature-type" data-tsd-kind="Namespace">TypeClasses</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.TypeClasses.GameObjects.html" class="tsd-signature-type" data-tsd-kind="Namespace">GameObjects</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.TypeClasses.GameObjects.html#GameObject" class="tsd-signature-type" data-tsd-kind="Type alias">GameObject</a><span class="tsd-signature-symbol">&lt;</span><a href="../modules/index.Duck.html" class="tsd-signature-type" data-tsd-kind="Namespace">Duck</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.Types.html" class="tsd-signature-type" data-tsd-kind="Namespace">Types</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.Types.Texture.html" class="tsd-signature-type" data-tsd-kind="Namespace">Texture</a><span class="tsd-signature-symbol">.</span><a href="../modules/index.Duck.Types.Texture.html#Type" class="tsd-signature-type" data-tsd-kind="Type alias">Type</a><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="setBounds" class="tsd-anchor"></a><h3>set<wbr/>Bounds</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">set<wbr/>Bounds<span class="tsd-signature-symbol">(</span>bounds<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>position<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">; </span>w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L486">core/camera/camera.ts:486</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>Camera</p> </dd><dt>description</dt><dd><p>Bounds of the Camera, an area the camera can be in</p> </dd><dt>since</dt><dd><p>1.0.0-beta</p> </dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>bounds: <span class="tsd-signature-symbol">{ </span>h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>position<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">; </span>w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span></h5><ul class="tsd-parameters"><li class="tsd-parameter"><h5>h<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>position<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span></h5><ul class="tsd-parameters"><li class="tsd-parameter"><h5>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></li><li class="tsd-parameter"><h5>w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="setFOV" class="tsd-anchor"></a><h3>setFOV</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">setFOV<span class="tsd-signature-symbol">(</span>f<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L414">core/camera/camera.ts:414</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>Camera</p> </dd><dt>description</dt><dd><p>Sets the FOV</p> </dd><dt>since</dt><dd><p>1.0.0-beta</p> </dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>f: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead"> <p>FOV value</p> </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="setFOVSmooth" class="tsd-anchor"></a><h3>setFOVSmooth</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">setFOVSmooth<span class="tsd-signature-symbol">(</span>intervalMS<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, smoothValue<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, f<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ksplatdev/DuckEngine/blob/717462d/src/core/camera/camera.ts#L426">core/camera/camera.ts:426</a></li></ul></aside><div class="tsd-comment tsd-typography"><dl class="tsd-comment-tags"><dt>memberof</dt><dd><p>Camera</p> </dd><dt>description</dt><dd><p>Sets the FOV smoothly</p> </dd><dt>since</dt><dd><p>1.0.0-beta</p> </dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>intervalMS: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead"> <p>How often FOV is modified by smoothValue</p> </div></div></li><li><h5>smoothValue: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead"> <p>The number that is added to FOV on an interval</p> </div></div></li><li><h5>f: <span class="tsd-sig