mirror of
https://github.com/g-truc/glm.git
synced 2024-11-30 03:44:38 +00:00
136 lines
20 KiB
HTML
136 lines
20 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.8"/>
|
|
<title>0.9.6: func_trigonometric.hpp 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>
|
|
<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 style="height: 56px;">
|
|
<td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
|
|
<td style="padding-left: 0.5em;">
|
|
<div id="projectname">0.9.6
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.8 -->
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="files.html"><span>File List</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_153b03dd71a7bff437c38ec53cb2e014.html">Source</a></li><li class="navelem"><a class="el" href="dir_0c6652232a835be54bedd6cfd7502504.html">G-Truc</a></li><li class="navelem"><a class="el" href="dir_e2c7faa62a52820b5be8795affd6e495.html">glm</a></li><li class="navelem"><a class="el" href="dir_5cf96241cdcf6779b80e104875f9716f.html">glm</a></li><li class="navelem"><a class="el" href="dir_9b22c367036d391e575f56d067c9855b.html">detail</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">func_trigonometric.hpp</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="a00035.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> </div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">#pragma once</span></div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="preprocessor">#include "<a class="code" href="a00105.html">setup.hpp</a>"</span></div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="preprocessor">#include "<a class="code" href="a00092.html">precision.hpp</a>"</span></div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="keyword">namespace </span><a class="code" href="a00146.html">glm</a></div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> {</div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00157.html#ga0fd3ad793538521f76fa30db7f6edfed">radians</a>(vecType<T, P> <span class="keyword">const</span> & <a class="code" href="a00157.html#ga402144a18234e642b702bf585599b46d">degrees</a>);</div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00157.html#ga402144a18234e642b702bf585599b46d">degrees</a>(vecType<T, P> <span class="keyword">const</span> & <a class="code" href="a00157.html#ga0fd3ad793538521f76fa30db7f6edfed">radians</a>);</div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00157.html#ga4a0ddceb6b1e64ce0e4da209dcb021d5">sin</a>(vecType<T, P> <span class="keyword">const</span> & <a class="code" href="a00175.html#gad4a4448baedb198b2b1e7880d2544dc9">angle</a>);</div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> </div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00157.html#ga728fd86f14609e37d83f82429995b7b3">cos</a>(vecType<T, P> <span class="keyword">const</span> & <a class="code" href="a00175.html#gad4a4448baedb198b2b1e7880d2544dc9">angle</a>);</div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00157.html#gab3ae890c38b7d3aa4d5e00998fd296b2">tan</a>(vecType<T, P> <span class="keyword">const</span> & <a class="code" href="a00175.html#gad4a4448baedb198b2b1e7880d2544dc9">angle</a>); </div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00157.html#ga88e29b8289e882859d76a25798dd9490">asin</a>(vecType<T, P> <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00157.html#ga58ad259b788528fe0a4bd2eeb5e381cc">acos</a>(vecType<T, P> <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> </div>
|
|
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00157.html#gae8f22458bba8f2321ceb1bfc4a543216">atan</a>(vecType<T, P> <span class="keyword">const</span> & y, vecType<T, P> <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> </div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00157.html#gae8f22458bba8f2321ceb1bfc4a543216">atan</a>(vecType<T, P> <span class="keyword">const</span> & y_over_x);</div>
|
|
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> </div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00157.html#gad8f89c12efe6f8d3ae8046625b266254">sinh</a>(vecType<T, P> <span class="keyword">const</span> & <a class="code" href="a00175.html#gad4a4448baedb198b2b1e7880d2544dc9">angle</a>);</div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> </div>
|
|
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00157.html#ga660582a4e5e843b6c1cd535777e8c295">cosh</a>(vecType<T, P> <span class="keyword">const</span> & <a class="code" href="a00175.html#gad4a4448baedb198b2b1e7880d2544dc9">angle</a>);</div>
|
|
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> </div>
|
|
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00157.html#ga234e904a0075f88654a594b5f837711f">tanh</a>(vecType<T, P> <span class="keyword">const</span> & <a class="code" href="a00175.html#gad4a4448baedb198b2b1e7880d2544dc9">angle</a>);</div>
|
|
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> </div>
|
|
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00157.html#ga72bf44c1984e1afb63acf821ba33cac7">asinh</a>(vecType<T, P> <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  </div>
|
|
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00157.html#ga3f368ad3e1883b60748ca2634d816104">acosh</a>(vecType<T, P> <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> </div>
|
|
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="keyword">template</span> <<span class="keyword">typename</span> T, precision P, <span class="keyword">template</span> <<span class="keyword">typename</span>, precision> <span class="keyword">class </span>vecType></div>
|
|
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  GLM_FUNC_DECL vecType<T, P> <a class="code" href="a00157.html#gaffa8decdd8620759f4e6fe4834768b87">atanh</a>(vecType<T, P> <span class="keyword">const</span> & x);</div>
|
|
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> </div>
|
|
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> }<span class="comment">//namespace glm</span></div>
|
|
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span> </div>
|
|
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <span class="preprocessor">#include "func_trigonometric.inl"</span></div>
|
|
<div class="ttc" id="a00157_html_ga3f368ad3e1883b60748ca2634d816104"><div class="ttname"><a href="a00157.html#ga3f368ad3e1883b60748ca2634d816104">glm::acosh</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > acosh(vecType< T, P > const &x)</div><div class="ttdoc">Arc hyperbolic cosine; returns the non-negative inverse of cosh. </div></div>
|
|
<div class="ttc" id="a00157_html_ga4a0ddceb6b1e64ce0e4da209dcb021d5"><div class="ttname"><a href="a00157.html#ga4a0ddceb6b1e64ce0e4da209dcb021d5">glm::sin</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > sin(vecType< T, P > const &angle)</div><div class="ttdoc">The standard trigonometric sine function. </div></div>
|
|
<div class="ttc" id="a00157_html_gae8f22458bba8f2321ceb1bfc4a543216"><div class="ttname"><a href="a00157.html#gae8f22458bba8f2321ceb1bfc4a543216">glm::atan</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > atan(vecType< T, P > const &y_over_x)</div><div class="ttdoc">Arc tangent. </div></div>
|
|
<div class="ttc" id="a00157_html_ga660582a4e5e843b6c1cd535777e8c295"><div class="ttname"><a href="a00157.html#ga660582a4e5e843b6c1cd535777e8c295">glm::cosh</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > cosh(vecType< T, P > const &angle)</div><div class="ttdoc">Returns the hyperbolic cosine function, (exp(x) + exp(-x)) / 2. </div></div>
|
|
<div class="ttc" id="a00146_html"><div class="ttname"><a href="a00146.html">glm</a></div><div class="ttdef"><b>Definition:</b> <a href="a00003_source.html#l00031">_noise.hpp:31</a></div></div>
|
|
<div class="ttc" id="a00105_html"><div class="ttname"><a href="a00105.html">setup.hpp</a></div><div class="ttdoc">OpenGL Mathematics (glm.g-truc.net) </div></div>
|
|
<div class="ttc" id="a00157_html_ga88e29b8289e882859d76a25798dd9490"><div class="ttname"><a href="a00157.html#ga88e29b8289e882859d76a25798dd9490">glm::asin</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > asin(vecType< T, P > const &x)</div><div class="ttdoc">Arc sine. </div></div>
|
|
<div class="ttc" id="a00157_html_ga72bf44c1984e1afb63acf821ba33cac7"><div class="ttname"><a href="a00157.html#ga72bf44c1984e1afb63acf821ba33cac7">glm::asinh</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > asinh(vecType< T, P > const &x)</div><div class="ttdoc">Arc hyperbolic sine; returns the inverse of sinh. </div></div>
|
|
<div class="ttc" id="a00157_html_gaffa8decdd8620759f4e6fe4834768b87"><div class="ttname"><a href="a00157.html#gaffa8decdd8620759f4e6fe4834768b87">glm::atanh</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > atanh(vecType< T, P > const &x)</div><div class="ttdoc">Arc hyperbolic tangent; returns the inverse of tanh. </div></div>
|
|
<div class="ttc" id="a00157_html_gad8f89c12efe6f8d3ae8046625b266254"><div class="ttname"><a href="a00157.html#gad8f89c12efe6f8d3ae8046625b266254">glm::sinh</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > sinh(vecType< T, P > const &angle)</div><div class="ttdoc">Returns the hyperbolic sine function, (exp(x) - exp(-x)) / 2. </div></div>
|
|
<div class="ttc" id="a00157_html_ga0fd3ad793538521f76fa30db7f6edfed"><div class="ttname"><a href="a00157.html#ga0fd3ad793538521f76fa30db7f6edfed">glm::radians</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > radians(vecType< T, P > const &degrees)</div><div class="ttdoc">Converts degrees to radians and returns the result. </div></div>
|
|
<div class="ttc" id="a00157_html_ga58ad259b788528fe0a4bd2eeb5e381cc"><div class="ttname"><a href="a00157.html#ga58ad259b788528fe0a4bd2eeb5e381cc">glm::acos</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > acos(vecType< T, P > const &x)</div><div class="ttdoc">Arc cosine. </div></div>
|
|
<div class="ttc" id="a00157_html_ga234e904a0075f88654a594b5f837711f"><div class="ttname"><a href="a00157.html#ga234e904a0075f88654a594b5f837711f">glm::tanh</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > tanh(vecType< T, P > const &angle)</div><div class="ttdoc">Returns the hyperbolic tangent function, sinh(angle) / cosh(angle) </div></div>
|
|
<div class="ttc" id="a00157_html_ga402144a18234e642b702bf585599b46d"><div class="ttname"><a href="a00157.html#ga402144a18234e642b702bf585599b46d">glm::degrees</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > degrees(vecType< T, P > const &radians)</div><div class="ttdoc">Converts radians to degrees and returns the result. </div></div>
|
|
<div class="ttc" id="a00175_html_gad4a4448baedb198b2b1e7880d2544dc9"><div class="ttname"><a href="a00175.html#gad4a4448baedb198b2b1e7880d2544dc9">glm::angle</a></div><div class="ttdeci">GLM_FUNC_DECL T angle(tquat< T, P > const &x)</div><div class="ttdoc">Returns the quaternion rotation angle. </div></div>
|
|
<div class="ttc" id="a00092_html"><div class="ttname"><a href="a00092.html">precision.hpp</a></div><div class="ttdoc">OpenGL Mathematics (glm.g-truc.net) </div></div>
|
|
<div class="ttc" id="a00157_html_gab3ae890c38b7d3aa4d5e00998fd296b2"><div class="ttname"><a href="a00157.html#gab3ae890c38b7d3aa4d5e00998fd296b2">glm::tan</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > tan(vecType< T, P > const &angle)</div><div class="ttdoc">The standard trigonometric tangent function. </div></div>
|
|
<div class="ttc" id="a00157_html_ga728fd86f14609e37d83f82429995b7b3"><div class="ttname"><a href="a00157.html#ga728fd86f14609e37d83f82429995b7b3">glm::cos</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > cos(vecType< T, P > const &angle)</div><div class="ttdoc">The standard trigonometric cosine function. </div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.8
|
|
</small></address>
|
|
</body>
|
|
</html>
|