MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ set_direct_function()

void MayaFlux::Nodes::Generator::Polynomial::set_direct_function ( DirectFunction  function)

Sets a custom direct function.

Parameters
functionCustom function that maps input to output value

Updates the generator to use the specified custom function.

Definition at line 148 of file Polynomial.cpp.

149{
150 m_direct_function = std::move(function);
152 m_coef_direct = false;
153}
PolynomialMode m_mode
Current processing mode.
bool m_coef_direct
True while DIRECT output is evaluated from m_coefficients.
DirectFunction m_direct_function
Function for direct mode.
@ DIRECT
Evaluates f(x) where x is the current phase/input.

References MayaFlux::Nodes::Generator::DIRECT, m_coef_direct, m_direct_function, and m_mode.