diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-06-06 12:05:53 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-06-06 12:05:53 -0400 |
commit | 54c489d1d75b0df4314e94cdc25e283434e72cbc (patch) | |
tree | 2b3ad691f40af922a51bd231f3457dcc30a1115a /vec_builtin.h | |
parent | 9600cc42c75a8bdf42a078c63a83fd7953cdc903 (diff) | |
download | vecmathlib-54c489d1d75b0df4314e94cdc25e283434e72cbc.zip vecmathlib-54c489d1d75b0df4314e94cdc25e283434e72cbc.tar.gz |
Implement atan2
Diffstat (limited to 'vec_builtin.h')
-rw-r--r-- | vec_builtin.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vec_builtin.h b/vec_builtin.h index 003b94f..a240a6d 100644 --- a/vec_builtin.h +++ b/vec_builtin.h @@ -511,6 +511,7 @@ namespace vecmathlib { realvec_t asin() const { return MF::vml_asin(*this); } realvec_t asinh() const { return MF::vml_asinh(*this); } realvec_t atan() const { return MF::vml_atan(*this); } + realvec_t atan2(realvec_t y) const { return MF::vml_atan(*this, y); } realvec_t atanh() const { return MF::vml_atanh(*this); } realvec_t cbrt() const { return MF::vml_cbrt(*this); } realvec_t ceil() const { return MF::vml_ceil(*this); } @@ -837,6 +838,13 @@ namespace vecmathlib { } template<typename real_t, int size> + inline realbuiltinvec<real_t, size> atan2(realbuiltinvec<real_t, size> x, + realbuiltinvec<real_t, size> y) + { + return x.atan2(y); + } + + template<typename real_t, int size> inline realbuiltinvec<real_t, size> atanh(realbuiltinvec<real_t, size> x) { return x.atanh(); |