bazar  1.3.1
Macros | Functions
general.h File Reference
#include <stdlib.h>
Include dependency graph for general.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define M_PI   3.141592653589793238462643383279

Functions

float rand_01 (void)
float rand_m1p1 (void)
float rand (float min, float max)
int gf_sqr (const int x)
float gf_sqr (const float x)

Macro Definition Documentation

#define M_PI   3.141592653589793238462643383279

Definition at line 31 of file general.h.

Function Documentation

int gf_sqr ( const int  x)
inline

Definition at line 56 of file general.h.

float gf_sqr ( const float  x)
inline

Definition at line 61 of file general.h.

float rand ( float  min,
float  max 
)
inline
float rand_01 ( void  )
inline

Definition at line 41 of file general.h.

References rand().

Referenced by affine_image_generator::generate_random_affine_transformation(), rand(), and rand_m1p1().

float rand_m1p1 ( void  )
inline