Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
ParticleParamTypes::RangedParameter< T > Struct Template Reference

#include <particles.h>

+ Collaboration diagram for ParticleParamTypes::RangedParameter< T >:

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
 
pickWithin () const
 

Public Attributes

min
 
max
 
f32 bias = 0
 

Member Typedef Documentation

◆ This

template<typename T >
using ParticleParamTypes::RangedParameter< T >::This = RangedParameter<T>

◆ ValType

template<typename T >
using ParticleParamTypes::RangedParameter< T >::ValType = T

Constructor & Destructor Documentation

◆ RangedParameter() [1/3]

template<typename T >
ParticleParamTypes::RangedParameter< T >::RangedParameter ( )
default

◆ RangedParameter() [2/3]

template<typename T >
ParticleParamTypes::RangedParameter< T >::RangedParameter ( T _min,
T _max )
inline

◆ RangedParameter() [3/3]

template<typename T >
template<typename M >
ParticleParamTypes::RangedParameter< T >::RangedParameter ( M b)
inline

Member Function Documentation

◆ deSerialize()

template<typename T >
void RangedParameter::deSerialize ( std::istream & is)

References readF32().

Referenced by ParticleParameters::deSerialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ interpolate()

◆ legacyDeSerialize()

template<typename T >
void ParticleParamTypes::RangedParameter< T >::legacyDeSerialize ( std::istream & is)
inline

◆ legacySerialize()

template<typename T >
void ParticleParamTypes::RangedParameter< T >::legacySerialize ( std::ostream & os) const
inline

◆ pickWithin()

template<typename T >
T RangedParameter::pickWithin ( ) const

References myrand_float(), numericAbsolute(), and p().

Referenced by Particle::step().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ serialize()

template<typename T >
void RangedParameter::serialize ( std::ostream & os) const

References writeF32().

Referenced by ParticleParameters::serialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ bias

◆ max

◆ min


The documentation for this struct was generated from the following files: