![]() |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 #ifndef GLM_GTC_random 00041 #define GLM_GTC_random GLM_VERSION 00042 00043 // Dependency: 00044 #include "../glm.hpp" 00045 #include "../gtc/half_float.hpp" 00046 00047 #if(defined(GLM_MESSAGES) && !defined(glm_ext)) 00048 # pragma message("GLM: GLM_GTC_random extension included") 00049 #endif 00050 00051 namespace glm 00052 { 00055 00062 template <typename genType> 00063 genType linearRand( 00064 genType const & Min, 00065 genType const & Max); 00066 00072 template <typename genType> 00073 genType gaussRand( 00074 genType const & Mean, 00075 genType const & Deviation); 00076 00081 template <typename T> 00082 detail::tvec2<T> circularRand( 00083 T const & Radius); 00084 00089 template <typename T> 00090 detail::tvec3<T> sphericalRand( 00091 T const & Radius); 00092 00097 template <typename T> 00098 detail::tvec2<T> diskRand( 00099 T const & Radius); 00100 00105 template <typename T> 00106 GLM_FUNC_QUALIFIER detail::tvec3<T> ballRand( 00107 T const & Radius); 00108 00110 }//namespace glm 00111 00112 #include "random.inl" 00113 00114 #endif//GLM_GTC_random
1.7.3