2011-10-24 14:24:48 +00:00
<!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" / >
2011-12-07 14:50:15 +00:00
2011-10-24 14:24:48 +00:00
< title > GLM_GTX_rotate_vector: Rotate vector< / title >
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
2011-12-07 14:50:15 +00:00
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
2011-10-24 14:24:48 +00:00
< / head >
< body >
2011-12-07 14:50:15 +00:00
< div id = "top" > <!-- do not remove this div! -->
2011-10-24 14:24:48 +00:00
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr style = "height: 56px;" >
2011-12-07 14:50:15 +00:00
< td id = "projectlogo" > < img alt = "Logo" src = "logo-mini.png" / > < / td >
2011-10-24 14:24:48 +00:00
< / tr >
< / tbody >
< / table >
< / div >
2011-12-07 14:50:15 +00:00
<!-- Generated by Doxygen 1.7.5 -->
2011-10-24 14:24:48 +00:00
< div id = "navrow1" class = "tabs" >
< ul class = "tablist" >
< li > < a href = "index.html" > < span > Main  Page< / span > < / a > < / li >
2011-11-12 23:26:02 +00:00
< li > < a href = "pages.html" > < span > Related  Pages< / span > < / a > < / li >
2011-10-24 14:24:48 +00:00
< li > < a href = "modules.html" > < span > Modules< / span > < / a > < / li >
< li > < a href = "annotated.html" > < span > Classes< / span > < / a > < / li >
< li > < a href = "files.html" > < span > Files< / span > < / a > < / li >
< / ul >
< / div >
< / div >
< div class = "header" >
< div class = "summary" >
< a href = "#func-members" > Functions< / a > < / div >
< div class = "headertitle" >
2011-12-07 14:50:15 +00:00
< div class = "title" > GLM_GTX_rotate_vector: Rotate vector< / div > < / div >
2011-11-12 23:26:02 +00:00
< div class = "ingroups" > < a class = "el" href = "a00152.html" > GTX Extensions (Experimental)< / a > < / div > < / div >
2011-10-24 14:24:48 +00:00
< div class = "contents" >
< table class = "memberdecls" >
< tr > < td colspan = "2" > < h2 > < a name = "func-members" > < / a >
Functions< / h2 > < / td > < / tr >
< tr > < td class = "memTemplParams" colspan = "2" > template< typename T > < / td > < / tr >
2011-12-07 14:50:15 +00:00
< tr > < td class = "memTemplItemLeft" align = "right" valign = "top" > detail::tmat4x4< T >   < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "a00214.html#ga4da5fddb2f1aa679fdb45abd344efffb" > orientation< / a > (detail::tvec3< T > const & Normal, detail::tvec3< T > const & Up)< / td > < / tr >
2011-10-24 14:24:48 +00:00
< tr > < td class = "memTemplParams" colspan = "2" > template< typename T > < / td > < / tr >
2011-12-07 14:50:15 +00:00
< tr > < td class = "memTemplItemLeft" align = "right" valign = "top" > detail::tvec2< T >   < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "a00214.html#gab40685a29feeaa0b2ceb5b733421adcb" > rotate< / a > (detail::tvec2< T > const & v, T const & angle)< / td > < / tr >
2011-10-24 14:24:48 +00:00
< tr > < td class = "memTemplParams" colspan = "2" > template< typename T > < / td > < / tr >
2011-12-07 14:50:15 +00:00
< tr > < td class = "memTemplItemLeft" align = "right" valign = "top" > detail::tvec3< T >   < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "a00214.html#gab556da0efabc9606f198f89a74cb1964" > rotate< / a > (detail::tvec3< T > const & v, T const & angle, detail::tvec3< T > const & normal)< / td > < / tr >
2011-10-24 14:24:48 +00:00
< tr > < td class = "memTemplParams" colspan = "2" > template< typename T > < / td > < / tr >
2011-12-07 14:50:15 +00:00
< tr > < td class = "memTemplItemLeft" align = "right" valign = "top" > detail::tvec4< T >   < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "a00214.html#ga6e2b5cddfb385e640dfcf1ae7769b910" > rotate< / a > (detail::tvec4< T > const & v, T const & angle, detail::tvec3< T > const & normal)< / td > < / tr >
2011-10-24 14:24:48 +00:00
< tr > < td class = "memTemplParams" colspan = "2" > template< typename T > < / td > < / tr >
2011-12-07 14:50:15 +00:00
< tr > < td class = "memTemplItemLeft" align = "right" valign = "top" > detail::tvec3< T >   < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "a00214.html#gaaadca0c077515d56955f3c662a3a3c7f" > rotateX< / a > (detail::tvec3< T > const & v, T const & angle)< / td > < / tr >
2011-10-24 14:24:48 +00:00
< tr > < td class = "memTemplParams" colspan = "2" > template< typename T > < / td > < / tr >
2011-12-07 14:50:15 +00:00
< tr > < td class = "memTemplItemLeft" align = "right" valign = "top" > detail::tvec4< T >   < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "a00214.html#ga5fb5ea6e3daf540f1445aea068f49eb1" > rotateX< / a > (detail::tvec4< T > const & v, T const & angle)< / td > < / tr >
2011-10-24 14:24:48 +00:00
< tr > < td class = "memTemplParams" colspan = "2" > template< typename T > < / td > < / tr >
2011-12-07 14:50:15 +00:00
< tr > < td class = "memTemplItemLeft" align = "right" valign = "top" > detail::tvec3< T >   < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "a00214.html#gacffa0ae7f32f4e2ee7bc1dc0ed290d45" > rotateY< / a > (detail::tvec3< T > const & v, T const & angle)< / td > < / tr >
2011-10-24 14:24:48 +00:00
< tr > < td class = "memTemplParams" colspan = "2" > template< typename T > < / td > < / tr >
2011-12-07 14:50:15 +00:00
< tr > < td class = "memTemplItemLeft" align = "right" valign = "top" > detail::tvec4< T >   < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "a00214.html#ga869410096bb5a69f9b9a58708eadcbad" > rotateY< / a > (detail::tvec4< T > const & v, T const & angle)< / td > < / tr >
2011-10-24 14:24:48 +00:00
< tr > < td class = "memTemplParams" colspan = "2" > template< typename T > < / td > < / tr >
2011-12-07 14:50:15 +00:00
< tr > < td class = "memTemplItemLeft" align = "right" valign = "top" > detail::tvec3< T >   < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "a00214.html#ga105c77751b4ab56c491334655751e0af" > rotateZ< / a > (detail::tvec3< T > const & v, T const & angle)< / td > < / tr >
2011-10-24 14:24:48 +00:00
< tr > < td class = "memTemplParams" colspan = "2" > template< typename T > < / td > < / tr >
2011-12-07 14:50:15 +00:00
< tr > < td class = "memTemplItemLeft" align = "right" valign = "top" > detail::tvec4< T >   < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "a00214.html#ga6330788b96a0ec5e76ca3dd2892cca8c" > rotateZ< / a > (detail::tvec4< T > const & v, T const & angle)< / td > < / tr >
2011-10-24 14:24:48 +00:00
< / table >
2011-12-07 14:50:15 +00:00
< hr / > < a name = "details" id = "details" > < / a > < h2 > Detailed Description< / h2 >
2011-10-24 14:24:48 +00:00
< p > Function to directly rotate a vector. < / p >
2011-11-12 23:26:02 +00:00
< p > < < a class = "el" href = "a00097.html" title = "OpenGL Mathematics (glm.g-truc.net)" > glm/gtx/rotate_vector.hpp< / a > > need to be included to use these functionalities. < / p >
2011-10-24 14:24:48 +00:00
< hr / > < h2 > Function Documentation< / h2 >
2011-12-07 14:50:15 +00:00
< a class = "anchor" id = "ga4da5fddb2f1aa679fdb45abd344efffb" > < / a > <!-- doxytag: member="glm::orientation" ref="ga4da5fddb2f1aa679fdb45abd344efffb" args="(detail::tvec3< T > const &Normal, detail::tvec3< T > const &Up)" -->
2011-10-24 14:24:48 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2011-11-12 23:26:02 +00:00
< td class = "memname" > detail::tmat4x4< T> glm::orientation < / td >
2011-10-24 14:24:48 +00:00
< td > (< / td >
< td class = "paramtype" > detail::tvec3< T > const &   < / td >
< td class = "paramname" > < em > Normal< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > detail::tvec3< T > const &   < / td >
< td class = "paramname" > < em > Up< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Build a rotation matrix from a normal and a up vector. < / p >
< p > From GLM_GTX_rotate_vector extension. < / p >
< / div >
< / div >
2011-12-07 14:50:15 +00:00
< a class = "anchor" id = "gab40685a29feeaa0b2ceb5b733421adcb" > < / a > <!-- doxytag: member="glm::rotate" ref="gab40685a29feeaa0b2ceb5b733421adcb" args="(detail::tvec2< T > const &v, T const &angle)" -->
2011-10-24 14:24:48 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2011-11-12 23:26:02 +00:00
< td class = "memname" > detail::tvec2< T> glm::rotate < / td >
2011-10-24 14:24:48 +00:00
< td > (< / td >
< td class = "paramtype" > detail::tvec2< T > const &   < / td >
< td class = "paramname" > < em > v< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > T const &   < / td >
< td class = "paramname" > < em > angle< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Rotate a two dimensional vector. < / p >
< p > From GLM_GTX_rotate_vector extension. < / p >
< / div >
< / div >
2011-12-07 14:50:15 +00:00
< a class = "anchor" id = "gab556da0efabc9606f198f89a74cb1964" > < / a > <!-- doxytag: member="glm::rotate" ref="gab556da0efabc9606f198f89a74cb1964" args="(detail::tvec3< T > const &v, T const &angle, detail::tvec3< T > const &normal)" -->
2011-10-24 14:24:48 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2011-11-12 23:26:02 +00:00
< td class = "memname" > detail::tvec3< T> glm::rotate < / td >
2011-10-24 14:24:48 +00:00
< td > (< / td >
< td class = "paramtype" > detail::tvec3< T > const &   < / td >
< td class = "paramname" > < em > v< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > T const &   < / td >
< td class = "paramname" > < em > angle< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > detail::tvec3< T > const &   < / td >
< td class = "paramname" > < em > normal< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Rotate a three dimensional vector around an axis. < / p >
< p > From GLM_GTX_rotate_vector extension. < / p >
< / div >
< / div >
2011-12-07 14:50:15 +00:00
< a class = "anchor" id = "ga6e2b5cddfb385e640dfcf1ae7769b910" > < / a > <!-- doxytag: member="glm::rotate" ref="ga6e2b5cddfb385e640dfcf1ae7769b910" args="(detail::tvec4< T > const &v, T const &angle, detail::tvec3< T > const &normal)" -->
2011-10-24 14:24:48 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2011-11-12 23:26:02 +00:00
< td class = "memname" > detail::tvec4< T> glm::rotate < / td >
2011-10-24 14:24:48 +00:00
< td > (< / td >
< td class = "paramtype" > detail::tvec4< T > const &   < / td >
< td class = "paramname" > < em > v< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > T const &   < / td >
< td class = "paramname" > < em > angle< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > detail::tvec3< T > const &   < / td >
< td class = "paramname" > < em > normal< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Rotate a four dimensional vector around an axis. < / p >
< p > From GLM_GTX_rotate_vector extension. < / p >
< / div >
< / div >
2011-12-07 14:50:15 +00:00
< a class = "anchor" id = "gaaadca0c077515d56955f3c662a3a3c7f" > < / a > <!-- doxytag: member="glm::rotateX" ref="gaaadca0c077515d56955f3c662a3a3c7f" args="(detail::tvec3< T > const &v, T const &angle)" -->
2011-10-24 14:24:48 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2011-11-12 23:26:02 +00:00
< td class = "memname" > detail::tvec3< T> glm::rotateX < / td >
2011-10-24 14:24:48 +00:00
< td > (< / td >
< td class = "paramtype" > detail::tvec3< T > const &   < / td >
< td class = "paramname" > < em > v< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > T const &   < / td >
< td class = "paramname" > < em > angle< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Rotate a three dimensional vector around the X axis. < / p >
< p > From GLM_GTX_rotate_vector extension. < / p >
< / div >
< / div >
2011-12-07 14:50:15 +00:00
< a class = "anchor" id = "ga5fb5ea6e3daf540f1445aea068f49eb1" > < / a > <!-- doxytag: member="glm::rotateX" ref="ga5fb5ea6e3daf540f1445aea068f49eb1" args="(detail::tvec4< T > const &v, T const &angle)" -->
2011-10-24 14:24:48 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2011-11-12 23:26:02 +00:00
< td class = "memname" > detail::tvec4< T> glm::rotateX < / td >
2011-10-24 14:24:48 +00:00
< td > (< / td >
< td class = "paramtype" > detail::tvec4< T > const &   < / td >
< td class = "paramname" > < em > v< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > T const &   < / td >
< td class = "paramname" > < em > angle< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Rotate a four dimentionnals vector around the X axis. < / p >
< p > From GLM_GTX_rotate_vector extension. < / p >
< / div >
< / div >
2011-12-07 14:50:15 +00:00
< a class = "anchor" id = "gacffa0ae7f32f4e2ee7bc1dc0ed290d45" > < / a > <!-- doxytag: member="glm::rotateY" ref="gacffa0ae7f32f4e2ee7bc1dc0ed290d45" args="(detail::tvec3< T > const &v, T const &angle)" -->
2011-10-24 14:24:48 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2011-11-12 23:26:02 +00:00
< td class = "memname" > detail::tvec3< T> glm::rotateY < / td >
2011-10-24 14:24:48 +00:00
< td > (< / td >
< td class = "paramtype" > detail::tvec3< T > const &   < / td >
< td class = "paramname" > < em > v< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > T const &   < / td >
< td class = "paramname" > < em > angle< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Rotate a three dimensional vector around the Y axis. < / p >
< p > From GLM_GTX_rotate_vector extension. < / p >
< / div >
< / div >
2011-12-07 14:50:15 +00:00
< a class = "anchor" id = "ga869410096bb5a69f9b9a58708eadcbad" > < / a > <!-- doxytag: member="glm::rotateY" ref="ga869410096bb5a69f9b9a58708eadcbad" args="(detail::tvec4< T > const &v, T const &angle)" -->
2011-10-24 14:24:48 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2011-11-12 23:26:02 +00:00
< td class = "memname" > detail::tvec4< T> glm::rotateY < / td >
2011-10-24 14:24:48 +00:00
< td > (< / td >
< td class = "paramtype" > detail::tvec4< T > const &   < / td >
< td class = "paramname" > < em > v< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > T const &   < / td >
< td class = "paramname" > < em > angle< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Rotate a four dimensional vector around the X axis. < / p >
< p > From GLM_GTX_rotate_vector extension. < / p >
< / div >
< / div >
2011-12-07 14:50:15 +00:00
< a class = "anchor" id = "ga105c77751b4ab56c491334655751e0af" > < / a > <!-- doxytag: member="glm::rotateZ" ref="ga105c77751b4ab56c491334655751e0af" args="(detail::tvec3< T > const &v, T const &angle)" -->
2011-10-24 14:24:48 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2011-11-12 23:26:02 +00:00
< td class = "memname" > detail::tvec3< T> glm::rotateZ < / td >
2011-10-24 14:24:48 +00:00
< td > (< / td >
< td class = "paramtype" > detail::tvec3< T > const &   < / td >
< td class = "paramname" > < em > v< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > T const &   < / td >
< td class = "paramname" > < em > angle< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Rotate a three dimensional vector around the Z axis. < / p >
< p > From GLM_GTX_rotate_vector extension. < / p >
< / div >
< / div >
2011-12-07 14:50:15 +00:00
< a class = "anchor" id = "ga6330788b96a0ec5e76ca3dd2892cca8c" > < / a > <!-- doxytag: member="glm::rotateZ" ref="ga6330788b96a0ec5e76ca3dd2892cca8c" args="(detail::tvec4< T > const &v, T const &angle)" -->
2011-10-24 14:24:48 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2011-11-12 23:26:02 +00:00
< td class = "memname" > detail::tvec4< T> glm::rotateZ < / td >
2011-10-24 14:24:48 +00:00
< td > (< / td >
< td class = "paramtype" > detail::tvec4< T > const &   < / td >
< td class = "paramname" > < em > v< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > T const &   < / td >
< td class = "paramname" > < em > angle< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Rotate a four dimensional vector around the X axis. < / p >
< p > From GLM_GTX_rotate_vector extension. < / p >
< / div >
< / div >
< / div >
2011-12-07 14:50:15 +00:00
< 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.7.5
< / small > < / address >
2011-10-24 14:24:48 +00:00
< / body >
< / html >