CC-Fractal-Suite
Fractal.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8  // Local
9 #include "typedefs.h"
10 #include "FractalSpace.h"
11 
12 namespace CC
13 {
14 
22 {
23  int num_iter{ 0 };
24  COMPLEX z;
25  fpreal smooth;
26 
28  int num_iter = 0,
29  COMPLEX z = COMPLEX(),
30  fpreal smooth = 0.0) :
31  num_iter(num_iter), z(z), smooth(smooth) {}
32 };
33 
35 class Fractal
36 {
37 public:
38  Fractal() {};
39  virtual ~Fractal() {};
40 
48  virtual FractalCoordsInfo calculate(COMPLEX coords) = 0;
49 };
50 } // End of CC Namespace
std::complex< fpreal64 > COMPLEX
Double precision complex numbers, as defined by the HDK.
Definition: typedefs.h:25
Header that manages the transformations of fractals, and convertion from picture-plane (WORLDPIXEL) s...
A small container struct for fractal output.
Definition: Fractal.h:21
Base class for fractals.
Definition: Fractal.h:35
Header with shared typedefs and parameter name declarations.
Definition: COP2_Buddhabrot.h:17