#include <particles.h>
Public Types | |
using | ValType = T |
using | This = RangedParameter<T> |
Public Member Functions | |
RangedParameter ()=default | |
RangedParameter (T _min, T _max) | |
template<typename M > | |
RangedParameter (M b) | |
void | legacySerialize (std::ostream &os) const |
void | legacyDeSerialize (std::istream &is) |
void | serialize (std::ostream &os) const |
void | deSerialize (std::istream &is) |
This | interpolate (float fac, const This against) const |
T | pickWithin () const |
Public Attributes | |
T | min |
T | max |
f32 | bias = 0 |
using ParticleParamTypes::RangedParameter< T >::This = RangedParameter<T> |
using ParticleParamTypes::RangedParameter< T >::ValType = T |
|
default |
|
inline |
|
inline |
void RangedParameter::deSerialize | ( | std::istream & | is | ) |
References readF32().
Referenced by ParticleParameters::deSerialize().
|
inline |
|
inline |
|
inline |
T RangedParameter::pickWithin | ( | ) | const |
References myrand_float(), numericAbsolute(), and p().
Referenced by Particle::step().
void RangedParameter::serialize | ( | std::ostream & | os | ) | const |
References writeF32().
Referenced by ParticleParameters::serialize().
f32 ParticleParamTypes::RangedParameter< T >::bias = 0 |
T ParticleParamTypes::RangedParameter< T >::max |
T ParticleParamTypes::RangedParameter< T >::min |