From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/classNL3D_1_1CNoiseValue.html | 447 +++++++++++++++++++++++++ 1 file changed, 447 insertions(+) create mode 100644 docs/doxygen/nel/classNL3D_1_1CNoiseValue.html (limited to 'docs/doxygen/nel/classNL3D_1_1CNoiseValue.html') diff --git a/docs/doxygen/nel/classNL3D_1_1CNoiseValue.html b/docs/doxygen/nel/classNL3D_1_1CNoiseValue.html new file mode 100644 index 00000000..2894da9b --- /dev/null +++ b/docs/doxygen/nel/classNL3D_1_1CNoiseValue.html @@ -0,0 +1,447 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
+
+ + +
+ + +
+Docs + +
+  + + + + + +
Documentation 
+ +
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  
+

NL3D::CNoiseValue Class Reference

A class which generate noisy value, according to a position. +More... +

+#include <noise_value.h> +

+List of all members. + + + + + + + + + + + + + + + + + +

Public Methods

 CNoiseValue ()
 Default to 0, 1, 1. More...

 CNoiseValue (float abs, float rand, float freq)
float eval (const CVector &posInWorld) const
 return Abs + Rand* noise(Pos*Frequency). More...

float evalOneLevelRandom (const CVector &posInWorld) const
 same as eval, but eval just one random level for noise() => act much more like a random. More...

void serial (NLMISC::IStream &f)

Public Attributes

float Abs
float Rand
float Frequency

Private Methods

float noise (const CVector &pos) const
 pos scale is in [0..1]. More...

float evalRandom (const CVector &pos) const
+


Detailed Description

+A class which generate noisy value, according to a position. +

+

+Author:
+Lionel Berenguier , Nevrax France
+Date:
+2001
+

+ +

+Definition at line 49 of file noise_value.h.


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + + +
NL3D::CNoiseValue::CNoiseValue  
+
+ + + + + +
+   + + +

+Default to 0, 1, 1. +

+ +

+Definition at line 258 of file noise_value.cpp. +

+References Abs, Frequency, and Rand.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
NL3D::CNoiseValue::CNoiseValue float   abs,
float   rand,
float   freq
+
+ + + + + +
+   + + +

+ +

+Definition at line 267 of file noise_value.cpp. +

+References Abs, Frequency, and Rand.

+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + +
float NL3D::CNoiseValue::eval const CVector &   posInWorld const
+
+ + + + + +
+   + + +

+return Abs + Rand* noise(Pos*Frequency). +

+with noise() E [0..1]. Warning! Use OptFastFloor()! So call must be enclosed with a OptFastFloorBegin()/OptFastFloorEnd(). +

+Definition at line 276 of file noise_value.cpp. +

+References Abs, Frequency, noise, and Rand.

+

+ + + + +
+ + + + + + + + + + +
float NL3D::CNoiseValue::evalOneLevelRandom const CVector &   posInWorld const
+
+ + + + + +
+   + + +

+same as eval, but eval just one random level for noise() => act much more like a random. +

+Warning! Use OptFastFloor()! So call must be enclosed with a OptFastFloorBegin()/OptFastFloorEnd(). +

+Definition at line 285 of file noise_value.cpp. +

+References Abs, evalRandom, Frequency, and Rand.

+

+ + + + +
+ + + + + + + + + + +
float NL3D::CNoiseValue::evalRandom const CVector &   pos const [private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 216 of file noise_value.cpp. +

+Referenced by evalOneLevelRandom.

+

+ + + + +
+ + + + + + + + + + +
float NL3D::CNoiseValue::noise const CVector &   pos const [private]
+
+ + + + + +
+   + + +

+pos scale is in [0..1]. +

+ +

+Definition at line 223 of file noise_value.cpp. +

+References level, and NL3D_NOISE_LEVEL. +

+Referenced by eval.

+

+ + + + +
+ + + + + + + + + + +
void NL3D::CNoiseValue::serial NLMISC::IStream  f
+
+ + + + + +
+   + + +

+ +

+Definition at line 294 of file noise_value.cpp. +

+References Abs, Frequency, and Rand.

+


Member Data Documentation

+

+ + + + +
+ + +
float NL3D::CNoiseValue::Abs +
+
+ + + + + +
+   + + +

+ +

+Definition at line 52 of file noise_value.h. +

+Referenced by CNoiseValue, eval, evalOneLevelRandom, and serial.

+

+ + + + +
+ + +
float NL3D::CNoiseValue::Frequency +
+
+ + + + + +
+   + + +

+ +

+Definition at line 54 of file noise_value.h. +

+Referenced by CNoiseValue, eval, evalOneLevelRandom, and serial.

+

+ + + + +
+ + +
float NL3D::CNoiseValue::Rand +
+
+ + + + + +
+   + + +

+ +

+Definition at line 53 of file noise_value.h. +

+Referenced by CNoiseValue, eval, evalOneLevelRandom, and serial.

+


The documentation for this class was generated from the following files: + + + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1