diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-02-19 12:40:38 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-02-19 12:40:38 -0500 |
commit | 771a4335c707875e53349c5292e193744e852b37 (patch) | |
tree | d04763424658795dd6f288decbe39359db80b1e0 /mathfuncs_sin.h | |
parent | b92e98bf8864e33e2531cfda5b65b1d7822e875f (diff) | |
download | vecmathlib-771a4335c707875e53349c5292e193744e852b37.zip vecmathlib-771a4335c707875e53349c5292e193744e852b37.tar.gz |
Add rint(), correct round()
Diffstat (limited to 'mathfuncs_sin.h')
-rw-r--r-- | mathfuncs_sin.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mathfuncs_sin.h b/mathfuncs_sin.h index 035513f..2c94e1e 100644 --- a/mathfuncs_sin.h +++ b/mathfuncs_sin.h @@ -18,7 +18,7 @@ namespace vecmathlib { x *= RV(1.0/(2.0*M_PI)); // Reduce range: sin(x) = sin(x + 2pi) - x -= round(x); + x -= rint(x); VML_ASSERT(all(x >= RV(-0.5) && x <= RV(+0.5))); // Reduce range: sin(x) = -sin(-x) |