Graine
Génération procédurale de créatures et apprentissage par réseaux de neurones.
Macros | Functions
Usefull.hpp File Reference
#include <stdlib.h>
#include <math.h>
#include <sstream>
#include <string>
#include <iostream>
#include <vector>
Include dependency graph for Usefull.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PRINT_GEN
 

Functions

double RandFloat ()
 Give a random float number. More...
 
double RandFloat (double min, double max)
 Give a random float number between to values (min and max) More...
 
double RandFloat (double max)
 Give a random float given a max value (max) More...
 
double RandomClamped ()
 Give a random minus a random value. More...
 
double RandomClamped (double min, double max)
 Give a random minus a random value between to values. More...
 
double RandomClamped (double max)
 Give a random minus a random value given a max values. More...
 
int sumFrom0ToN (int n)
 Mathematical sum from 0 to n of given n. More...
 

Macro Definition Documentation

#define PRINT_GEN

Function Documentation

double RandFloat ( )

Give a random float number.

Here is the caller graph for this function:

double RandFloat ( double  min,
double  max 
)

Give a random float number between to values (min and max)

Here is the call graph for this function:

double RandFloat ( double  max)

Give a random float given a max value (max)

Here is the call graph for this function:

double RandomClamped ( )

Give a random minus a random value.

Here is the call graph for this function:

Here is the caller graph for this function:

double RandomClamped ( double  min,
double  max 
)

Give a random minus a random value between to values.

Here is the call graph for this function:

double RandomClamped ( double  max)

Give a random minus a random value given a max values.

Here is the call graph for this function:

int sumFrom0ToN ( int  n)

Mathematical sum from 0 to n of given n.