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

#include <KisScreentoneScreentoneFunctions.h>

+ Inheritance diagram for KisScreentoneScreentoneFunctions::DotsEllipseLinear:

Public Member Functions

qreal operator() (qreal x, qreal y) const
 

Detailed Description

Definition at line 95 of file KisScreentoneScreentoneFunctions.h.

Member Function Documentation

◆ operator()()

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

Definition at line 82 of file KisScreentoneScreentoneFunctions.cpp.

83{
84 constexpr qreal aspectRatio = 1.25;
85 // The following magic number makes the function go to 1.0 in
86 // the corners of the cell (normalizes it)
87 constexpr qreal factor = 0.625;
88 x = triangle(x);
89 y = triangle(y) * aspectRatio;
90 return std::sqrt(x * x + y * y) * factor;
91}

References KisScreentoneScreentoneFunctions::triangle().


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