mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 04:31:47 +00:00
619 lines
36 KiB
HTML
619 lines
36 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.10"/>
|
|
<title>0.9.9 API documenation: Angle and Trigonometry Functions</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="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>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() { init_search(); });
|
|
</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="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">0.9.9 API documenation
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.10 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
</script>
|
|
<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><a href="files.html"><span>Files</span></a></li>
|
|
<li>
|
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
alt=""/>
|
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<!-- 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">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#func-members">Functions</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">Angle and Trigonometry Functions<div class="ingroups"><a class="el" href="a00158.html">GLM Core</a></div></div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>Function parameters specified as angle are assumed to be in units of radians.
|
|
<a href="#details">More...</a></p>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
|
Functions</h2></td></tr>
|
|
<tr class="memitem:ga7fc0edab37382bccace71b13efd94023"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga7fc0edab37382bccace71b13efd94023"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00154.html#ga7fc0edab37382bccace71b13efd94023">acos</a> (vec< L, T, P > const &x)</td></tr>
|
|
<tr class="memdesc:ga7fc0edab37382bccace71b13efd94023"><td class="mdescLeft"> </td><td class="mdescRight">Arc cosine. <a href="a00154.html#ga7fc0edab37382bccace71b13efd94023">More...</a><br /></td></tr>
|
|
<tr class="separator:ga7fc0edab37382bccace71b13efd94023"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gadec1dc94c7c9c054b1cae921f65c67a6"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:gadec1dc94c7c9c054b1cae921f65c67a6"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00154.html#gadec1dc94c7c9c054b1cae921f65c67a6">acosh</a> (vec< L, T, P > const &x)</td></tr>
|
|
<tr class="memdesc:gadec1dc94c7c9c054b1cae921f65c67a6"><td class="mdescLeft"> </td><td class="mdescRight">Arc hyperbolic cosine; returns the non-negative inverse of cosh. <a href="a00154.html#gadec1dc94c7c9c054b1cae921f65c67a6">More...</a><br /></td></tr>
|
|
<tr class="separator:gadec1dc94c7c9c054b1cae921f65c67a6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaa856f3bc6f9b04b48b5aa1394cdc570a"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:gaa856f3bc6f9b04b48b5aa1394cdc570a"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00154.html#gaa856f3bc6f9b04b48b5aa1394cdc570a">asin</a> (vec< L, T, P > const &x)</td></tr>
|
|
<tr class="memdesc:gaa856f3bc6f9b04b48b5aa1394cdc570a"><td class="mdescLeft"> </td><td class="mdescRight">Arc sine. <a href="a00154.html#gaa856f3bc6f9b04b48b5aa1394cdc570a">More...</a><br /></td></tr>
|
|
<tr class="separator:gaa856f3bc6f9b04b48b5aa1394cdc570a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga0b15003df346e23a7f1db7de4453ef6f"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga0b15003df346e23a7f1db7de4453ef6f"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00154.html#ga0b15003df346e23a7f1db7de4453ef6f">asinh</a> (vec< L, T, P > const &x)</td></tr>
|
|
<tr class="memdesc:ga0b15003df346e23a7f1db7de4453ef6f"><td class="mdescLeft"> </td><td class="mdescRight">Arc hyperbolic sine; returns the inverse of sinh. <a href="a00154.html#ga0b15003df346e23a7f1db7de4453ef6f">More...</a><br /></td></tr>
|
|
<tr class="separator:ga0b15003df346e23a7f1db7de4453ef6f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaf392475971b230bb57af4dbce5e29d3d"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:gaf392475971b230bb57af4dbce5e29d3d"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00154.html#gaf392475971b230bb57af4dbce5e29d3d">atan</a> (vec< L, T, P > const &y, vec< L, T, P > const &x)</td></tr>
|
|
<tr class="memdesc:gaf392475971b230bb57af4dbce5e29d3d"><td class="mdescLeft"> </td><td class="mdescRight">Arc tangent. <a href="a00154.html#gaf392475971b230bb57af4dbce5e29d3d">More...</a><br /></td></tr>
|
|
<tr class="separator:gaf392475971b230bb57af4dbce5e29d3d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga9ffac8e7b1194cb5cbac7009c012062f"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga9ffac8e7b1194cb5cbac7009c012062f"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00154.html#ga9ffac8e7b1194cb5cbac7009c012062f">atan</a> (vec< L, T, P > const &y_over_x)</td></tr>
|
|
<tr class="memdesc:ga9ffac8e7b1194cb5cbac7009c012062f"><td class="mdescLeft"> </td><td class="mdescRight">Arc tangent. <a href="a00154.html#ga9ffac8e7b1194cb5cbac7009c012062f">More...</a><br /></td></tr>
|
|
<tr class="separator:ga9ffac8e7b1194cb5cbac7009c012062f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga10f80a2b7bac23f556ad09c8711be5fd"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga10f80a2b7bac23f556ad09c8711be5fd"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00154.html#ga10f80a2b7bac23f556ad09c8711be5fd">atanh</a> (vec< L, T, P > const &x)</td></tr>
|
|
<tr class="memdesc:ga10f80a2b7bac23f556ad09c8711be5fd"><td class="mdescLeft"> </td><td class="mdescRight">Arc hyperbolic tangent; returns the inverse of tanh. <a href="a00154.html#ga10f80a2b7bac23f556ad09c8711be5fd">More...</a><br /></td></tr>
|
|
<tr class="separator:ga10f80a2b7bac23f556ad09c8711be5fd"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga25e0c5534cb5ca943767bccb5df37757"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga25e0c5534cb5ca943767bccb5df37757"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00154.html#ga25e0c5534cb5ca943767bccb5df37757">cos</a> (vec< L, T, P > const &angle)</td></tr>
|
|
<tr class="memdesc:ga25e0c5534cb5ca943767bccb5df37757"><td class="mdescLeft"> </td><td class="mdescRight">The standard trigonometric cosine function. <a href="a00154.html#ga25e0c5534cb5ca943767bccb5df37757">More...</a><br /></td></tr>
|
|
<tr class="separator:ga25e0c5534cb5ca943767bccb5df37757"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaadd9cd03c7e505952b8f0a0ac97388de"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:gaadd9cd03c7e505952b8f0a0ac97388de"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00154.html#gaadd9cd03c7e505952b8f0a0ac97388de">cosh</a> (vec< L, T, P > const &angle)</td></tr>
|
|
<tr class="memdesc:gaadd9cd03c7e505952b8f0a0ac97388de"><td class="mdescLeft"> </td><td class="mdescRight">Returns the hyperbolic cosine function, (exp(x) + exp(-x)) / 2. <a href="a00154.html#gaadd9cd03c7e505952b8f0a0ac97388de">More...</a><br /></td></tr>
|
|
<tr class="separator:gaadd9cd03c7e505952b8f0a0ac97388de"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga3d8b6a92957633fa63f9e9a1761cfb01"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga3d8b6a92957633fa63f9e9a1761cfb01"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00154.html#ga3d8b6a92957633fa63f9e9a1761cfb01">degrees</a> (vec< L, T, P > const &radians)</td></tr>
|
|
<tr class="memdesc:ga3d8b6a92957633fa63f9e9a1761cfb01"><td class="mdescLeft"> </td><td class="mdescRight">Converts radians to degrees and returns the result. <a href="a00154.html#ga3d8b6a92957633fa63f9e9a1761cfb01">More...</a><br /></td></tr>
|
|
<tr class="separator:ga3d8b6a92957633fa63f9e9a1761cfb01"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga3c52efaefd061d714c9416db7baffb52"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga3c52efaefd061d714c9416db7baffb52"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00154.html#ga3c52efaefd061d714c9416db7baffb52">radians</a> (vec< L, T, P > const &degrees)</td></tr>
|
|
<tr class="memdesc:ga3c52efaefd061d714c9416db7baffb52"><td class="mdescLeft"> </td><td class="mdescRight">Converts degrees to radians and returns the result. <a href="a00154.html#ga3c52efaefd061d714c9416db7baffb52">More...</a><br /></td></tr>
|
|
<tr class="separator:ga3c52efaefd061d714c9416db7baffb52"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gace40403215c8fbdcfcb71d0ee7f754c5"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:gace40403215c8fbdcfcb71d0ee7f754c5"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00154.html#gace40403215c8fbdcfcb71d0ee7f754c5">sin</a> (vec< L, T, P > const &angle)</td></tr>
|
|
<tr class="memdesc:gace40403215c8fbdcfcb71d0ee7f754c5"><td class="mdescLeft"> </td><td class="mdescRight">The standard trigonometric sine function. <a href="a00154.html#gace40403215c8fbdcfcb71d0ee7f754c5">More...</a><br /></td></tr>
|
|
<tr class="separator:gace40403215c8fbdcfcb71d0ee7f754c5"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaa11ee703574f57880f7d60bc02b54812"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:gaa11ee703574f57880f7d60bc02b54812"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00154.html#gaa11ee703574f57880f7d60bc02b54812">sinh</a> (vec< L, T, P > const &angle)</td></tr>
|
|
<tr class="memdesc:gaa11ee703574f57880f7d60bc02b54812"><td class="mdescLeft"> </td><td class="mdescRight">Returns the hyperbolic sine function, (exp(x) - exp(-x)) / 2. <a href="a00154.html#gaa11ee703574f57880f7d60bc02b54812">More...</a><br /></td></tr>
|
|
<tr class="separator:gaa11ee703574f57880f7d60bc02b54812"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga9a95d48ea582becb340c5800427ec89d"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:ga9a95d48ea582becb340c5800427ec89d"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00154.html#ga9a95d48ea582becb340c5800427ec89d">tan</a> (vec< L, T, P > const &angle)</td></tr>
|
|
<tr class="memdesc:ga9a95d48ea582becb340c5800427ec89d"><td class="mdescLeft"> </td><td class="mdescRight">The standard trigonometric tangent function. <a href="a00154.html#ga9a95d48ea582becb340c5800427ec89d">More...</a><br /></td></tr>
|
|
<tr class="separator:ga9a95d48ea582becb340c5800427ec89d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gabf113eb464891c35243b3bdea8610c56"><td class="memTemplParams" colspan="2">template<length_t L, typename T , qualifier P> </td></tr>
|
|
<tr class="memitem:gabf113eb464891c35243b3bdea8610c56"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec< L, T, P > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00154.html#gabf113eb464891c35243b3bdea8610c56">tanh</a> (vec< L, T, P > const &angle)</td></tr>
|
|
<tr class="memdesc:gabf113eb464891c35243b3bdea8610c56"><td class="mdescLeft"> </td><td class="mdescRight">Returns the hyperbolic tangent function, sinh(angle) / cosh(angle) <a href="a00154.html#gabf113eb464891c35243b3bdea8610c56">More...</a><br /></td></tr>
|
|
<tr class="separator:gabf113eb464891c35243b3bdea8610c56"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<p>Function parameters specified as angle are assumed to be in units of radians. </p>
|
|
<p>In no case will any of these functions result in a divide by zero error. If the divisor of a ratio is 0, then results will be undefined.</p>
|
|
<p>These all operate component-wise. The description is per component. </p>
|
|
<h2 class="groupheader">Function Documentation</h2>
|
|
<a class="anchor" id="ga7fc0edab37382bccace71b13efd94023"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, T, P> glm::acos </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>x</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Arc cosine. </p>
|
|
<p>Returns an angle whose sine is x. The range of values returned by this function is [0, PI]. Results are undefined if |x| > 1.</p>
|
|
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
|
<table class="tparams">
|
|
<tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
|
|
<tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
|
|
<tr><td class="paramname">P</td><td>Enumeration value qualifier</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/acos.xml">GLSL acos man page</a> </dd>
|
|
<dd>
|
|
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gadec1dc94c7c9c054b1cae921f65c67a6"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, T, P> glm::acosh </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>x</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Arc hyperbolic cosine; returns the non-negative inverse of cosh. </p>
|
|
<p>Results are undefined if x < 1.</p>
|
|
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
|
<table class="tparams">
|
|
<tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
|
|
<tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
|
|
<tr><td class="paramname">P</td><td>Enumeration value qualifier</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/acosh.xml">GLSL acosh man page</a> </dd>
|
|
<dd>
|
|
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gaa856f3bc6f9b04b48b5aa1394cdc570a"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, T, P> glm::asin </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>x</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Arc sine. </p>
|
|
<p>Returns an angle whose sine is x. The range of values returned by this function is [-PI/2, PI/2]. Results are undefined if |x| > 1.</p>
|
|
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
|
<table class="tparams">
|
|
<tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
|
|
<tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
|
|
<tr><td class="paramname">P</td><td>Enumeration value qualifier</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/asin.xml">GLSL asin man page</a> </dd>
|
|
<dd>
|
|
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga0b15003df346e23a7f1db7de4453ef6f"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, T, P> glm::asinh </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>x</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Arc hyperbolic sine; returns the inverse of sinh. </p>
|
|
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
|
<table class="tparams">
|
|
<tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
|
|
<tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
|
|
<tr><td class="paramname">P</td><td>Enumeration value qualifier</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/asinh.xml">GLSL asinh man page</a> </dd>
|
|
<dd>
|
|
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gaf392475971b230bb57af4dbce5e29d3d"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, T, P> glm::atan </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>y</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>x</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Arc tangent. </p>
|
|
<p>Returns an angle whose tangent is y/x. The signs of x and y are used to determine what quadrant the angle is in. The range of values returned by this function is [-PI, PI]. Results are undefined if x and y are both 0.</p>
|
|
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
|
<table class="tparams">
|
|
<tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
|
|
<tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
|
|
<tr><td class="paramname">P</td><td>Enumeration value qualifier</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/atan.xml">GLSL atan man page</a> </dd>
|
|
<dd>
|
|
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions</a> </dd></dl>
|
|
|
|
<p>Referenced by <a class="el" href="a00017_source.html#l00055">glm::atan2()</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga9ffac8e7b1194cb5cbac7009c012062f"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, T, P> glm::atan </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>y_over_x</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Arc tangent. </p>
|
|
<p>Returns an angle whose tangent is y_over_x. The range of values returned by this function is [-PI/2, PI/2].</p>
|
|
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
|
<table class="tparams">
|
|
<tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
|
|
<tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
|
|
<tr><td class="paramname">P</td><td>Enumeration value qualifier</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/atan.xml">GLSL atan man page</a> </dd>
|
|
<dd>
|
|
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga10f80a2b7bac23f556ad09c8711be5fd"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, T, P> glm::atanh </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>x</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Arc hyperbolic tangent; returns the inverse of tanh. </p>
|
|
<p>Results are undefined if abs(x) >= 1.</p>
|
|
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
|
<table class="tparams">
|
|
<tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
|
|
<tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
|
|
<tr><td class="paramname">P</td><td>Enumeration value qualifier</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/atanh.xml">GLSL atanh man page</a> </dd>
|
|
<dd>
|
|
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga25e0c5534cb5ca943767bccb5df37757"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, T, P> glm::cos </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>angle</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>The standard trigonometric cosine function. </p>
|
|
<p>The values returned by this function will range from [-1, 1].</p>
|
|
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
|
<table class="tparams">
|
|
<tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
|
|
<tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
|
|
<tr><td class="paramname">P</td><td>Enumeration value qualifier</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/cos.xml">GLSL cos man page</a> </dd>
|
|
<dd>
|
|
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gaadd9cd03c7e505952b8f0a0ac97388de"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, T, P> glm::cosh </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>angle</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the hyperbolic cosine function, (exp(x) + exp(-x)) / 2. </p>
|
|
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
|
<table class="tparams">
|
|
<tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
|
|
<tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
|
|
<tr><td class="paramname">P</td><td>Enumeration value qualifier</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/cosh.xml">GLSL cosh man page</a> </dd>
|
|
<dd>
|
|
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga3d8b6a92957633fa63f9e9a1761cfb01"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, P> glm::degrees </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>radians</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Converts radians to degrees and returns the result. </p>
|
|
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
|
<table class="tparams">
|
|
<tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
|
|
<tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
|
|
<tr><td class="paramname">P</td><td>Enumeration value qualifier</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/degrees.xml">GLSL degrees man page</a> </dd>
|
|
<dd>
|
|
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga3c52efaefd061d714c9416db7baffb52"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, P> glm::radians </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>degrees</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Converts degrees to radians and returns the result. </p>
|
|
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
|
<table class="tparams">
|
|
<tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
|
|
<tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
|
|
<tr><td class="paramname">P</td><td>Enumeration value qualifier</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/radians.xml">GLSL radians man page</a> </dd>
|
|
<dd>
|
|
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gace40403215c8fbdcfcb71d0ee7f754c5"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, T, P> glm::sin </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>angle</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>The standard trigonometric sine function. </p>
|
|
<p>The values returned by this function will range from [-1, 1].</p>
|
|
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
|
<table class="tparams">
|
|
<tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
|
|
<tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
|
|
<tr><td class="paramname">P</td><td>Enumeration value qualifier</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/sin.xml">GLSL sin man page</a> </dd>
|
|
<dd>
|
|
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gaa11ee703574f57880f7d60bc02b54812"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, T, P> glm::sinh </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>angle</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the hyperbolic sine function, (exp(x) - exp(-x)) / 2. </p>
|
|
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
|
<table class="tparams">
|
|
<tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
|
|
<tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
|
|
<tr><td class="paramname">P</td><td>Enumeration value qualifier</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/sinh.xml">GLSL sinh man page</a> </dd>
|
|
<dd>
|
|
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga9a95d48ea582becb340c5800427ec89d"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, T, P> glm::tan </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>angle</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>The standard trigonometric tangent function. </p>
|
|
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
|
<table class="tparams">
|
|
<tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
|
|
<tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
|
|
<tr><td class="paramname">P</td><td>Enumeration value qualifier</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/tan.xml">GLSL tan man page</a> </dd>
|
|
<dd>
|
|
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gabf113eb464891c35243b3bdea8610c56"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">GLM_FUNC_DECL vec<L, T, P> glm::tanh </td>
|
|
<td>(</td>
|
|
<td class="paramtype">vec< L, T, P > const & </td>
|
|
<td class="paramname"><em>angle</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Returns the hyperbolic tangent function, sinh(angle) / cosh(angle) </p>
|
|
<dl class="tparams"><dt>Template Parameters</dt><dd>
|
|
<table class="tparams">
|
|
<tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
|
|
<tr><td class="paramname">T</td><td>Floating-point scalar types </td></tr>
|
|
<tr><td class="paramname">P</td><td>Enumeration value qualifier</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/tanh.xml">GLSL tanh man page</a> </dd>
|
|
<dd>
|
|
<a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.1 Angle and Trigonometry Functions</a> </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
</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.10
|
|
</small></address>
|
|
</body>
|
|
</html>
|