Krita Source Code Documentation
Loading...
Searching...
No Matches
KisScreentoneScreentoneFunctions::DotsRoundSinusoidalEqualized Class Reference

#include <KisScreentoneScreentoneFunctions.h>

+ Inheritance diagram for KisScreentoneScreentoneFunctions::DotsRoundSinusoidalEqualized:

Public Member Functions

qreal operator() (qreal x, qreal y) const
 
- Public Member Functions inherited from KisScreentoneScreentoneFunctions::DotsRoundSinusoidal
qreal operator() (qreal x, qreal y) const
 

Detailed Description

Definition at line 89 of file KisScreentoneScreentoneFunctions.h.

Member Function Documentation

◆ operator()()

qreal KisScreentoneScreentoneFunctions::DotsRoundSinusoidalEqualized::operator() ( qreal x,
qreal y ) const

Definition at line 70 of file KisScreentoneScreentoneFunctions.cpp.

71{
72 // Here the cumulative function is a piecewise function obtained empirically
73 // by fitting some simple curves to a list of points
74 const qreal z = DotsRoundSinusoidal::operator()(x, y);
75 if (z <= 0.5) {
76 return M_SQRT2 / 2.0 - std::sqrt(-(z - 0.5469) / 1.0938);
77 } else {
78 return (1.0 - M_SQRT2 / 2.0) + std::sqrt((z - (1.0 - 0.5469)) / 1.0938);
79 }
80}

References KisScreentoneScreentoneFunctions::DotsRoundSinusoidal::operator()().


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