|
Navigation menu |
A portable, open-source, coherent noise-generating library for C++ |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
noise::module::ScaleBias Class Reference |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Member Functions | |
| ScaleBias () | |
| Constructor. | |
| double | GetBias () const |
| Returns the bias to apply to the scaled output value from the source module. | |
| double | GetScale () const |
| Returns the scaling factor to apply to the output value from the source module. | |
| virtual int | GetSourceModuleCount () const |
| Returns the number of source modules required by this noise module. | |
| virtual double | GetValue (double x, double y, double z) const |
| Generates an output value given the coordinates of the specified input value. | |
| void | SetBias (double bias) |
| Sets the bias to apply to the scaled output value from the source module. | |
| void | SetScale (double scale) |
| Sets the scaling factor to apply to the output value from the source module. | |
Protected Attributes | |
| double | m_bias |
| Bias to apply to the scaled output value from the source module. | |
| double | m_scale |
| Scaling factor to apply to the output value from the source module. | |
|
|
Constructor. The default bias is set to noise::module::DEFAULT_BIAS. The default scaling factor is set to noise::module::DEFAULT_SCALE. |
|
|
Returns the bias to apply to the scaled output value from the source module.
|
|
|
Returns the scaling factor to apply to the output value from the source module.
|
|
|
Returns the number of source modules required by this noise module.
Implements noise::module::Module. |
|
||||||||||||||||
|
Generates an output value given the coordinates of the specified input value.
To determine the number of source modules required by this noise module, call the GetSourceModuleCount() method. Implements noise::module::Module. |
|
|
Sets the bias to apply to the scaled output value from the source module.
|
|
|
Sets the scaling factor to apply to the output value from the source module.
|
© 2003-2005 Jason Bevins
The libnoise source documentation was generated by doxygen 1.3.9.1