clampradf.c

Definition of domain clipping tools

Author

Marcel Sondaar

License

Public Domain

Summary
clampradf.cDefinition of domain clipping tools
Functions
_PDCLIB_doclamppfrecursively shift x into the domain [0,clamp]
_PDCLIB_doclampnfrecursively shift x into the domain [-clamp,0]
_PDCLIB_clampradfensure x is in the range [-pi,pi], otherwise shift the domain into position

Functions

_PDCLIB_doclamppf

static float _PDCLIB_doclamppf(float x,
float clamp)

recursively shift x into the domain [0,clamp]

_PDCLIB_doclampnf

static float _PDCLIB_doclampnf(float x,
float clamp)

recursively shift x into the domain [-clamp,0]

_PDCLIB_clampradf

float _PDCLIB_clampradf(float x)

ensure x is in the range [-pi,pi], otherwise shift the domain into position

static float _PDCLIB_doclamppf(float x,
float clamp)
recursively shift x into the domain [0,clamp]
static float _PDCLIB_doclampnf(float x,
float clamp)
recursively shift x into the domain [-clamp,0]
float _PDCLIB_clampradf(float x)
ensure x is in the range [-pi,pi], otherwise shift the domain into position