From 8e3e6108d586f911c77c5e7d0c5a269fa19b9abc Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Wed, 7 Oct 2015 21:35:28 +0200 Subject: [PATCH] Improved GTC_random linearRand documentations --- glm/gtc/random.hpp | 9 ++++++++- readme.md | 5 ++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/glm/gtc/random.hpp b/glm/gtc/random.hpp index a9254c01..7e77202e 100644 --- a/glm/gtc/random.hpp +++ b/glm/gtc/random.hpp @@ -60,13 +60,20 @@ namespace glm /// /// @param Min /// @param Max - /// @tparam genType Value type. Currently supported: half (not recommanded), float or double scalars and vectors. + /// @tparam genType Value type. Currently supported: float or double scalars. /// @see gtc_random template GLM_FUNC_DECL genTYpe linearRand( genTYpe Min, genTYpe Max); + /// Generate random numbers in the interval [Min, Max], according a linear distribution + /// + /// @param Min + /// @param Max + /// @tparam T Value type. Currently supported: float or double. + /// @tparam vecType A vertor type: tvec1, tvec2, tvec3, tvec4 or compatible + /// @see gtc_random template class vecType> GLM_FUNC_DECL vecType linearRand( vecType const & Min, diff --git a/readme.md b/readme.md index df9c9bf9..0744eefd 100644 --- a/readme.md +++ b/readme.md @@ -52,10 +52,13 @@ glm::mat4 camera(float Translate, glm::vec2 const & Rotate) ## Release notes #### [GLM 0.9.8.0](https://github.com/g-truc/glm/releases/latest) - 201X-XX-XX -##### Improvements: +##### Features: - Added compNormalize and compScale functions to GTX_component_wise - Added packF3x9_E1x5 and unpackF3x9_E1x5 to GTC_packing for RGB9E5 #416 +##### Improvements: +- Improved GTC_random linearRand documentations + #### [GLM 0.9.7.2](https://github.com/g-truc/glm/tree/0.9.7) - 2015-XX-XX ##### Fixes: - Fixed GTC_round floorMultiple/ceilMultiple #412