Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
agg::gamma_power Class Reference

#include <src/agg/agg_gamma_functions.h>

Public Member Functions

 gamma_power ()
 
 gamma_power (double g)
 
void gamma (double g)
 
double gamma () const
 
double operator() (double x) const
 

Private Attributes

double m_gamma
 

Detailed Description

Constructor & Destructor Documentation

◆ gamma_power() [1/2]

agg::gamma_power::gamma_power ( )
inline
35: m_gamma(1.0) {}
double m_gamma
Definition agg_gamma_functions.h:47

◆ gamma_power() [2/2]

agg::gamma_power::gamma_power ( double  g)
inline
36: m_gamma(g) {}

Member Function Documentation

◆ gamma() [1/2]

double agg::gamma_power::gamma ( ) const
inline
39{ return m_gamma; }

References m_gamma.

◆ gamma() [2/2]

void agg::gamma_power::gamma ( double  g)
inline
38{ m_gamma = g; }

References m_gamma.

◆ operator()()

double agg::gamma_power::operator() ( double  x) const
inline
42 {
43 return pow(x, m_gamma);
44 }
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC half pow(const half &a, const half &b)
Definition Half.h:477

References m_gamma.

Member Data Documentation

◆ m_gamma

double agg::gamma_power::m_gamma
private

Referenced by gamma(), gamma(), and operator()().


The documentation for this class was generated from the following file: