mirror of
https://github.com/g-truc/glm.git
synced 2024-11-23 01:14:34 +00:00
407 lines
55 KiB
HTML
407 lines
55 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.7: simd_vec4.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 id="projectalign" style="padding-left: 0.5em;">
|
||
|
<div id="projectname">0.9.7
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
<!-- end header part -->
|
||
|
<!-- Generated by Doxygen 1.8.10 -->
|
||
|
<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_275089585c7fc1b5fd5d7d42c69cb1da.html">D:</a></li><li class="navelem"><a class="el" href="dir_7b98f88bffbed4b390b5f8f520d9c08e.html">Source</a></li><li class="navelem"><a class="el" href="dir_1f76e953200861345293ade84ac7fb6c.html">G-Truc</a></li><li class="navelem"><a class="el" href="dir_e29b03b892e0e25920d021a614d4db9b.html">glm</a></li><li class="navelem"><a class="el" href="dir_5ce58d942b2d0776e17a9a58abc01e04.html">glm</a></li><li class="navelem"><a class="el" href="dir_8d176b5b7dd0ae42ea6876078f2bde49.html">gtx</a></li> </ul>
|
||
|
</div>
|
||
|
</div><!-- top -->
|
||
|
<div class="header">
|
||
|
<div class="headertitle">
|
||
|
<div class="title">simd_vec4.hpp</div> </div>
|
||
|
</div><!--header-->
|
||
|
<div class="contents">
|
||
|
<a href="a00108.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="l00042"></a><span class="lineno"> 42</span> <span class="preprocessor">#pragma once</span></div>
|
||
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div>
|
||
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment">// Dependency:</span></div>
|
||
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="preprocessor">#include "../glm.hpp"</span></div>
|
||
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div>
|
||
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="preprocessor">#if(GLM_ARCH != GLM_ARCH_PURE)</span></div>
|
||
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div>
|
||
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="preprocessor">#if(GLM_ARCH & GLM_ARCH_SSE2)</span></div>
|
||
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="preprocessor"># include "../detail/intrinsic_common.hpp"</span></div>
|
||
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="preprocessor"># include "../detail/intrinsic_geometric.hpp"</span></div>
|
||
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="preprocessor"># include "../detail/intrinsic_integer.hpp"</span></div>
|
||
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="preprocessor">#else</span></div>
|
||
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="preprocessor"># error "GLM: GLM_GTX_simd_vec4 requires compiler support of SSE2 through intrinsics"</span></div>
|
||
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="preprocessor">#endif</span></div>
|
||
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div>
|
||
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))</span></div>
|
||
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="preprocessor"># pragma message("GLM: GLM_GTX_simd_vec4 extension included")</span></div>
|
||
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="preprocessor">#endif</span></div>
|
||
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div>
|
||
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div>
|
||
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="comment">// Warning silencer for nameless struct/union.</span></div>
|
||
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="preprocessor">#if (GLM_COMPILER & GLM_COMPILER_VC)</span></div>
|
||
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="preprocessor"># pragma warning(push)</span></div>
|
||
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="preprocessor"># pragma warning(disable:4201) // warning C4201: nonstandard extension used : nameless struct/union</span></div>
|
||
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="preprocessor">#endif</span></div>
|
||
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div>
|
||
|
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="keyword">namespace </span><a class="code" href="a00146.html">glm</a></div>
|
||
|
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> {</div>
|
||
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keyword">enum</span> comp</div>
|
||
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  {</div>
|
||
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  X = 0,</div>
|
||
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  R = 0,</div>
|
||
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  S = 0,</div>
|
||
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  Y = 1,</div>
|
||
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  G = 1,</div>
|
||
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  T = 1,</div>
|
||
|
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  Z = 2,</div>
|
||
|
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  B = 2,</div>
|
||
|
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  P = 2,</div>
|
||
|
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  W = 3,</div>
|
||
|
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  A = 3,</div>
|
||
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  Q = 3</div>
|
||
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  };</div>
|
||
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> </div>
|
||
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> }<span class="comment">//namespace glm</span></div>
|
||
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div>
|
||
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="keyword">namespace </span><a class="code" href="a00146.html">glm</a>{</div>
|
||
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="keyword">namespace </span>detail</div>
|
||
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> {</div>
|
||
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  GLM_ALIGNED_STRUCT(16) fvec4SIMD</div>
|
||
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  {</div>
|
||
|
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keyword">typedef</span> <span class="keywordtype">float</span> value_type;</div>
|
||
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keyword">typedef</span> std::size_t size_type;</div>
|
||
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div>
|
||
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keyword">typedef</span> fvec4SIMD type;</div>
|
||
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keyword">typedef</span> tvec4<float, defaultp> pure_type;</div>
|
||
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keyword">typedef</span> tvec4<bool, highp> bool_type;</div>
|
||
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> </div>
|
||
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> <span class="preprocessor"># ifdef GLM_META_PROG_HELPERS</span></div>
|
||
|
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keyword">static</span> GLM_RELAXED_CONSTEXPR length_t components = 4;</div>
|
||
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keyword">static</span> GLM_RELAXED_CONSTEXPR precision prec = defaultp;</div>
|
||
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="preprocessor"># endif//GLM_META_PROG_HELPERS</span></div>
|
||
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> </div>
|
||
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="preprocessor">#ifdef GLM_SIMD_ENABLE_XYZW_UNION</span></div>
|
||
|
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keyword">union</span></div>
|
||
|
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  {</div>
|
||
|
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  __m128 Data;</div>
|
||
|
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keyword">struct </span>{<span class="keywordtype">float</span> x, y, z, w;};</div>
|
||
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  };</div>
|
||
|
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="preprocessor">#else</span></div>
|
||
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  __m128 Data;</div>
|
||
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="preprocessor">#endif</span></div>
|
||
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div>
|
||
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="comment">// Implicit basic constructors</span></div>
|
||
|
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> </div>
|
||
|
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  fvec4SIMD() GLM_DEFAULT_CTOR;</div>
|
||
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  fvec4SIMD(fvec4SIMD const & v) GLM_DEFAULT;</div>
|
||
|
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  fvec4SIMD(__m128 const & Data);</div>
|
||
|
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> </div>
|
||
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="comment">// Explicit basic constructors</span></div>
|
||
|
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> </div>
|
||
|
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  explicit fvec4SIMD(</div>
|
||
|
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  ctor);</div>
|
||
|
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  explicit fvec4SIMD(</div>
|
||
|
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="keywordtype">float</span> const & s);</div>
|
||
|
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  explicit fvec4SIMD(</div>
|
||
|
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keywordtype">float</span> const & x,</div>
|
||
|
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordtype">float</span> const & y,</div>
|
||
|
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="keywordtype">float</span> const & z,</div>
|
||
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keywordtype">float</span> const & w);</div>
|
||
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  explicit fvec4SIMD(</div>
|
||
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <a class="code" href="a00163.html#gafbab23070ca47932487d25332adc7d7c">vec4</a> const & v);</div>
|
||
|
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> </div>
|
||
|
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> </div>
|
||
|
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  fvec4SIMD(<a class="code" href="a00163.html#ga09d0200e8ff86391d8804b4fefd5f1da">vec2</a> const & v, <span class="keywordtype">float</span> const & s1, <span class="keywordtype">float</span> const & s2);</div>
|
||
|
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  fvec4SIMD(<span class="keywordtype">float</span> const & s1, <a class="code" href="a00163.html#ga09d0200e8ff86391d8804b4fefd5f1da">vec2</a> const & v, <span class="keywordtype">float</span> const & s2);</div>
|
||
|
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  fvec4SIMD(<span class="keywordtype">float</span> const & s1, <span class="keywordtype">float</span> const & s2, <a class="code" href="a00163.html#ga09d0200e8ff86391d8804b4fefd5f1da">vec2</a> const & v);</div>
|
||
|
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  fvec4SIMD(<a class="code" href="a00163.html#gaa8ea2429bb3cb41a715258a447f39897">vec3</a> const & v, <span class="keywordtype">float</span> const & s);</div>
|
||
|
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  fvec4SIMD(<span class="keywordtype">float</span> const & s, <a class="code" href="a00163.html#gaa8ea2429bb3cb41a715258a447f39897">vec3</a> const & v);</div>
|
||
|
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  fvec4SIMD(<a class="code" href="a00163.html#ga09d0200e8ff86391d8804b4fefd5f1da">vec2</a> const & v1, <a class="code" href="a00163.html#ga09d0200e8ff86391d8804b4fefd5f1da">vec2</a> const & v2);</div>
|
||
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="comment">//fvec4SIMD(ivec4SIMD const & v);</span></div>
|
||
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> </div>
|
||
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="comment">// Unary arithmetic operators</span></div>
|
||
|
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> </div>
|
||
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  fvec4SIMD& operator= (fvec4SIMD const & v) GLM_DEFAULT;</div>
|
||
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  fvec4SIMD& operator+=(fvec4SIMD const & v);</div>
|
||
|
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  fvec4SIMD& operator-=(fvec4SIMD const & v);</div>
|
||
|
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  fvec4SIMD& operator*=(fvec4SIMD const & v);</div>
|
||
|
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  fvec4SIMD& operator/=(fvec4SIMD const & v);</div>
|
||
|
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> </div>
|
||
|
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  fvec4SIMD& operator+=(<span class="keywordtype">float</span> const & s);</div>
|
||
|
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  fvec4SIMD& operator-=(<span class="keywordtype">float</span> const & s);</div>
|
||
|
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  fvec4SIMD& operator*=(<span class="keywordtype">float</span> const & s);</div>
|
||
|
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  fvec4SIMD& operator/=(<span class="keywordtype">float</span> const & s);</div>
|
||
|
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> </div>
|
||
|
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  fvec4SIMD& operator++();</div>
|
||
|
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  fvec4SIMD& operator--();</div>
|
||
|
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> </div>
|
||
|
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="comment">// Swizzle operators</span></div>
|
||
|
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> </div>
|
||
|
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  template <comp X, comp Y, comp Z, comp W></div>
|
||
|
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  fvec4SIMD& swizzle();</div>
|
||
|
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  template <comp X, comp Y, comp Z, comp W></div>
|
||
|
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  fvec4SIMD swizzle() const;</div>
|
||
|
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  template <comp X, comp Y, comp Z></div>
|
||
|
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  fvec4SIMD swizzle() const;</div>
|
||
|
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  template <comp X, comp Y></div>
|
||
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  fvec4SIMD swizzle() const;</div>
|
||
|
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  template <comp X></div>
|
||
|
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  fvec4SIMD swizzle() const;</div>
|
||
|
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  };</div>
|
||
|
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> }<span class="comment">//namespace detail</span></div>
|
||
|
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> </div>
|
||
|
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  typedef <a class="code" href="a00146.html">glm</a>::detail::fvec4SIMD simdVec4;</div>
|
||
|
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> </div>
|
||
|
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> </div>
|
||
|
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <a class="code" href="a00163.html#gafbab23070ca47932487d25332adc7d7c">vec4</a> vec4_cast(</div>
|
||
|
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  detail::fvec4SIMD const & x);</div>
|
||
|
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> </div>
|
||
|
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  detail::fvec4SIMD <a class="code" href="a00151.html#ga693d77696ff36572a0da79efec965acd">abs</a>(detail::fvec4SIMD const & x);</div>
|
||
|
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> </div>
|
||
|
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  detail::fvec4SIMD <a class="code" href="a00151.html#gac3446b4138e0b8757561c07cd19f084d">sign</a>(detail::fvec4SIMD const & x);</div>
|
||
|
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span> </div>
|
||
|
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  detail::fvec4SIMD <a class="code" href="a00151.html#ga568b822b78f045f77c3325e165b44d5d">floor</a>(detail::fvec4SIMD const & x);</div>
|
||
|
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> </div>
|
||
|
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  detail::fvec4SIMD <a class="code" href="a00151.html#ga634cdbf8b37edca03f2248450570fd54">trunc</a>(detail::fvec4SIMD const & x);</div>
|
||
|
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span> </div>
|
||
|
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  detail::fvec4SIMD <a class="code" href="a00151.html#gada0165544c0618d634c8056a88082ce9">round</a>(detail::fvec4SIMD const & x);</div>
|
||
|
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span> </div>
|
||
|
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <span class="comment">//detail::fvec4SIMD roundEven(detail::fvec4SIMD const & x);</span></div>
|
||
|
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span> </div>
|
||
|
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  detail::fvec4SIMD <a class="code" href="a00151.html#ga9189b2bec45ff301923ea8f8dd157fb8">ceil</a>(detail::fvec4SIMD const & x);</div>
|
||
|
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span> </div>
|
||
|
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  detail::fvec4SIMD <a class="code" href="a00151.html#ga8ba89e40e55ae5cdf228548f9b7639c7">fract</a>(detail::fvec4SIMD const & x);</div>
|
||
|
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span> </div>
|
||
|
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  detail::fvec4SIMD <a class="code" href="a00151.html#ga12201563ef902e3b07e0d1d7656efdb1">mod</a>(</div>
|
||
|
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  detail::fvec4SIMD const & x,</div>
|
||
|
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  detail::fvec4SIMD const & y);</div>
|
||
|
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span> </div>
|
||
|
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  detail::fvec4SIMD <a class="code" href="a00151.html#ga12201563ef902e3b07e0d1d7656efdb1">mod</a>(</div>
|
||
|
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  detail::fvec4SIMD const & x,</div>
|
||
|
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <span class="keywordtype">float</span> const & y);</div>
|
||
|
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span> </div>
|
||
|
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  <span class="comment">//detail::fvec4SIMD modf(</span></div>
|
||
|
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  <span class="comment">// detail::fvec4SIMD const & x,</span></div>
|
||
|
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <span class="comment">// detail::fvec4SIMD & i);</span></div>
|
||
|
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span> </div>
|
||
|
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  detail::fvec4SIMD <a class="code" href="a00151.html#ga2c2bde1cec025b7ddff83c74a1113719">min</a>(</div>
|
||
|
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  detail::fvec4SIMD const & x,</div>
|
||
|
<div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  detail::fvec4SIMD const & y);</div>
|
||
|
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span> </div>
|
||
|
<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  detail::fvec4SIMD <a class="code" href="a00151.html#ga2c2bde1cec025b7ddff83c74a1113719">min</a>(</div>
|
||
|
<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  detail::fvec4SIMD const & x,</div>
|
||
|
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <span class="keywordtype">float</span> const & y);</div>
|
||
|
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span> </div>
|
||
|
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  detail::fvec4SIMD <a class="code" href="a00151.html#ga98caa7f95a94c86a86ebce893a45326c">max</a>(</div>
|
||
|
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  detail::fvec4SIMD const & x,</div>
|
||
|
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  detail::fvec4SIMD const & y);</div>
|
||
|
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span> </div>
|
||
|
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  detail::fvec4SIMD <a class="code" href="a00151.html#ga98caa7f95a94c86a86ebce893a45326c">max</a>(</div>
|
||
|
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  detail::fvec4SIMD const & x,</div>
|
||
|
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  <span class="keywordtype">float</span> const & y);</div>
|
||
|
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span> </div>
|
||
|
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  detail::fvec4SIMD <a class="code" href="a00151.html#ga93bce26c7d80d30a62f5c508f8498a6c">clamp</a>(</div>
|
||
|
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  detail::fvec4SIMD const & x,</div>
|
||
|
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  detail::fvec4SIMD const & minVal,</div>
|
||
|
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  detail::fvec4SIMD const & maxVal);</div>
|
||
|
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span> </div>
|
||
|
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  detail::fvec4SIMD <a class="code" href="a00151.html#ga93bce26c7d80d30a62f5c508f8498a6c">clamp</a>(</div>
|
||
|
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  detail::fvec4SIMD const & x,</div>
|
||
|
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  <span class="keywordtype">float</span> const & minVal,</div>
|
||
|
<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  <span class="keywordtype">float</span> const & maxVal);</div>
|
||
|
<div class="line"><a name="l00296"></a><span class="lineno"> 296</span> </div>
|
||
|
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  detail::fvec4SIMD <a class="code" href="a00151.html#gadccbaffe46f369cf1a96b2aef92cbfdd">mix</a>(</div>
|
||
|
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  detail::fvec4SIMD const & x,</div>
|
||
|
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  detail::fvec4SIMD const & y,</div>
|
||
|
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  detail::fvec4SIMD const & a);</div>
|
||
|
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span> </div>
|
||
|
<div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  detail::fvec4SIMD <a class="code" href="a00151.html#ga015a1261ff23e12650211aa872863cce">step</a>(</div>
|
||
|
<div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  detail::fvec4SIMD const & edge,</div>
|
||
|
<div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  detail::fvec4SIMD const & x);</div>
|
||
|
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span> </div>
|
||
|
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  detail::fvec4SIMD <a class="code" href="a00151.html#ga015a1261ff23e12650211aa872863cce">step</a>(</div>
|
||
|
<div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  <span class="keywordtype">float</span> const & edge,</div>
|
||
|
<div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  detail::fvec4SIMD const & x);</div>
|
||
|
<div class="line"><a name="l00338"></a><span class="lineno"> 338</span> </div>
|
||
|
<div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  detail::fvec4SIMD <a class="code" href="a00151.html#ga562edf7eca082cc5b7a0aaf180436daf">smoothstep</a>(</div>
|
||
|
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  detail::fvec4SIMD const & edge0,</div>
|
||
|
<div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  detail::fvec4SIMD const & edge1,</div>
|
||
|
<div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  detail::fvec4SIMD const & x);</div>
|
||
|
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span> </div>
|
||
|
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span>  detail::fvec4SIMD <a class="code" href="a00151.html#ga562edf7eca082cc5b7a0aaf180436daf">smoothstep</a>(</div>
|
||
|
<div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  <span class="keywordtype">float</span> const & edge0,</div>
|
||
|
<div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  <span class="keywordtype">float</span> const & edge1,</div>
|
||
|
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  detail::fvec4SIMD const & x);</div>
|
||
|
<div class="line"><a name="l00359"></a><span class="lineno"> 359</span> </div>
|
||
|
<div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  <span class="comment">//bvec4 isnan(detail::fvec4SIMD const & x);</span></div>
|
||
|
<div class="line"><a name="l00368"></a><span class="lineno"> 368</span> </div>
|
||
|
<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  <span class="comment">//bvec4 isinf(detail::fvec4SIMD const & x);</span></div>
|
||
|
<div class="line"><a name="l00377"></a><span class="lineno"> 377</span> </div>
|
||
|
<div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  <span class="comment">//detail::ivec4SIMD floatBitsToInt(detail::fvec4SIMD const & value);</span></div>
|
||
|
<div class="line"><a name="l00384"></a><span class="lineno"> 384</span> </div>
|
||
|
<div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  <span class="comment">//detail::fvec4SIMD intBitsToFloat(detail::ivec4SIMD const & value);</span></div>
|
||
|
<div class="line"><a name="l00393"></a><span class="lineno"> 393</span> </div>
|
||
|
<div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  detail::fvec4SIMD <a class="code" href="a00151.html#gad0f444d4b81cc53c3b6edf5aa25078c2">fma</a>(</div>
|
||
|
<div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  detail::fvec4SIMD const & a,</div>
|
||
|
<div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  detail::fvec4SIMD const & b,</div>
|
||
|
<div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  detail::fvec4SIMD const & c);</div>
|
||
|
<div class="line"><a name="l00401"></a><span class="lineno"> 401</span> </div>
|
||
|
<div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  <span class="comment">//detail::fvec4SIMD frexp(detail::fvec4SIMD const & x, detail::ivec4SIMD & exp);</span></div>
|
||
|
<div class="line"><a name="l00413"></a><span class="lineno"> 413</span> </div>
|
||
|
<div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  <span class="comment">//detail::fvec4SIMD ldexp(detail::fvec4SIMD const & x, detail::ivec4SIMD const & exp);</span></div>
|
||
|
<div class="line"><a name="l00422"></a><span class="lineno"> 422</span> </div>
|
||
|
<div class="line"><a name="l00426"></a><span class="lineno"> 426</span>  <span class="keywordtype">float</span> <a class="code" href="a00153.html#ga18d45e3d4c7705e67ccfabd99e521604">length</a>(</div>
|
||
|
<div class="line"><a name="l00427"></a><span class="lineno"> 427</span>  detail::fvec4SIMD const & x);</div>
|
||
|
<div class="line"><a name="l00428"></a><span class="lineno"> 428</span> </div>
|
||
|
<div class="line"><a name="l00433"></a><span class="lineno"> 433</span>  <span class="keywordtype">float</span> <a class="code" href="a00198.html#gafe697d6287719538346bbdf8b1367c59">fastLength</a>(</div>
|
||
|
<div class="line"><a name="l00434"></a><span class="lineno"> 434</span>  detail::fvec4SIMD const & x);</div>
|
||
|
<div class="line"><a name="l00435"></a><span class="lineno"> 435</span> </div>
|
||
|
<div class="line"><a name="l00440"></a><span class="lineno"> 440</span>  <span class="keywordtype">float</span> niceLength(</div>
|
||
|
<div class="line"><a name="l00441"></a><span class="lineno"> 441</span>  detail::fvec4SIMD const & x);</div>
|
||
|
<div class="line"><a name="l00442"></a><span class="lineno"> 442</span> </div>
|
||
|
<div class="line"><a name="l00446"></a><span class="lineno"> 446</span>  detail::fvec4SIMD length4(</div>
|
||
|
<div class="line"><a name="l00447"></a><span class="lineno"> 447</span>  detail::fvec4SIMD const & x);</div>
|
||
|
<div class="line"><a name="l00448"></a><span class="lineno"> 448</span> </div>
|
||
|
<div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  detail::fvec4SIMD fastLength4(</div>
|
||
|
<div class="line"><a name="l00454"></a><span class="lineno"> 454</span>  detail::fvec4SIMD const & x);</div>
|
||
|
<div class="line"><a name="l00455"></a><span class="lineno"> 455</span> </div>
|
||
|
<div class="line"><a name="l00460"></a><span class="lineno"> 460</span>  detail::fvec4SIMD niceLength4(</div>
|
||
|
<div class="line"><a name="l00461"></a><span class="lineno"> 461</span>  detail::fvec4SIMD const & x);</div>
|
||
|
<div class="line"><a name="l00462"></a><span class="lineno"> 462</span> </div>
|
||
|
<div class="line"><a name="l00466"></a><span class="lineno"> 466</span>  <span class="keywordtype">float</span> <a class="code" href="a00153.html#ga7ca317dde0d7e94d920153554d4a02a8">distance</a>(</div>
|
||
|
<div class="line"><a name="l00467"></a><span class="lineno"> 467</span>  detail::fvec4SIMD const & p0,</div>
|
||
|
<div class="line"><a name="l00468"></a><span class="lineno"> 468</span>  detail::fvec4SIMD const & p1);</div>
|
||
|
<div class="line"><a name="l00469"></a><span class="lineno"> 469</span> </div>
|
||
|
<div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  detail::fvec4SIMD distance4(</div>
|
||
|
<div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  detail::fvec4SIMD const & p0,</div>
|
||
|
<div class="line"><a name="l00475"></a><span class="lineno"> 475</span>  detail::fvec4SIMD const & p1);</div>
|
||
|
<div class="line"><a name="l00476"></a><span class="lineno"> 476</span> </div>
|
||
|
<div class="line"><a name="l00480"></a><span class="lineno"> 480</span>  <span class="keywordtype">float</span> simdDot(</div>
|
||
|
<div class="line"><a name="l00481"></a><span class="lineno"> 481</span>  detail::fvec4SIMD const & x,</div>
|
||
|
<div class="line"><a name="l00482"></a><span class="lineno"> 482</span>  detail::fvec4SIMD const & y);</div>
|
||
|
<div class="line"><a name="l00483"></a><span class="lineno"> 483</span> </div>
|
||
|
<div class="line"><a name="l00487"></a><span class="lineno"> 487</span>  detail::fvec4SIMD dot4(</div>
|
||
|
<div class="line"><a name="l00488"></a><span class="lineno"> 488</span>  detail::fvec4SIMD const & x,</div>
|
||
|
<div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  detail::fvec4SIMD const & y);</div>
|
||
|
<div class="line"><a name="l00490"></a><span class="lineno"> 490</span> </div>
|
||
|
<div class="line"><a name="l00494"></a><span class="lineno"> 494</span>  detail::fvec4SIMD <a class="code" href="a00153.html#gafe2cae8cb26fd44be62aee97369d0af8">cross</a>(</div>
|
||
|
<div class="line"><a name="l00495"></a><span class="lineno"> 495</span>  detail::fvec4SIMD const & x,</div>
|
||
|
<div class="line"><a name="l00496"></a><span class="lineno"> 496</span>  detail::fvec4SIMD const & y);</div>
|
||
|
<div class="line"><a name="l00497"></a><span class="lineno"> 497</span> </div>
|
||
|
<div class="line"><a name="l00501"></a><span class="lineno"> 501</span>  detail::fvec4SIMD <a class="code" href="a00153.html#gada9451ec170a36fe53552812b9c03a68">normalize</a>(</div>
|
||
|
<div class="line"><a name="l00502"></a><span class="lineno"> 502</span>  detail::fvec4SIMD const & x);</div>
|
||
|
<div class="line"><a name="l00503"></a><span class="lineno"> 503</span> </div>
|
||
|
<div class="line"><a name="l00508"></a><span class="lineno"> 508</span>  detail::fvec4SIMD <a class="code" href="a00198.html#ga3b02c1d6e0c754144e2f1e110bf9f16c">fastNormalize</a>(</div>
|
||
|
<div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  detail::fvec4SIMD const & x);</div>
|
||
|
<div class="line"><a name="l00510"></a><span class="lineno"> 510</span> </div>
|
||
|
<div class="line"><a name="l00514"></a><span class="lineno"> 514</span>  detail::fvec4SIMD simdFaceforward(</div>
|
||
|
<div class="line"><a name="l00515"></a><span class="lineno"> 515</span>  detail::fvec4SIMD const & N,</div>
|
||
|
<div class="line"><a name="l00516"></a><span class="lineno"> 516</span>  detail::fvec4SIMD const & I,</div>
|
||
|
<div class="line"><a name="l00517"></a><span class="lineno"> 517</span>  detail::fvec4SIMD const & Nref);</div>
|
||
|
<div class="line"><a name="l00518"></a><span class="lineno"> 518</span> </div>
|
||
|
<div class="line"><a name="l00523"></a><span class="lineno"> 523</span>  detail::fvec4SIMD <a class="code" href="a00153.html#gab63646fc36b81cf69d3ce123a72f76f2">reflect</a>(</div>
|
||
|
<div class="line"><a name="l00524"></a><span class="lineno"> 524</span>  detail::fvec4SIMD const & I,</div>
|
||
|
<div class="line"><a name="l00525"></a><span class="lineno"> 525</span>  detail::fvec4SIMD const & N);</div>
|
||
|
<div class="line"><a name="l00526"></a><span class="lineno"> 526</span> </div>
|
||
|
<div class="line"><a name="l00532"></a><span class="lineno"> 532</span>  detail::fvec4SIMD <a class="code" href="a00153.html#gab7e7cdf4403931a5f7b74560ad64159b">refract</a>(</div>
|
||
|
<div class="line"><a name="l00533"></a><span class="lineno"> 533</span>  detail::fvec4SIMD const & I,</div>
|
||
|
<div class="line"><a name="l00534"></a><span class="lineno"> 534</span>  detail::fvec4SIMD const & N,</div>
|
||
|
<div class="line"><a name="l00535"></a><span class="lineno"> 535</span>  <span class="keywordtype">float</span> const & eta);</div>
|
||
|
<div class="line"><a name="l00536"></a><span class="lineno"> 536</span> </div>
|
||
|
<div class="line"><a name="l00540"></a><span class="lineno"> 540</span>  detail::fvec4SIMD <a class="code" href="a00152.html#gae7ac2e44c14d4e8004098d0bfba6e2b8">sqrt</a>(</div>
|
||
|
<div class="line"><a name="l00541"></a><span class="lineno"> 541</span>  detail::fvec4SIMD const & x);</div>
|
||
|
<div class="line"><a name="l00542"></a><span class="lineno"> 542</span> </div>
|
||
|
<div class="line"><a name="l00547"></a><span class="lineno"> 547</span>  detail::fvec4SIMD niceSqrt(</div>
|
||
|
<div class="line"><a name="l00548"></a><span class="lineno"> 548</span>  detail::fvec4SIMD const & x);</div>
|
||
|
<div class="line"><a name="l00549"></a><span class="lineno"> 549</span> </div>
|
||
|
<div class="line"><a name="l00554"></a><span class="lineno"> 554</span>  detail::fvec4SIMD <a class="code" href="a00198.html#ga6c460e9414a50b2fc455c8f64c86cdc9">fastSqrt</a>(</div>
|
||
|
<div class="line"><a name="l00555"></a><span class="lineno"> 555</span>  detail::fvec4SIMD const & x);</div>
|
||
|
<div class="line"><a name="l00556"></a><span class="lineno"> 556</span> </div>
|
||
|
<div class="line"><a name="l00560"></a><span class="lineno"> 560</span>  detail::fvec4SIMD <a class="code" href="a00152.html#ga599103d4fe4ef2234761ba8da7268627">inversesqrt</a>(</div>
|
||
|
<div class="line"><a name="l00561"></a><span class="lineno"> 561</span>  detail::fvec4SIMD const & x);</div>
|
||
|
<div class="line"><a name="l00562"></a><span class="lineno"> 562</span> </div>
|
||
|
<div class="line"><a name="l00567"></a><span class="lineno"> 567</span>  detail::fvec4SIMD fastInversesqrt(</div>
|
||
|
<div class="line"><a name="l00568"></a><span class="lineno"> 568</span>  detail::fvec4SIMD const & x);</div>
|
||
|
<div class="line"><a name="l00569"></a><span class="lineno"> 569</span> </div>
|
||
|
<div class="line"><a name="l00571"></a><span class="lineno"> 571</span> }<span class="comment">//namespace glm</span></div>
|
||
|
<div class="line"><a name="l00572"></a><span class="lineno"> 572</span> </div>
|
||
|
<div class="line"><a name="l00573"></a><span class="lineno"> 573</span> <span class="preprocessor">#include "simd_vec4.inl"</span></div>
|
||
|
<div class="line"><a name="l00574"></a><span class="lineno"> 574</span> </div>
|
||
|
<div class="line"><a name="l00575"></a><span class="lineno"> 575</span> <span class="preprocessor">#if (GLM_COMPILER & GLM_COMPILER_VC)</span></div>
|
||
|
<div class="line"><a name="l00576"></a><span class="lineno"> 576</span> <span class="preprocessor"># pragma warning(pop)</span></div>
|
||
|
<div class="line"><a name="l00577"></a><span class="lineno"> 577</span> <span class="preprocessor">#endif</span></div>
|
||
|
<div class="line"><a name="l00578"></a><span class="lineno"> 578</span> </div>
|
||
|
<div class="line"><a name="l00579"></a><span class="lineno"> 579</span> <span class="preprocessor">#endif//(GLM_ARCH != GLM_ARCH_PURE)</span></div>
|
||
|
<div class="ttc" id="a00153_html_ga7ca317dde0d7e94d920153554d4a02a8"><div class="ttname"><a href="a00153.html#ga7ca317dde0d7e94d920153554d4a02a8">glm::distance</a></div><div class="ttdeci">GLM_FUNC_DECL T distance(vecType< T, P > const &p0, vecType< T, P > const &p1)</div><div class="ttdoc">Returns the distance betwwen p0 and p1, i.e., length(p0 - p1). </div></div>
|
||
|
<div class="ttc" id="a00151_html_ga93bce26c7d80d30a62f5c508f8498a6c"><div class="ttname"><a href="a00151.html#ga93bce26c7d80d30a62f5c508f8498a6c">glm::clamp</a></div><div class="ttdeci">GLM_FUNC_DECL genType clamp(genType x, genType minVal, genType maxVal)</div><div class="ttdoc">Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal an...</div></div>
|
||
|
<div class="ttc" id="a00151_html_gad0f444d4b81cc53c3b6edf5aa25078c2"><div class="ttname"><a href="a00151.html#gad0f444d4b81cc53c3b6edf5aa25078c2">glm::fma</a></div><div class="ttdeci">GLM_FUNC_DECL genType fma(genType const &a, genType const &b, genType const &c)</div><div class="ttdoc">Computes and returns a * b + c. </div></div>
|
||
|
<div class="ttc" id="a00151_html_ga568b822b78f045f77c3325e165b44d5d"><div class="ttname"><a href="a00151.html#ga568b822b78f045f77c3325e165b44d5d">glm::floor</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > floor(vecType< T, P > const &x)</div><div class="ttdoc">Returns a value equal to the nearest integer that is less then or equal to x. </div></div>
|
||
|
<div class="ttc" id="a00151_html_ga8ba89e40e55ae5cdf228548f9b7639c7"><div class="ttname"><a href="a00151.html#ga8ba89e40e55ae5cdf228548f9b7639c7">glm::fract</a></div><div class="ttdeci">GLM_FUNC_DECL genType fract(genType x)</div><div class="ttdoc">Return x - floor(x). </div></div>
|
||
|
<div class="ttc" id="a00153_html_ga18d45e3d4c7705e67ccfabd99e521604"><div class="ttname"><a href="a00153.html#ga18d45e3d4c7705e67ccfabd99e521604">glm::length</a></div><div class="ttdeci">GLM_FUNC_DECL T length(vecType< T, P > const &x)</div><div class="ttdoc">Returns the length of x, i.e., sqrt(x * x). </div></div>
|
||
|
<div class="ttc" id="a00198_html_ga3b02c1d6e0c754144e2f1e110bf9f16c"><div class="ttname"><a href="a00198.html#ga3b02c1d6e0c754144e2f1e110bf9f16c">glm::fastNormalize</a></div><div class="ttdeci">GLM_FUNC_DECL genType fastNormalize(genType const &x)</div><div class="ttdoc">Faster than the common normalize function but less accurate. </div></div>
|
||
|
<div class="ttc" id="a00163_html_ga09d0200e8ff86391d8804b4fefd5f1da"><div class="ttname"><a href="a00163.html#ga09d0200e8ff86391d8804b4fefd5f1da">glm::vec2</a></div><div class="ttdeci">highp_vec2 vec2</div><div class="ttdoc">2 components vector of floating-point numbers. </div><div class="ttdef"><b>Definition:</b> <a href="a00132_source.html#l00390">type_vec.hpp:390</a></div></div>
|
||
|
<div class="ttc" id="a00151_html_ga9189b2bec45ff301923ea8f8dd157fb8"><div class="ttname"><a href="a00151.html#ga9189b2bec45ff301923ea8f8dd157fb8">glm::ceil</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > ceil(vecType< T, P > const &x)</div><div class="ttdoc">Returns a value equal to the nearest integer that is greater than or equal to x. </div></div>
|
||
|
<div class="ttc" id="a00151_html_ga562edf7eca082cc5b7a0aaf180436daf"><div class="ttname"><a href="a00151.html#ga562edf7eca082cc5b7a0aaf180436daf">glm::smoothstep</a></div><div class="ttdeci">GLM_FUNC_DECL genType smoothstep(genType edge0, genType edge1, genType x)</div><div class="ttdoc">Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and performs smooth Hermite interpolation between 0 a...</div></div>
|
||
|
<div class="ttc" id="a00151_html_ga634cdbf8b37edca03f2248450570fd54"><div class="ttname"><a href="a00151.html#ga634cdbf8b37edca03f2248450570fd54">glm::trunc</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > trunc(vecType< T, P > const &x)</div><div class="ttdoc">Returns a value equal to the nearest integer to x whose absolute value is not larger than the absolut...</div></div>
|
||
|
<div class="ttc" id="a00153_html_gab7e7cdf4403931a5f7b74560ad64159b"><div class="ttname"><a href="a00153.html#gab7e7cdf4403931a5f7b74560ad64159b">glm::refract</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > refract(vecType< T, P > const &I, vecType< T, P > const &N, T eta)</div><div class="ttdoc">For the incident vector I and surface normal N, and the ratio of indices of refraction eta...</div></div>
|
||
|
<div class="ttc" id="a00198_html_gafe697d6287719538346bbdf8b1367c59"><div class="ttname"><a href="a00198.html#gafe697d6287719538346bbdf8b1367c59">glm::fastLength</a></div><div class="ttdeci">GLM_FUNC_DECL genType fastLength(genType x)</div><div class="ttdoc">Faster than the common length function but less accurate. </div></div>
|
||
|
<div class="ttc" id="a00151_html_gada0165544c0618d634c8056a88082ce9"><div class="ttname"><a href="a00151.html#gada0165544c0618d634c8056a88082ce9">glm::round</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > round(vecType< T, P > const &x)</div><div class="ttdoc">Returns a value equal to the nearest integer to x. </div></div>
|
||
|
<div class="ttc" id="a00153_html_gada9451ec170a36fe53552812b9c03a68"><div class="ttname"><a href="a00153.html#gada9451ec170a36fe53552812b9c03a68">glm::normalize</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > normalize(vecType< T, P > const &x)</div><div class="ttdoc">Returns a vector in the same direction as x but with length of 1. </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#l00040">_noise.hpp:40</a></div></div>
|
||
|
<div class="ttc" id="a00151_html_gac3446b4138e0b8757561c07cd19f084d"><div class="ttname"><a href="a00151.html#gac3446b4138e0b8757561c07cd19f084d">glm::sign</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > sign(vecType< T, P > const &x)</div><div class="ttdoc">Returns 1.0 if x > 0, 0.0 if x == 0, or -1.0 if x < 0. </div></div>
|
||
|
<div class="ttc" id="a00153_html_gab63646fc36b81cf69d3ce123a72f76f2"><div class="ttname"><a href="a00153.html#gab63646fc36b81cf69d3ce123a72f76f2">glm::reflect</a></div><div class="ttdeci">GLM_FUNC_DECL genType reflect(genType const &I, genType const &N)</div><div class="ttdoc">For the incident vector I and surface orientation N, returns the reflection direction : result = I - ...</div></div>
|
||
|
<div class="ttc" id="a00198_html_ga6c460e9414a50b2fc455c8f64c86cdc9"><div class="ttname"><a href="a00198.html#ga6c460e9414a50b2fc455c8f64c86cdc9">glm::fastSqrt</a></div><div class="ttdeci">GLM_FUNC_DECL genType fastSqrt(genType x)</div><div class="ttdoc">Faster than the common sqrt function but less accurate. </div></div>
|
||
|
<div class="ttc" id="a00163_html_gafbab23070ca47932487d25332adc7d7c"><div class="ttname"><a href="a00163.html#gafbab23070ca47932487d25332adc7d7c">glm::vec4</a></div><div class="ttdeci">highp_vec4 vec4</div><div class="ttdoc">4 components vector of floating-point numbers. </div><div class="ttdef"><b>Definition:</b> <a href="a00132_source.html#l00400">type_vec.hpp:400</a></div></div>
|
||
|
<div class="ttc" id="a00151_html_ga98caa7f95a94c86a86ebce893a45326c"><div class="ttname"><a href="a00151.html#ga98caa7f95a94c86a86ebce893a45326c">glm::max</a></div><div class="ttdeci">GLM_FUNC_DECL genType max(genType x, genType y)</div><div class="ttdoc">Returns y if x < y; otherwise, it returns x. </div></div>
|
||
|
<div class="ttc" id="a00163_html_gaa8ea2429bb3cb41a715258a447f39897"><div class="ttname"><a href="a00163.html#gaa8ea2429bb3cb41a715258a447f39897">glm::vec3</a></div><div class="ttdeci">highp_vec3 vec3</div><div class="ttdoc">3 components vector of floating-point numbers. </div><div class="ttdef"><b>Definition:</b> <a href="a00132_source.html#l00395">type_vec.hpp:395</a></div></div>
|
||
|
<div class="ttc" id="a00151_html_ga693d77696ff36572a0da79efec965acd"><div class="ttname"><a href="a00151.html#ga693d77696ff36572a0da79efec965acd">glm::abs</a></div><div class="ttdeci">GLM_FUNC_DECL genType abs(genType x)</div><div class="ttdoc">Returns x if x >= 0; otherwise, it returns -x. </div></div>
|
||
|
<div class="ttc" id="a00151_html_ga2c2bde1cec025b7ddff83c74a1113719"><div class="ttname"><a href="a00151.html#ga2c2bde1cec025b7ddff83c74a1113719">glm::min</a></div><div class="ttdeci">GLM_FUNC_DECL genType min(genType x, genType y)</div><div class="ttdoc">Returns y if y < x; otherwise, it returns x. </div></div>
|
||
|
<div class="ttc" id="a00152_html_ga599103d4fe4ef2234761ba8da7268627"><div class="ttname"><a href="a00152.html#ga599103d4fe4ef2234761ba8da7268627">glm::inversesqrt</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > inversesqrt(vecType< T, P > const &v)</div><div class="ttdoc">Returns the reciprocal of the positive square root of v. </div></div>
|
||
|
<div class="ttc" id="a00151_html_gadccbaffe46f369cf1a96b2aef92cbfdd"><div class="ttname"><a href="a00151.html#gadccbaffe46f369cf1a96b2aef92cbfdd">glm::mix</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > mix(vecType< T, P > const &x, vecType< T, P > const &y, vecType< U, P > const &a)</div><div class="ttdoc">If genTypeU is a floating scalar or vector: Returns x * (1.0 - a) + y * a, i.e., the linear blend of ...</div></div>
|
||
|
<div class="ttc" id="a00151_html_ga015a1261ff23e12650211aa872863cce"><div class="ttname"><a href="a00151.html#ga015a1261ff23e12650211aa872863cce">glm::step</a></div><div class="ttdeci">GLM_FUNC_DECL genType step(genType edge, genType x)</div><div class="ttdoc">Returns 0.0 if x < edge, otherwise it returns 1.0 for each component of a genType. </div></div>
|
||
|
<div class="ttc" id="a00151_html_ga12201563ef902e3b07e0d1d7656efdb1"><div class="ttname"><a href="a00151.html#ga12201563ef902e3b07e0d1d7656efdb1">glm::mod</a></div><div class="ttdeci">GLM_FUNC_DECL genType mod(genType x, genType y)</div><div class="ttdoc">Modulus. </div></div>
|
||
|
<div class="ttc" id="a00152_html_gae7ac2e44c14d4e8004098d0bfba6e2b8"><div class="ttname"><a href="a00152.html#gae7ac2e44c14d4e8004098d0bfba6e2b8">glm::sqrt</a></div><div class="ttdeci">GLM_FUNC_DECL vecType< T, P > sqrt(vecType< T, P > const &v)</div><div class="ttdoc">Returns the positive square root of v. </div></div>
|
||
|
<div class="ttc" id="a00153_html_gafe2cae8cb26fd44be62aee97369d0af8"><div class="ttname"><a href="a00153.html#gafe2cae8cb26fd44be62aee97369d0af8">glm::cross</a></div><div class="ttdeci">GLM_FUNC_DECL tvec3< T, P > cross(tvec3< T, P > const &x, tvec3< T, P > const &y)</div><div class="ttdoc">Returns the cross product of x and y. </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.10
|
||
|
</small></address>
|
||
|
</body>
|
||
|
</html>
|