39 template<
typename floatType>
50 typedef std::function<cmplxType(const cmplxType&)>
funcType;
59 typedef std::tuple<std::uint8_t, std::uint8_t, std::uint8_t>
colorType;
69 const std::complex<floatType>&,
124 const floatType& zEpsln,
126 const funcType& derivativeFractalFunc,
128 const std::uint32_t maxIters,
135 f_prime{ derivativeFractalFunc },
const funcType f
This constant attribute holds the function used to produce the fractal.
const funcType f_prime
This constant attribute holds the derivative of the function used to produce the fractal.
std::tuple< std::uint8_t, std::uint8_t, std::uint8_t > colorType
This type is used to declare variables that hold the color of a given pixel in the fractal...
const colorMapFuncType colorMapFunc
This constant attribute holds the function that maps the output of Newton's method to a color...
const floatType zeroEpsilon
This constant attribute holds the required accuracy that Newton's method is required to produce when ...
const cmplxType delta
This constant attribute holds the distance between points in the fractal. Note that this is a complex...
std::function< cmplxType(const cmplxType &)> funcType
This type is used to declare variables that hold the function that defines the factal (and its deriva...
std::vector< cmplxType > zerosLstType
This type is used to declare variables that hold the list of zeros of the function being used to gene...
const cmplxType lowerLeftExtent
This constant attribute holds the lower left coordinate of the fractal in the complex plain...
const zerosLstType f_zeros
This constant attribute holds the list of zeros of the function that is generating the fractal...
std::complex< floatType > cmplxType
This type is used to declare variables that hold the complex numbers used in the fractal computations...
This class is a container class for the parameters that are used to generate a fractal.
const cmplxType upperRightExtent
This constant attribute holds the upper right coordinate of the fractal in the complex plain...
std::function< colorType(const std::uint32_t, const std::complex< floatType > &, const std::uint32_t)> colorMapFuncType
This type is used to define variables that hold functions that map fractal computation results to a c...
~fractalParams()
The class destructor.
const std::uint32_t maxIterations
This constant attribute holds the maximum number of iterations that Newton's method is allowed...
fractalParams(const cmplxType &lwrLftExtnt, const cmplxType &upprRghtExtnt, const cmplxType &dlt, const floatType &zEpsln, const funcType &fractalFunc, const funcType &derivativeFractalFunc, const zerosLstType &fractalFuncZeros, const std::uint32_t maxIters, const colorMapFuncType &clrMapFunc)
This is the constructor that must be used to create instances of this class.