2012-09-05 22:30:34 +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" / >
2012-11-18 13:05:52 +00:00
< meta http-equiv = "X-UA-Compatible" content = "IE=9" / >
< title > GLM_GTC_random< / title >
2012-09-05 22:30:34 +00:00
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
2012-11-18 13:05:52 +00:00
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
2012-09-05 22:30:34 +00:00
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
2012-11-18 13:05:52 +00:00
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
2012-09-05 22:30:34 +00:00
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr style = "height: 56px;" >
2012-11-18 13:05:52 +00:00
< td id = "projectlogo" > < img alt = "Logo" src = "logo.png" / > < / td >
2012-09-05 22:30:34 +00:00
< / tr >
< / tbody >
< / table >
< / div >
2012-11-18 13:05:52 +00:00
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
2012-09-05 22:30:34 +00:00
< div id = "navrow1" class = "tabs" >
< ul class = "tablist" >
< li > < a href = "index.html" > < span > Main  Page< / span > < / a > < / li >
< li > < a href = "pages.html" > < span > Related  Pages< / span > < / a > < / li >
< li > < a href = "modules.html" > < span > Modules< / span > < / a > < / li >
< li > < a href = "files.html" > < span > Files< / span > < / a > < / li >
< / ul >
< / div >
2012-11-18 13:05:52 +00:00
< / div > <!-- top -->
2012-09-05 22:30:34 +00:00
< div class = "header" >
< div class = "summary" >
< a href = "#func-members" > Functions< / a > < / div >
< div class = "headertitle" >
2012-11-18 13:05:52 +00:00
< div class = "title" > GLM_GTC_random< / div > < / div >
< div class = "ingroups" > < a class = "el" href = "a00138.html" > GTC Extensions (Stable)< / a > < / div > < / div > <!-- header -->
2012-09-05 22:30:34 +00:00
< div class = "contents" >
< table class = "memberdecls" >
2012-11-18 13:05:52 +00:00
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "func-members" > < / a >
2012-09-05 22:30:34 +00:00
Functions< / h2 > < / td > < / tr >
2012-11-18 13:05:52 +00:00
< tr class = "memitem:ga9603f085f45198fac365d85756941be5" > < td class = "memTemplParams" colspan = "2" > template< typename T > < / td > < / tr >
< tr class = "memitem:ga9603f085f45198fac365d85756941be5" > < td class = "memTemplItemLeft" align = "right" valign = "top" > GLM_FUNC_QUALIFIER < br class = "typebreak" / >
detail::tvec3< T >   < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "a00154.html#ga9603f085f45198fac365d85756941be5" > ballRand< / a > (T const & Radius)< / td > < / tr >
< tr class = "separator:ga9603f085f45198fac365d85756941be5" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga6e74477d1997a1bc2cf62bcc36167674" > < td class = "memTemplParams" colspan = "2" > template< typename T > < / td > < / tr >
< tr class = "memitem:ga6e74477d1997a1bc2cf62bcc36167674" > < td class = "memTemplItemLeft" align = "right" valign = "top" > detail::tvec2< T >   < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "a00154.html#ga6e74477d1997a1bc2cf62bcc36167674" > circularRand< / a > (T const & Radius)< / td > < / tr >
< tr class = "separator:ga6e74477d1997a1bc2cf62bcc36167674" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:gaacf5ed0c8f984b4ca3004019c573dc51" > < td class = "memTemplParams" colspan = "2" > template< typename T > < / td > < / tr >
< tr class = "memitem:gaacf5ed0c8f984b4ca3004019c573dc51" > < td class = "memTemplItemLeft" align = "right" valign = "top" > detail::tvec2< T >   < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "a00154.html#gaacf5ed0c8f984b4ca3004019c573dc51" > diskRand< / a > (T const & Radius)< / td > < / tr >
< tr class = "separator:gaacf5ed0c8f984b4ca3004019c573dc51" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga8cf40a2f2268b91103f763b6ea2c44d8" > < td class = "memTemplParams" colspan = "2" > template< typename genType > < / td > < / tr >
< tr class = "memitem:ga8cf40a2f2268b91103f763b6ea2c44d8" > < td class = "memTemplItemLeft" align = "right" valign = "top" > genType  < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "a00154.html#ga8cf40a2f2268b91103f763b6ea2c44d8" > gaussRand< / a > (genType const & Mean, genType const & Deviation)< / td > < / tr >
< tr class = "separator:ga8cf40a2f2268b91103f763b6ea2c44d8" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga4fbce21c9727ffcd7f19813d6d7d8024" > < td class = "memTemplParams" colspan = "2" > template< typename genType > < / td > < / tr >
< tr class = "memitem:ga4fbce21c9727ffcd7f19813d6d7d8024" > < td class = "memTemplItemLeft" align = "right" valign = "top" > genType  < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "a00154.html#ga4fbce21c9727ffcd7f19813d6d7d8024" > linearRand< / a > (genType const & Min, genType const & Max)< / td > < / tr >
< tr class = "separator:ga4fbce21c9727ffcd7f19813d6d7d8024" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga291f75129653fa6371d2d57d78f8aca6" > < td class = "memTemplParams" colspan = "2" > template< typename T > < / td > < / tr >
< tr class = "memitem:ga291f75129653fa6371d2d57d78f8aca6" > < td class = "memTemplItemLeft" align = "right" valign = "top" > detail::tvec3< T >   < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "a00154.html#ga291f75129653fa6371d2d57d78f8aca6" > sphericalRand< / a > (T const & Radius)< / td > < / tr >
< tr class = "separator:ga291f75129653fa6371d2d57d78f8aca6" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2012-09-05 22:30:34 +00:00
< / table >
2012-11-18 13:05:52 +00:00
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
< p > Generate random number from various distribution methods. < / p >
< p > < < a class = "el" href = "a00078.html" title = "OpenGL Mathematics (glm.g-truc.net)" > glm/gtc/random.hpp< / a > > need to be included to use these functionalities. < / p >
< h2 class = "groupheader" > Function Documentation< / h2 >
< a class = "anchor" id = "ga9603f085f45198fac365d85756941be5" > < / a >
2012-09-05 22:30:34 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2012-11-18 13:05:52 +00:00
< td class = "memname" > GLM_FUNC_QUALIFIER detail::tvec3< T> glm::ballRand < / td >
2012-09-05 22:30:34 +00:00
< td > (< / td >
2012-11-18 13:05:52 +00:00
< td class = "paramtype" > T const &   < / td >
< td class = "paramname" > < em > Radius< / em > < / td > < td > )< / td >
2012-09-05 22:30:34 +00:00
< td > < / td >
< / tr >
< / table >
2012-11-18 13:05:52 +00:00
< / div > < div class = "memdoc" >
2012-09-05 22:30:34 +00:00
2012-11-18 13:05:52 +00:00
< p > Generate a random 3D vector which coordinates are regulary distributed within the volume of a ball of a given radius. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > Radius< / td > < td > < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section see" > < dt > See Also< / dt > < dd > < a class = "el" href = "a00154.html" title = "Generate random number from various distribution methods." > GLM_GTC_random< / a > < / dd > < / dl >
2012-09-05 22:30:34 +00:00
< / div >
< / div >
2012-11-18 13:05:52 +00:00
< a class = "anchor" id = "ga6e74477d1997a1bc2cf62bcc36167674" > < / a >
2012-09-05 22:30:34 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2012-11-18 13:05:52 +00:00
< td class = "memname" > detail::tvec2< T> glm::circularRand < / td >
2012-09-05 22:30:34 +00:00
< td > (< / td >
2012-11-18 13:05:52 +00:00
< td class = "paramtype" > T const &   < / td >
< td class = "paramname" > < em > Radius< / em > < / td > < td > )< / td >
2012-09-05 22:30:34 +00:00
< td > < / td >
< / tr >
< / table >
2012-11-18 13:05:52 +00:00
< / div > < div class = "memdoc" >
2012-09-05 22:30:34 +00:00
2012-11-18 13:05:52 +00:00
< p > Generate a random 2D vector which coordinates are regulary distributed on a circle of a given radius. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > Radius< / td > < td > < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section see" > < dt > See Also< / dt > < dd > < a class = "el" href = "a00154.html" title = "Generate random number from various distribution methods." > GLM_GTC_random< / a > < / dd > < / dl >
2012-09-05 22:30:34 +00:00
< / div >
< / div >
2012-11-18 13:05:52 +00:00
< a class = "anchor" id = "gaacf5ed0c8f984b4ca3004019c573dc51" > < / a >
2012-09-05 22:30:34 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2012-11-18 13:05:52 +00:00
< td class = "memname" > detail::tvec2< T> glm::diskRand < / td >
2012-09-05 22:30:34 +00:00
< td > (< / td >
2012-11-18 13:05:52 +00:00
< td class = "paramtype" > T const &   < / td >
< td class = "paramname" > < em > Radius< / em > < / td > < td > )< / td >
2012-09-05 22:30:34 +00:00
< td > < / td >
< / tr >
< / table >
2012-11-18 13:05:52 +00:00
< / div > < div class = "memdoc" >
2012-09-05 22:30:34 +00:00
2012-11-18 13:05:52 +00:00
< p > Generate a random 2D vector which coordinates are regulary distributed within the area of a disk of a given radius. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > Radius< / td > < td > < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section see" > < dt > See Also< / dt > < dd > < a class = "el" href = "a00154.html" title = "Generate random number from various distribution methods." > GLM_GTC_random< / a > < / dd > < / dl >
2012-09-05 22:30:34 +00:00
< / div >
< / div >
2012-11-18 13:05:52 +00:00
< a class = "anchor" id = "ga8cf40a2f2268b91103f763b6ea2c44d8" > < / a >
2012-09-05 22:30:34 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2012-11-18 13:05:52 +00:00
< td class = "memname" > genType glm::gaussRand < / td >
2012-09-05 22:30:34 +00:00
< td > (< / td >
2012-11-18 13:05:52 +00:00
< td class = "paramtype" > genType const &   < / td >
< td class = "paramname" > < em > Mean< / em > , < / td >
2012-09-05 22:30:34 +00:00
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2012-11-18 13:05:52 +00:00
< td class = "paramtype" > genType const &   < / td >
< td class = "paramname" > < em > Deviation< / em >   < / td >
2012-09-05 22:30:34 +00:00
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
2012-11-18 13:05:52 +00:00
< / div > < div class = "memdoc" >
2012-09-05 22:30:34 +00:00
2012-11-18 13:05:52 +00:00
< p > Generate random numbers in the interval [Min, Max], according a gaussian distribution. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > Mean< / td > < td > < / td > < / tr >
< tr > < td class = "paramname" > Deviation< / td > < td > < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section see" > < dt > See Also< / dt > < dd > < a class = "el" href = "a00154.html" title = "Generate random number from various distribution methods." > GLM_GTC_random< / a > < / dd > < / dl >
2012-09-05 22:30:34 +00:00
< / div >
< / div >
2012-11-18 13:05:52 +00:00
< a class = "anchor" id = "ga4fbce21c9727ffcd7f19813d6d7d8024" > < / a >
2012-09-05 22:30:34 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2012-11-18 13:05:52 +00:00
< td class = "memname" > genType glm::linearRand < / td >
2012-09-05 22:30:34 +00:00
< td > (< / td >
2012-11-18 13:05:52 +00:00
< td class = "paramtype" > genType const &   < / td >
< td class = "paramname" > < em > Min< / em > , < / td >
2012-09-05 22:30:34 +00:00
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2012-11-18 13:05:52 +00:00
< td class = "paramtype" > genType const &   < / td >
< td class = "paramname" > < em > Max< / em >   < / td >
2012-09-05 22:30:34 +00:00
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
2012-11-18 13:05:52 +00:00
< / div > < div class = "memdoc" >
< p > Generate random numbers in the interval [Min, Max], according a linear distribution. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > Min< / td > < td > < / td > < / tr >
< tr > < td class = "paramname" > Max< / td > < td > < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "tparams" > < dt > Template Parameters< / dt > < dd >
< table class = "tparams" >
< tr > < td class = "paramname" > genType< / td > < td > Value type. Currently supported: half (not recommanded), float or double scalars and vectors. < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section see" > < dt > See Also< / dt > < dd > < a class = "el" href = "a00154.html" title = "Generate random number from various distribution methods." > GLM_GTC_random< / a > < / dd > < / dl >
< / div >
< / div >
< a class = "anchor" id = "ga291f75129653fa6371d2d57d78f8aca6" > < / a >
2012-09-05 22:30:34 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2012-11-18 13:05:52 +00:00
< td class = "memname" > detail::tvec3< T> glm::sphericalRand < / td >
2012-09-05 22:30:34 +00:00
< td > (< / td >
2012-11-18 13:05:52 +00:00
< td class = "paramtype" > T const &   < / td >
< td class = "paramname" > < em > Radius< / em > < / td > < td > )< / td >
2012-09-05 22:30:34 +00:00
< td > < / td >
< / tr >
< / table >
2012-11-18 13:05:52 +00:00
< / div > < div class = "memdoc" >
2012-09-05 22:30:34 +00:00
2012-11-18 13:05:52 +00:00
< p > Generate a random 3D vector which coordinates are regulary distributed on a sphere of a given radius. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > Radius< / td > < td > < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section see" > < dt > See Also< / dt > < dd > < a class = "el" href = "a00154.html" title = "Generate random number from various distribution methods." > GLM_GTC_random< / a > < / dd > < / dl >
2012-09-05 22:30:34 +00:00
< / div >
< / div >
2012-11-18 13:05:52 +00:00
< / div > <!-- contents -->
<!-- start footer part -->
2012-09-05 22:30:34 +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" / >
2012-11-18 13:05:52 +00:00
< / a > 1.8.2
2012-09-05 22:30:34 +00:00
< / small > < / address >
< / body >
< / html >