2
0
Эх сурвалжийг харах

Improved GTC_random linearRand documentations

Christophe Riccio 10 жил өмнө
parent
commit
8e3e6108d5
2 өөрчлөгдсөн 12 нэмэгдсэн , 2 устгасан
  1. 8 1
      glm/gtc/random.hpp
  2. 4 1
      readme.md

+ 8 - 1
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 <typename genTYpe>
 	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 <typename T, precision P, template <typename, precision> class vecType>
 	GLM_FUNC_DECL vecType<T, P> linearRand(
 		vecType<T, P> const & Min,

+ 4 - 1
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