BrainTrain
 All Classes Namespaces Files Functions Variables Macros Pages
brtr::BodyOfRotationFunction Struct Reference

struct holding the function, which calculates the radius in dependece of the height. lambda (double)->double func, int end, BodyOfRotationFunction* nextFunc if one wish to have more then one function then the end value and nextFunc pointer must be set accordingly the end+1 is the beginning x of the next function More...

#include <UtilFunctions.h>

Public Member Functions

double derivation (double x) const
 

Public Attributes

std::function< double(double)> func
 the function More...
 
double end
 the end value of the function, should be less or equal createBodyOfRotation::height More...
 
const BodyOfRotationFunctionnextFunc
 if end is less then createBodyOfRotation::height, must point towards the next function which shall be used from end More...
 

Detailed Description

struct holding the function, which calculates the radius in dependece of the height. lambda (double)->double func, int end, BodyOfRotationFunction* nextFunc if one wish to have more then one function then the end value and nextFunc pointer must be set accordingly the end+1 is the beginning x of the next function

Definition at line 40 of file UtilFunctions.h.

Member Function Documentation

double brtr::BodyOfRotationFunction::derivation ( double  x) const
inline

Definition at line 44 of file UtilFunctions.h.

Member Data Documentation

double brtr::BodyOfRotationFunction::end

the end value of the function, should be less or equal createBodyOfRotation::height

Definition at line 42 of file UtilFunctions.h.

std::function<double(double)> brtr::BodyOfRotationFunction::func

the function

Definition at line 41 of file UtilFunctions.h.

const BodyOfRotationFunction* brtr::BodyOfRotationFunction::nextFunc

if end is less then createBodyOfRotation::height, must point towards the next function which shall be used from end

Definition at line 43 of file UtilFunctions.h.


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