philsupertramp/game-math
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Member Functions | List of all members
Mandelbrot Class Reference

#include <Fractals.h>

Public Member Functions

 Mandelbrot ()
 
Matrix< double > operator() ()
 

Public Attributes

size_t maxIters = 125
 max number iterations for approximation of single value More...
 
double startX = -2.5
 start and end value on x-axis More...
 
double endX = 1.0
 
double startY = -1.0
 start and end value on y-axis More...
 
double endY = 1.0
 
size_t detail = 500
 detail factor for approximation More...
 

Private Member Functions

size_t fun (const double &real_c, const double &img_c)
 

Detailed Description

Mandelbrot fractal

Examples
numerics/TestFractals.cpp.

Constructor & Destructor Documentation

◆ Mandelbrot()

Mandelbrot::Mandelbrot ( )
inline

default constructor

Member Function Documentation

◆ fun()

size_t Mandelbrot::fun ( const double &  real_c,
const double &  img_c 
)
inlineprivate

Evaluates mandelbrot at given point

Parameters
real_creal part of C (chose from [-2.5, 1])
img_cimaginary part of C (chose from [-1, 1])
Returns
iterations needed to evaluate for given values

◆ operator()()

Matrix< double > Mandelbrot::operator() ( )
inline

Evaluates mandelbrot for given view.

Returns

Member Data Documentation

◆ detail

size_t Mandelbrot::detail = 500

detail factor for approximation

Examples
numerics/TestFractals.cpp.

◆ endX

double Mandelbrot::endX = 1.0

◆ endY

double Mandelbrot::endY = 1.0

◆ maxIters

size_t Mandelbrot::maxIters = 125

max number iterations for approximation of single value

Examples
numerics/TestFractals.cpp.

◆ startX

double Mandelbrot::startX = -2.5

start and end value on x-axis

◆ startY

double Mandelbrot::startY = -1.0

start and end value on y-axis


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