khaotic-engine-Reborn/doxygen_docs/html/transform__component_8h_source.html

248 lines
29 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.12.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Khaotic Engine Reborn: enginecustom/src/inc/system/ecs/components/transform_component.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">Khaotic Engine Reborn
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.12.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search',true);
$(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('transform__component_8h_source.html',''); initResizable(true); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div class="header">
<div class="headertitle"><div class="title">transform_component.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#include &quot;../component.h&quot;</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="preprocessor">#include &lt;DirectXMath.h&gt;</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span> </div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="keyword">using namespace </span>DirectX;</div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span> </div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceecs.html">ecs</a> {</div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span> </div>
<div class="foldopen" id="foldopen00009" data-start="{" data-end="};">
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"><a class="line" href="classecs_1_1_transform_component.html"> 9</a></span><span class="keyword">class </span><a class="code hl_class" href="classecs_1_1_transform_component.html">TransformComponent</a> : <span class="keyword">public</span> <a class="code hl_class" href="classecs_1_1_component.html">Component</a> {</div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> </div>
<div class="foldopen" id="foldopen00016" data-start="{" data-end="}">
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"><a class="line" href="classecs_1_1_transform_component.html#a66dc72687d5a68513beb31b5ae28564f"> 16</a></span> <a class="code hl_function" href="classecs_1_1_transform_component.html#a66dc72687d5a68513beb31b5ae28564f">TransformComponent</a>() {</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> m_ScaleMatrix = XMMatrixIdentity();</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> m_RotateMatrix = XMMatrixIdentity();</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> m_TranslateMatrix = XMMatrixIdentity();</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> m_WorldMatrix = XMMatrixIdentity();</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> }</div>
</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> <a class="code hl_class" href="classecs_1_1_transform_component.html">~TransformComponent</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> </div>
<div class="foldopen" id="foldopen00029" data-start="{" data-end="}">
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="classecs_1_1_transform_component.html#ad825453d2a065640aa71618c00612249"> 29</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classecs_1_1_transform_component.html#ad825453d2a065640aa71618c00612249">SetPosition</a>(XMVECTOR position) {</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> XMFLOAT4X4 matrix;</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> XMStoreFloat4x4(&amp;matrix, m_TranslateMatrix);</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> matrix._41 = XMVectorGetX(position);</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> matrix._42 = XMVectorGetY(position);</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> matrix._43 = XMVectorGetZ(position);</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> m_TranslateMatrix = XMLoadFloat4x4(&amp;matrix);</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <a class="code hl_function" href="classecs_1_1_transform_component.html#a28d1fe5ba04d4ff6f9eb136ea656e35e">UpdateWorldMatrix</a>();</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> }</div>
</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> </div>
<div class="foldopen" id="foldopen00043" data-start="{" data-end="}">
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="classecs_1_1_transform_component.html#a67f155836cd31a336324bb1ea4b3741a"> 43</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classecs_1_1_transform_component.html#a67f155836cd31a336324bb1ea4b3741a">SetRotation</a>(XMVECTOR rotation) {</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> m_RotateMatrix = XMMatrixRotationRollPitchYawFromVector(rotation);</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <a class="code hl_function" href="classecs_1_1_transform_component.html#a28d1fe5ba04d4ff6f9eb136ea656e35e">UpdateWorldMatrix</a>();</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> }</div>
</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> </div>
<div class="foldopen" id="foldopen00052" data-start="{" data-end="}">
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"><a class="line" href="classecs_1_1_transform_component.html#ac98d110ada557fce53563306700516b7"> 52</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classecs_1_1_transform_component.html#ac98d110ada557fce53563306700516b7">SetScale</a>(XMVECTOR scale) {</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> XMFLOAT4X4 matrix;</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> XMStoreFloat4x4(&amp;matrix, m_ScaleMatrix);</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> matrix._11 = XMVectorGetX(scale);</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> matrix._22 = XMVectorGetY(scale);</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> matrix._33 = XMVectorGetZ(scale);</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> m_ScaleMatrix = XMLoadFloat4x4(&amp;matrix);</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <a class="code hl_function" href="classecs_1_1_transform_component.html#a28d1fe5ba04d4ff6f9eb136ea656e35e">UpdateWorldMatrix</a>();</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> }</div>
</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div>
<div class="foldopen" id="foldopen00066" data-start="{" data-end="}">
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"><a class="line" href="classecs_1_1_transform_component.html#a2936d569829c3c440d3bf5bde6353efe"> 66</a></span> XMVECTOR <a class="code hl_function" href="classecs_1_1_transform_component.html#a2936d569829c3c440d3bf5bde6353efe">GetPosition</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> XMFLOAT4X4 matrix;</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> XMStoreFloat4x4(&amp;matrix, m_TranslateMatrix);</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <span class="keywordflow">return</span> XMVectorSet(matrix._41, matrix._42, matrix._43, 0.0f);</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> }</div>
</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> </div>
<div class="foldopen" id="foldopen00076" data-start="{" data-end="}">
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"><a class="line" href="classecs_1_1_transform_component.html#a50130c13fb3f0d01a473eead605aaa40"> 76</a></span> XMVECTOR <a class="code hl_function" href="classecs_1_1_transform_component.html#a50130c13fb3f0d01a473eead605aaa40">GetRotation</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> XMFLOAT4X4 matrix;</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> XMStoreFloat4x4(&amp;matrix, m_RotateMatrix);</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <span class="keywordtype">float</span> rotationX = atan2f(matrix._32, matrix._33);</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <span class="keywordtype">float</span> rotationY = atan2f(-matrix._31, sqrtf(matrix._32 * matrix._32 + matrix._33 * matrix._33));</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <span class="keywordtype">float</span> rotationZ = atan2f(matrix._21, matrix._11);</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <span class="keywordflow">return</span> XMVectorSet(rotationX, rotationY, rotationZ, 0.0f);</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> }</div>
</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> </div>
<div class="foldopen" id="foldopen00089" data-start="{" data-end="}">
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"><a class="line" href="classecs_1_1_transform_component.html#af5cb7911c9deab8a49c9f8ae3ce099c5"> 89</a></span> XMVECTOR <a class="code hl_function" href="classecs_1_1_transform_component.html#af5cb7911c9deab8a49c9f8ae3ce099c5">GetScale</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> XMFLOAT4X4 matrix;</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> XMStoreFloat4x4(&amp;matrix, m_ScaleMatrix);</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> </div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> XMVECTOR row1 = XMLoadFloat3(<span class="keyword">reinterpret_cast&lt;</span>XMFLOAT3*<span class="keyword">&gt;</span>(&amp;matrix._11));</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> XMVECTOR row2 = XMLoadFloat3(<span class="keyword">reinterpret_cast&lt;</span>XMFLOAT3*<span class="keyword">&gt;</span>(&amp;matrix._21));</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> XMVECTOR row3 = XMLoadFloat3(<span class="keyword">reinterpret_cast&lt;</span>XMFLOAT3*<span class="keyword">&gt;</span>(&amp;matrix._31));</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> </div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> XMVECTOR scale = XMVectorSet(</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> XMVectorGetX(XMVector3Length(row1)),</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> XMVectorGetX(XMVector3Length(row2)),</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> XMVectorGetX(XMVector3Length(row3)),</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> 0.0f</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> );</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> </div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> <span class="keywordflow">return</span> scale;</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> }</div>
</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> </div>
<div class="foldopen" id="foldopen00111" data-start="{" data-end="}">
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"><a class="line" href="classecs_1_1_transform_component.html#a28d1fe5ba04d4ff6f9eb136ea656e35e"> 111</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classecs_1_1_transform_component.html#a28d1fe5ba04d4ff6f9eb136ea656e35e">UpdateWorldMatrix</a>() {</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> m_WorldMatrix = m_ScaleMatrix * m_RotateMatrix * m_TranslateMatrix;</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> }</div>
</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> </div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"><a class="line" href="classecs_1_1_transform_component.html#aca8c9c9d0266636b7431696a6905b419"> 119</a></span> XMMATRIX <a class="code hl_function" href="classecs_1_1_transform_component.html#aca8c9c9d0266636b7431696a6905b419">GetScaleMatrix</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_ScaleMatrix; }</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"><a class="line" href="classecs_1_1_transform_component.html#aedc64114b30f9aa629caf6548bfc3c07"> 124</a></span> XMMATRIX <a class="code hl_function" href="classecs_1_1_transform_component.html#aedc64114b30f9aa629caf6548bfc3c07">GetRotateMatrix</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_RotateMatrix; }</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"><a class="line" href="classecs_1_1_transform_component.html#a2c5c5b5d1081b942ab7d5776d4418044"> 129</a></span> XMMATRIX <a class="code hl_function" href="classecs_1_1_transform_component.html#a2c5c5b5d1081b942ab7d5776d4418044">GetTranslateMatrix</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_TranslateMatrix; }</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"><a class="line" href="classecs_1_1_transform_component.html#a0d9f3426b6952e0468705820835ac331"> 135</a></span> XMMATRIX <a class="code hl_function" href="classecs_1_1_transform_component.html#a0d9f3426b6952e0468705820835ac331">GetWorldMatrix</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_WorldMatrix; }</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> </div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"><a class="line" href="classecs_1_1_transform_component.html#aa1d23303805dd960452dd16a5c077835"> 142</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classecs_1_1_transform_component.html#aa1d23303805dd960452dd16a5c077835">SetScaleMatrix</a>(XMMATRIX matrix) { m_ScaleMatrix = matrix; <a class="code hl_function" href="classecs_1_1_transform_component.html#a28d1fe5ba04d4ff6f9eb136ea656e35e">UpdateWorldMatrix</a>(); }</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"><a class="line" href="classecs_1_1_transform_component.html#a5d868ff759cb7709328938681d62f913"> 148</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classecs_1_1_transform_component.html#a5d868ff759cb7709328938681d62f913">SetRotateMatrix</a>(XMMATRIX matrix) { m_RotateMatrix = matrix; <a class="code hl_function" href="classecs_1_1_transform_component.html#a28d1fe5ba04d4ff6f9eb136ea656e35e">UpdateWorldMatrix</a>(); }</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"><a class="line" href="classecs_1_1_transform_component.html#ae6c18c31f088f065f059b490773b3a08"> 154</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="classecs_1_1_transform_component.html#ae6c18c31f088f065f059b490773b3a08">SetTranslateMatrix</a>(XMMATRIX matrix) { m_TranslateMatrix = matrix; <a class="code hl_function" href="classecs_1_1_transform_component.html#a28d1fe5ba04d4ff6f9eb136ea656e35e">UpdateWorldMatrix</a>(); }</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> </div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> XMMATRIX m_ScaleMatrix;</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> XMMATRIX m_RotateMatrix;</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> XMMATRIX m_TranslateMatrix;</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> XMMATRIX m_WorldMatrix;</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span>};</div>
</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> </div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span>} <span class="comment">// namespace ecs</span></div>
<div class="ttc" id="aclassecs_1_1_component_html"><div class="ttname"><a href="classecs_1_1_component.html">ecs::Component</a></div><div class="ttdef"><b>Definition</b> <a href="component_8h_source.html#l00012">component.h:12</a></div></div>
<div class="ttc" id="aclassecs_1_1_transform_component_html"><div class="ttname"><a href="classecs_1_1_transform_component.html">ecs::TransformComponent</a></div><div class="ttdef"><b>Definition</b> <a href="#l00009">transform_component.h:9</a></div></div>
<div class="ttc" id="aclassecs_1_1_transform_component_html_a0d9f3426b6952e0468705820835ac331"><div class="ttname"><a href="classecs_1_1_transform_component.html#a0d9f3426b6952e0468705820835ac331">ecs::TransformComponent::GetWorldMatrix</a></div><div class="ttdeci">XMMATRIX GetWorldMatrix() const</div><div class="ttdef"><b>Definition</b> <a href="#l00135">transform_component.h:135</a></div></div>
<div class="ttc" id="aclassecs_1_1_transform_component_html_a28d1fe5ba04d4ff6f9eb136ea656e35e"><div class="ttname"><a href="classecs_1_1_transform_component.html#a28d1fe5ba04d4ff6f9eb136ea656e35e">ecs::TransformComponent::UpdateWorldMatrix</a></div><div class="ttdeci">void UpdateWorldMatrix()</div><div class="ttdef"><b>Definition</b> <a href="#l00111">transform_component.h:111</a></div></div>
<div class="ttc" id="aclassecs_1_1_transform_component_html_a2936d569829c3c440d3bf5bde6353efe"><div class="ttname"><a href="classecs_1_1_transform_component.html#a2936d569829c3c440d3bf5bde6353efe">ecs::TransformComponent::GetPosition</a></div><div class="ttdeci">XMVECTOR GetPosition() const</div><div class="ttdef"><b>Definition</b> <a href="#l00066">transform_component.h:66</a></div></div>
<div class="ttc" id="aclassecs_1_1_transform_component_html_a2c5c5b5d1081b942ab7d5776d4418044"><div class="ttname"><a href="classecs_1_1_transform_component.html#a2c5c5b5d1081b942ab7d5776d4418044">ecs::TransformComponent::GetTranslateMatrix</a></div><div class="ttdeci">XMMATRIX GetTranslateMatrix() const</div><div class="ttdef"><b>Definition</b> <a href="#l00129">transform_component.h:129</a></div></div>
<div class="ttc" id="aclassecs_1_1_transform_component_html_a50130c13fb3f0d01a473eead605aaa40"><div class="ttname"><a href="classecs_1_1_transform_component.html#a50130c13fb3f0d01a473eead605aaa40">ecs::TransformComponent::GetRotation</a></div><div class="ttdeci">XMVECTOR GetRotation() const</div><div class="ttdef"><b>Definition</b> <a href="#l00076">transform_component.h:76</a></div></div>
<div class="ttc" id="aclassecs_1_1_transform_component_html_a5d868ff759cb7709328938681d62f913"><div class="ttname"><a href="classecs_1_1_transform_component.html#a5d868ff759cb7709328938681d62f913">ecs::TransformComponent::SetRotateMatrix</a></div><div class="ttdeci">void SetRotateMatrix(XMMATRIX matrix)</div><div class="ttdef"><b>Definition</b> <a href="#l00148">transform_component.h:148</a></div></div>
<div class="ttc" id="aclassecs_1_1_transform_component_html_a66dc72687d5a68513beb31b5ae28564f"><div class="ttname"><a href="classecs_1_1_transform_component.html#a66dc72687d5a68513beb31b5ae28564f">ecs::TransformComponent::TransformComponent</a></div><div class="ttdeci">TransformComponent()</div><div class="ttdef"><b>Definition</b> <a href="#l00016">transform_component.h:16</a></div></div>
<div class="ttc" id="aclassecs_1_1_transform_component_html_a67f155836cd31a336324bb1ea4b3741a"><div class="ttname"><a href="classecs_1_1_transform_component.html#a67f155836cd31a336324bb1ea4b3741a">ecs::TransformComponent::SetRotation</a></div><div class="ttdeci">void SetRotation(XMVECTOR rotation)</div><div class="ttdef"><b>Definition</b> <a href="#l00043">transform_component.h:43</a></div></div>
<div class="ttc" id="aclassecs_1_1_transform_component_html_aa1d23303805dd960452dd16a5c077835"><div class="ttname"><a href="classecs_1_1_transform_component.html#aa1d23303805dd960452dd16a5c077835">ecs::TransformComponent::SetScaleMatrix</a></div><div class="ttdeci">void SetScaleMatrix(XMMATRIX matrix)</div><div class="ttdef"><b>Definition</b> <a href="#l00142">transform_component.h:142</a></div></div>
<div class="ttc" id="aclassecs_1_1_transform_component_html_ac98d110ada557fce53563306700516b7"><div class="ttname"><a href="classecs_1_1_transform_component.html#ac98d110ada557fce53563306700516b7">ecs::TransformComponent::SetScale</a></div><div class="ttdeci">void SetScale(XMVECTOR scale)</div><div class="ttdef"><b>Definition</b> <a href="#l00052">transform_component.h:52</a></div></div>
<div class="ttc" id="aclassecs_1_1_transform_component_html_aca8c9c9d0266636b7431696a6905b419"><div class="ttname"><a href="classecs_1_1_transform_component.html#aca8c9c9d0266636b7431696a6905b419">ecs::TransformComponent::GetScaleMatrix</a></div><div class="ttdeci">XMMATRIX GetScaleMatrix() const</div><div class="ttdef"><b>Definition</b> <a href="#l00119">transform_component.h:119</a></div></div>
<div class="ttc" id="aclassecs_1_1_transform_component_html_ad825453d2a065640aa71618c00612249"><div class="ttname"><a href="classecs_1_1_transform_component.html#ad825453d2a065640aa71618c00612249">ecs::TransformComponent::SetPosition</a></div><div class="ttdeci">void SetPosition(XMVECTOR position)</div><div class="ttdef"><b>Definition</b> <a href="#l00029">transform_component.h:29</a></div></div>
<div class="ttc" id="aclassecs_1_1_transform_component_html_ae6c18c31f088f065f059b490773b3a08"><div class="ttname"><a href="classecs_1_1_transform_component.html#ae6c18c31f088f065f059b490773b3a08">ecs::TransformComponent::SetTranslateMatrix</a></div><div class="ttdeci">void SetTranslateMatrix(XMMATRIX matrix)</div><div class="ttdef"><b>Definition</b> <a href="#l00154">transform_component.h:154</a></div></div>
<div class="ttc" id="aclassecs_1_1_transform_component_html_aedc64114b30f9aa629caf6548bfc3c07"><div class="ttname"><a href="classecs_1_1_transform_component.html#aedc64114b30f9aa629caf6548bfc3c07">ecs::TransformComponent::GetRotateMatrix</a></div><div class="ttdeci">XMMATRIX GetRotateMatrix() const</div><div class="ttdef"><b>Definition</b> <a href="#l00124">transform_component.h:124</a></div></div>
<div class="ttc" id="aclassecs_1_1_transform_component_html_af5cb7911c9deab8a49c9f8ae3ce099c5"><div class="ttname"><a href="classecs_1_1_transform_component.html#af5cb7911c9deab8a49c9f8ae3ce099c5">ecs::TransformComponent::GetScale</a></div><div class="ttdeci">XMVECTOR GetScale() const</div><div class="ttdef"><b>Definition</b> <a href="#l00089">transform_component.h:89</a></div></div>
<div class="ttc" id="anamespaceecs_html"><div class="ttname"><a href="namespaceecs.html">ecs</a></div><div class="ttdef"><b>Definition</b> <a href="component_8h_source.html#l00009">component.h:9</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_f4a881938f04d9c04de7741e8b9c813b.html">enginecustom</a></li><li class="navelem"><a class="el" href="dir_4288ac3ffb2af5f572fd6fdc04a1176b.html">src</a></li><li class="navelem"><a class="el" href="dir_fa382d1760f3c58d964524ef7c4d69c1.html">inc</a></li><li class="navelem"><a class="el" href="dir_31afb4cde3071d47ca274e3f4ae3badb.html">system</a></li><li class="navelem"><a class="el" href="dir_7ee6018c7c0b4a651bf0164a61d07aa3.html">ecs</a></li><li class="navelem"><a class="el" href="dir_3aed71f4d8c8b4314dfb8ee0eb59e8a7.html">components</a></li><li class="navelem"><b>transform_component.h</b></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0 </li>
</ul>
</div>
</body>
</html>