<ahref="a00101.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> </div>
<divclass="line"><aname="l00020"></a><spanclass="lineno"> 20</span> <spanclass="preprocessor">#if(GLM_ARCH & GLM_ARCH_SSE2_BIT)</span></div>
<divclass="line"><aname="l00021"></a><spanclass="lineno"> 21</span> <spanclass="preprocessor"># include "../detail/intrinsic_common.hpp"</span></div>
<divclass="line"><aname="l00022"></a><spanclass="lineno"> 22</span> <spanclass="preprocessor"># include "../detail/intrinsic_geometric.hpp"</span></div>
<divclass="line"><aname="l00023"></a><spanclass="lineno"> 23</span> <spanclass="preprocessor"># include "../detail/intrinsic_integer.hpp"</span></div>
<divclass="line"><aname="l00025"></a><spanclass="lineno"> 25</span> <spanclass="preprocessor"># error "GLM: GLM_GTX_simd_vec4 requires compiler support of SSE2 through intrinsics"</span></div>
<divclass="line"><aname="l00030"></a><spanclass="lineno"> 30</span> <spanclass="preprocessor"># pragma message("GLM: GLM_GTX_simd_vec4 extension is deprecated and will be removed in GLM 0.9.9. Use *vec4 types instead and use compiler SIMD arguments.")</span></div>
<divclass="line"><aname="l00034"></a><spanclass="lineno"> 34</span> <spanclass="comment">// Warning silencer for nameless struct/union.</span></div>
<divclass="line"><aname="l00035"></a><spanclass="lineno"> 35</span> <spanclass="preprocessor">#if (GLM_COMPILER & GLM_COMPILER_VC)</span></div>
<divclass="line"><aname="l00104"></a><spanclass="lineno"> 104</span> <aclass="code"href="a00157.html#gafbab23070ca47932487d25332adc7d7c">vec4</a> const & v);</div>
<divclass="line"><aname="l00109"></a><spanclass="lineno"> 109</span>  fvec4SIMD(<aclass="code"href="a00157.html#ga09d0200e8ff86391d8804b4fefd5f1da">vec2</a> const & v, <spanclass="keywordtype">float</span> const & s1, <spanclass="keywordtype">float</span> const & s2);</div>
<divclass="line"><aname="l00110"></a><spanclass="lineno"> 110</span>  fvec4SIMD(<spanclass="keywordtype">float</span> const & s1, <aclass="code"href="a00157.html#ga09d0200e8ff86391d8804b4fefd5f1da">vec2</a> const & v, <spanclass="keywordtype">float</span> const & s2);</div>
<divclass="line"><aname="l00111"></a><spanclass="lineno"> 111</span>  fvec4SIMD(<spanclass="keywordtype">float</span> const & s1, <spanclass="keywordtype">float</span> const & s2, <aclass="code"href="a00157.html#ga09d0200e8ff86391d8804b4fefd5f1da">vec2</a> const & v);</div>
<divclass="line"><aname="l00112"></a><spanclass="lineno"> 112</span>  fvec4SIMD(<aclass="code"href="a00157.html#gaa8ea2429bb3cb41a715258a447f39897">vec3</a> const & v, <spanclass="keywordtype">float</span> const & s);</div>
<divclass="line"><aname="l00113"></a><spanclass="lineno"> 113</span>  fvec4SIMD(<spanclass="keywordtype">float</span> const & s, <aclass="code"href="a00157.html#gaa8ea2429bb3cb41a715258a447f39897">vec3</a> const & v);</div>
<divclass="line"><aname="l00114"></a><spanclass="lineno"> 114</span>  fvec4SIMD(<aclass="code"href="a00157.html#ga09d0200e8ff86391d8804b4fefd5f1da">vec2</a> const & v1, <aclass="code"href="a00157.html#ga09d0200e8ff86391d8804b4fefd5f1da">vec2</a> const & v2);</div>
<divclass="line"><aname="l00115"></a><spanclass="lineno"> 115</span> <spanclass="comment">//fvec4SIMD(ivec4SIMD const & v);</span></div>
<divclass="line"><aname="l00379"></a><spanclass="lineno"> 379</span> <spanclass="comment">//detail::fvec4SIMD frexp(detail::fvec4SIMD const & x, detail::ivec4SIMD & exp);</span></div>
<divclass="line"><aname="l00388"></a><spanclass="lineno"> 388</span> <spanclass="comment">//detail::fvec4SIMD ldexp(detail::fvec4SIMD const & x, detail::ivec4SIMD const & exp);</span></div>
<divclass="line"><aname="l00542"></a><spanclass="lineno"> 542</span> <spanclass="preprocessor">#if (GLM_COMPILER & GLM_COMPILER_VC)</span></div>
<divclass="ttc"id="a00146_html_ga8ba89e40e55ae5cdf228548f9b7639c7"><divclass="ttname"><ahref="a00146.html#ga8ba89e40e55ae5cdf228548f9b7639c7">glm::fract</a></div><divclass="ttdeci">GLM_FUNC_DECL genType fract(genType x)</div><divclass="ttdoc">Return x - floor(x). </div></div>
<divclass="ttc"id="a00146_html_ga9189b2bec45ff301923ea8f8dd157fb8"><divclass="ttname"><ahref="a00146.html#ga9189b2bec45ff301923ea8f8dd157fb8">glm::ceil</a></div><divclass="ttdeci">GLM_FUNC_DECL vecType< T, P > ceil(vecType< T, P > const &x)</div><divclass="ttdoc">Returns a value equal to the nearest integer that is greater than or equal to x. </div></div>
<divclass="ttc"id="a00194_html_ga3b02c1d6e0c754144e2f1e110bf9f16c"><divclass="ttname"><ahref="a00194.html#ga3b02c1d6e0c754144e2f1e110bf9f16c">glm::fastNormalize</a></div><divclass="ttdeci">GLM_FUNC_DECL genType fastNormalize(genType const &x)</div><divclass="ttdoc">Faster than the common normalize function but less accurate. </div></div>
<divclass="ttc"id="a00194_html_ga6c460e9414a50b2fc455c8f64c86cdc9"><divclass="ttname"><ahref="a00194.html#ga6c460e9414a50b2fc455c8f64c86cdc9">glm::fastSqrt</a></div><divclass="ttdeci">GLM_FUNC_DECL genType fastSqrt(genType x)</div><divclass="ttdoc">Faster than the common sqrt function but less accurate. </div></div>
<divclass="ttc"id="a00157_html_gafbab23070ca47932487d25332adc7d7c"><divclass="ttname"><ahref="a00157.html#gafbab23070ca47932487d25332adc7d7c">glm::vec4</a></div><divclass="ttdeci">highp_vec4 vec4</div><divclass="ttdoc">4 components vector of floating-point numbers. </div><divclass="ttdef"><b>Definition:</b><ahref="a00127_source.html#l00466">type_vec.hpp:466</a></div></div>
<divclass="ttc"id="a00146_html_ga562edf7eca082cc5b7a0aaf180436daf"><divclass="ttname"><ahref="a00146.html#ga562edf7eca082cc5b7a0aaf180436daf">glm::smoothstep</a></div><divclass="ttdeci">GLM_FUNC_DECL genType smoothstep(genType edge0, genType edge1, genType x)</div><divclass="ttdoc">Returns 0.0 if x <= edge0 and 1.0 if x >= edge1 and performs smooth Hermite interpolation between 0 a...</div></div>
<divclass="ttc"id="a00146_html_ga98caa7f95a94c86a86ebce893a45326c"><divclass="ttname"><ahref="a00146.html#ga98caa7f95a94c86a86ebce893a45326c">glm::max</a></div><divclass="ttdeci">GLM_FUNC_DECL genType max(genType x, genType y)</div><divclass="ttdoc">Returns y if x <y;otherwise,itreturnsx.</div></div>
<divclass="ttc"id="a00146_html_gada0165544c0618d634c8056a88082ce9"><divclass="ttname"><ahref="a00146.html#gada0165544c0618d634c8056a88082ce9">glm::round</a></div><divclass="ttdeci">GLM_FUNC_DECL vecType< T, P > round(vecType< T, P > const &x)</div><divclass="ttdoc">Returns a value equal to the nearest integer to x. </div></div>
<divclass="ttc"id="a00146_html_gadccbaffe46f369cf1a96b2aef92cbfdd"><divclass="ttname"><ahref="a00146.html#gadccbaffe46f369cf1a96b2aef92cbfdd">glm::mix</a></div><divclass="ttdeci">GLM_FUNC_DECL vecType< T, P > mix(vecType< T, P > const &x, vecType< T, P > const &y, vecType< U, P > const &a)</div><divclass="ttdoc">If genTypeU is a floating scalar or vector: Returns x * (1.0 - a) + y * a, i.e., the linear blend of ...</div></div>
<divclass="ttc"id="a00146_html_ga634cdbf8b37edca03f2248450570fd54"><divclass="ttname"><ahref="a00146.html#ga634cdbf8b37edca03f2248450570fd54">glm::trunc</a></div><divclass="ttdeci">GLM_FUNC_DECL vecType< T, P > trunc(vecType< T, P > const &x)</div><divclass="ttdoc">Returns a value equal to the nearest integer to x whose absolute value is not larger than the absolut...</div></div>
<divclass="ttc"id="a00146_html_ga693d77696ff36572a0da79efec965acd"><divclass="ttname"><ahref="a00146.html#ga693d77696ff36572a0da79efec965acd">glm::abs</a></div><divclass="ttdeci">GLM_FUNC_DECL genType abs(genType x)</div><divclass="ttdoc">Returns x if x >= 0; otherwise, it returns -x. </div></div>
<divclass="ttc"id="a00148_html_gafe2cae8cb26fd44be62aee97369d0af8"><divclass="ttname"><ahref="a00148.html#gafe2cae8cb26fd44be62aee97369d0af8">glm::cross</a></div><divclass="ttdeci">GLM_FUNC_DECL tvec3< T, P > cross(tvec3< T, P > const &x, tvec3< T, P > const &y)</div><divclass="ttdoc">Returns the cross product of x and y. </div></div>
<divclass="ttc"id="a00148_html_gab63646fc36b81cf69d3ce123a72f76f2"><divclass="ttname"><ahref="a00148.html#gab63646fc36b81cf69d3ce123a72f76f2">glm::reflect</a></div><divclass="ttdeci">GLM_FUNC_DECL genType reflect(genType const &I, genType const &N)</div><divclass="ttdoc">For the incident vector I and surface orientation N, returns the reflection direction : result = I - ...</div></div>
<divclass="ttc"id="a00147_html_gae7ac2e44c14d4e8004098d0bfba6e2b8"><divclass="ttname"><ahref="a00147.html#gae7ac2e44c14d4e8004098d0bfba6e2b8">glm::sqrt</a></div><divclass="ttdeci">GLM_FUNC_DECL vecType< T, P > sqrt(vecType< T, P > const &v)</div><divclass="ttdoc">Returns the positive square root of v. </div></div>
<divclass="ttc"id="a00148_html_gada9451ec170a36fe53552812b9c03a68"><divclass="ttname"><ahref="a00148.html#gada9451ec170a36fe53552812b9c03a68">glm::normalize</a></div><divclass="ttdeci">GLM_FUNC_DECL vecType< T, P > normalize(vecType< T, P > const &x)</div><divclass="ttdoc">Returns a vector in the same direction as x but with length of 1. </div></div>
<divclass="ttc"id="a00146_html_ga015a1261ff23e12650211aa872863cce"><divclass="ttname"><ahref="a00146.html#ga015a1261ff23e12650211aa872863cce">glm::step</a></div><divclass="ttdeci">GLM_FUNC_DECL genType step(genType edge, genType x)</div><divclass="ttdoc">Returns 0.0 if x <edge,otherwiseitreturns1.0foreachcomponentofagenType.</div></div>
<divclass="ttc"id="a00148_html_ga7ca317dde0d7e94d920153554d4a02a8"><divclass="ttname"><ahref="a00148.html#ga7ca317dde0d7e94d920153554d4a02a8">glm::distance</a></div><divclass="ttdeci">GLM_FUNC_DECL T distance(vecType< T, P > const &p0, vecType< T, P > const &p1)</div><divclass="ttdoc">Returns the distance betwwen p0 and p1, i.e., length(p0 - p1). </div></div>
<divclass="ttc"id="a00148_html_ga18d45e3d4c7705e67ccfabd99e521604"><divclass="ttname"><ahref="a00148.html#ga18d45e3d4c7705e67ccfabd99e521604">glm::length</a></div><divclass="ttdeci">GLM_FUNC_DECL T length(vecType< T, P > const &x)</div><divclass="ttdoc">Returns the length of x, i.e., sqrt(x * x). </div></div>
<divclass="ttc"id="a00148_html_gab7e7cdf4403931a5f7b74560ad64159b"><divclass="ttname"><ahref="a00148.html#gab7e7cdf4403931a5f7b74560ad64159b">glm::refract</a></div><divclass="ttdeci">GLM_FUNC_DECL vecType< T, P > refract(vecType< T, P > const &I, vecType< T, P > const &N, T eta)</div><divclass="ttdoc">For the incident vector I and surface normal N, and the ratio of indices of refraction eta...</div></div>
<divclass="ttc"id="a00146_html_ga2c2bde1cec025b7ddff83c74a1113719"><divclass="ttname"><ahref="a00146.html#ga2c2bde1cec025b7ddff83c74a1113719">glm::min</a></div><divclass="ttdeci">GLM_FUNC_DECL genType min(genType x, genType y)</div><divclass="ttdoc">Returns y if y <x;otherwise,itreturnsx.</div></div>
<divclass="ttc"id="a00157_html_gaa8ea2429bb3cb41a715258a447f39897"><divclass="ttname"><ahref="a00157.html#gaa8ea2429bb3cb41a715258a447f39897">glm::vec3</a></div><divclass="ttdeci">highp_vec3 vec3</div><divclass="ttdoc">3 components vector of floating-point numbers. </div><divclass="ttdef"><b>Definition:</b><ahref="a00127_source.html#l00461">type_vec.hpp:461</a></div></div>
<divclass="ttc"id="a00146_html_gad0f444d4b81cc53c3b6edf5aa25078c2"><divclass="ttname"><ahref="a00146.html#gad0f444d4b81cc53c3b6edf5aa25078c2">glm::fma</a></div><divclass="ttdeci">GLM_FUNC_DECL genType fma(genType const &a, genType const &b, genType const &c)</div><divclass="ttdoc">Computes and returns a * b + c. </div></div>
<divclass="ttc"id="a00157_html_ga09d0200e8ff86391d8804b4fefd5f1da"><divclass="ttname"><ahref="a00157.html#ga09d0200e8ff86391d8804b4fefd5f1da">glm::vec2</a></div><divclass="ttdeci">highp_vec2 vec2</div><divclass="ttdoc">2 components vector of floating-point numbers. </div><divclass="ttdef"><b>Definition:</b><ahref="a00127_source.html#l00456">type_vec.hpp:456</a></div></div>
<divclass="ttc"id="a00146_html_ga568b822b78f045f77c3325e165b44d5d"><divclass="ttname"><ahref="a00146.html#ga568b822b78f045f77c3325e165b44d5d">glm::floor</a></div><divclass="ttdeci">GLM_FUNC_DECL vecType< T, P > floor(vecType< T, P > const &x)</div><divclass="ttdoc">Returns a value equal to the nearest integer that is less then or equal to x. </div></div>
<divclass="ttc"id="a00147_html_ga599103d4fe4ef2234761ba8da7268627"><divclass="ttname"><ahref="a00147.html#ga599103d4fe4ef2234761ba8da7268627">glm::inversesqrt</a></div><divclass="ttdeci">GLM_FUNC_DECL vecType< T, P > inversesqrt(vecType< T, P > const &v)</div><divclass="ttdoc">Returns the reciprocal of the positive square root of v. </div></div>
<divclass="ttc"id="a00194_html_gafe697d6287719538346bbdf8b1367c59"><divclass="ttname"><ahref="a00194.html#gafe697d6287719538346bbdf8b1367c59">glm::fastLength</a></div><divclass="ttdeci">GLM_FUNC_DECL genType fastLength(genType x)</div><divclass="ttdoc">Faster than the common length function but less accurate. </div></div>
<divclass="ttc"id="a00146_html_ga93bce26c7d80d30a62f5c508f8498a6c"><divclass="ttname"><ahref="a00146.html#ga93bce26c7d80d30a62f5c508f8498a6c">glm::clamp</a></div><divclass="ttdeci">GLM_FUNC_DECL genType clamp(genType x, genType minVal, genType maxVal)</div><divclass="ttdoc">Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal an...</div></div>
<divclass="ttc"id="a00146_html_gac3446b4138e0b8757561c07cd19f084d"><divclass="ttname"><ahref="a00146.html#gac3446b4138e0b8757561c07cd19f084d">glm::sign</a></div><divclass="ttdeci">GLM_FUNC_DECL vecType< T, P > sign(vecType< T, P > const &x)</div><divclass="ttdoc">Returns 1.0 if x > 0, 0.0 if x == 0, or -1.0 if x <0.</div></div>