<ahref="a00596.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> </div><divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> <spanclass="preprocessor">#pragma once</span></div><divclass="line"><aname="l00017"></a><spanclass="lineno"> 17</span> </div><divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> <spanclass="comment">// Dependency:</span></div><divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> <spanclass="preprocessor">#include "../glm.hpp"</span></div><divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span> <spanclass="preprocessor">#include "../gtc/matrix_transform.hpp"</span></div><divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span> </div><divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span> <spanclass="preprocessor">#ifndef GLM_ENABLE_EXPERIMENTAL</span></div><divclass="line"><aname="l00023"></a><spanclass="lineno"> 23</span> <spanclass="preprocessor"># error "GLM: GLM_GTX_transform is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."</span></div><divclass="line"><aname="l00024"></a><spanclass="lineno"> 24</span> <spanclass="preprocessor">#endif</span></div><divclass="line"><aname="l00025"></a><spanclass="lineno"> 25</span> </div><divclass="line"><aname="l00026"></a><spanclass="lineno"> 26</span> <spanclass="preprocessor">#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)</span></div><divclass="line"><aname="l00027"></a><spanclass="lineno"> 27</span> <spanclass="preprocessor"># pragma message("GLM: GLM_GTX_transform extension included")</span></div><divclass="line"><aname="l00028"></a><spanclass="lineno"> 28</span> <spanclass="preprocessor">#endif</span></div><divclass="line"><aname="l00029"></a><spanclass="lineno"> 29</span> </div><divclass="line"><aname="l00030"></a><spanclass="lineno"> 30</span> <spanclass="keyword">namespace </span><aclass="code"href="a00792.html">glm</a></div><divclass="line"><aname="l00031"></a><spanclass="lineno"> 31</span> {</div><divclass="line"><aname="l00034"></a><spanclass="lineno"> 34</span> </div><divclass="line"><aname="l00038"></a><spanclass="lineno"> 38</span> <spanclass="keyword">template</span><<spanclass="keyword">typename</span> T, qualifier Q></div><divclass="line"><aname="l00039"></a><spanclass="lineno"> 39</span>  GLM_FUNC_DECL mat<4, 4, T, Q><aclass="code"href="a00779.html#ga309a30e652e58c396e2c3d4db3ee7658">translate</a>(</div><divclass="line"><aname="l00040"></a><spanclass="lineno"> 40</span>  vec<3, T, Q><spanclass="keyword">const</span>& v);</div><divclass="line"><aname="l00041"></a><spanclass="lineno"> 41</span> </div><divclass="line"><aname="l00045"></a><spanclass="lineno"> 45</span> <spanclass="keyword">template</span><<spanclass="keyword">typename</span> T, qualifier Q></div><divclass="line"><aname="l00046"></a><spanclass="lineno"> 46</span>  GLM_FUNC_DECL mat<4, 4, T, Q><aclass="code"href="a00779.html#gaf599be4c0e9d99be1f9cddba79b6018b">rotate</a>(</div><divclass="line"><aname="l00047"></a><spanclass="lineno"> 47</span>  T <aclass="code"href="a00678.html#ga8aa248b31d5ade470c87304df5eb7bd8">angle</a>,</div><divclass="line"><aname="l00048"></a><spanclass="lineno"> 48</span>  vec<3, T, Q><spanclass="keyword">const</span>& v);</div><divclass="line"><aname="l00049"></a><spanclass="lineno"> 49</span> </div><divclass="line"><aname="l00053"></a><spanclass="lineno"> 53</span> <spanclass="keyword">template</span><<spanclass="keyword">typename</span> T, quali
<divclass="ttc"id="a00779_html_ga309a30e652e58c396e2c3d4db3ee7658"><divclass="ttname"><ahref="a00779.html#ga309a30e652e58c396e2c3d4db3ee7658">glm::translate</a></div><divclass="ttdeci">GLM_FUNC_DECL mat< 4, 4, T, Q > translate(vec< 3, T, Q > const &v)</div><divclass="ttdoc">Transforms a matrix with a translation 4 * 4 matrix created from 3 scalars. </div></div>
<divclass="ttc"id="a00779_html_gafbeefee8fec884d566e4ada0049174d7"><divclass="ttname"><ahref="a00779.html#gafbeefee8fec884d566e4ada0049174d7">glm::scale</a></div><divclass="ttdeci">GLM_FUNC_DECL mat< 4, 4, T, Q > scale(vec< 3, T, Q > const &v)</div><divclass="ttdoc">Transforms a matrix with a scale 4 * 4 matrix created from a vector of 3 components. </div></div>