- cpfabs
cpFloat cpfabs(cpFloat f)
Return the absolute value of a cpFloat.
- cpfclamp
cpFloat cpfclamp(cpFloat f, cpFloat min, cpFloat max)
Clamp @c f to be between @c min and @c max.
- cpfclamp01
cpFloat cpfclamp01(cpFloat f)
Clamp @c f to be between 0 and 1.
- cpflerp
cpFloat cpflerp(cpFloat f1, cpFloat f2, cpFloat t)
Linearly interpolate (or extrapolate) between @c f1 and @c f2 by @c t percent.
- cpflerpconst
cpFloat cpflerpconst(cpFloat f1, cpFloat f2, cpFloat d)
Linearly interpolate from @c f1 to @c f2 by no more than @c d.
- cpfmax
cpFloat cpfmax(cpFloat a, cpFloat b)
Return the max of two cpFloats.
- cpfmin
cpFloat cpfmin(cpFloat a, cpFloat b)
Return the min of two cpFloats.