clampradd.c

Definition of domain clipping tools

Author

Marcel Sondaar

License

Public Domain

Summary
clampradd.cDefinition of domain clipping tools
Functions
_PDCLIB_doclamppdrecursively shift x into the domain [0,clamp]
_PDCLIB_doclampndrecursively shift x into the domain [-clamp,0]
_PDCLIB_clampraddensure x is in the range [-pi,pi], otherwise shift the domain into position

Functions

_PDCLIB_doclamppd

static double _PDCLIB_doclamppd(double x,
double clamp)

recursively shift x into the domain [0,clamp]

_PDCLIB_doclampnd

static double _PDCLIB_doclampnd(double x,
double clamp)

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

_PDCLIB_clampradd

double _PDCLIB_clampradd(double x)

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

static double _PDCLIB_doclamppd(double x,
double clamp)
recursively shift x into the domain [0,clamp]
static double _PDCLIB_doclampnd(double x,
double clamp)
recursively shift x into the domain [-clamp,0]
double _PDCLIB_clampradd(double x)
ensure x is in the range [-pi,pi], otherwise shift the domain into position