clampradl.c

Definition of domain clipping tools

Author

Marcel Sondaar

License

Public Domain

Summary
clampradl.cDefinition of domain clipping tools
Functions
_PDCLIB_doclampplrecursively shift x into the domain [0,clamp]
_PDCLIB_doclampnlrecursively shift x into the domain [-clamp,0]
_PDCLIB_clampradlensure x is in the range [-pi,pi], otherwise shift the domain into position

Functions

_PDCLIB_doclamppl

static long double _PDCLIB_doclamppl(long double x,
long double clamp)

recursively shift x into the domain [0,clamp]

_PDCLIB_doclampnl

static long double _PDCLIB_doclampnl(long double x,
long double clamp)

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

_PDCLIB_clampradl

long double _PDCLIB_clampradl(long double x)

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

static long double _PDCLIB_doclamppl(long double x,
long double clamp)
recursively shift x into the domain [0,clamp]
static long double _PDCLIB_doclampnl(long double x,
long double clamp)
recursively shift x into the domain [-clamp,0]
long double _PDCLIB_clampradl(long double x)
ensure x is in the range [-pi,pi], otherwise shift the domain into position