From 0ad8dbbfc93158cb5e31434cc9439016970348db Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Tue, 27 Mar 2012 08:03:02 -0700 Subject: [PATCH] Fix documentation bug: atan2 arguments were reversed. Issue #203. --- docs/ispc.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ispc.rst b/docs/ispc.rst index 34f91afd..6fb60816 100644 --- a/docs/ispc.rst +++ b/docs/ispc.rst @@ -3083,8 +3083,8 @@ The corresponding inverse functions are also available: uniform float acos(uniform float x) float atan(float x) uniform float atan(uniform float x) - float atan2(float x, float y) - uniform float atan2(uniform float x, uniform float y) + float atan2(float y, float x) + uniform float atan2(uniform float y, uniform float x) If both sine and cosine are needed, then the ``sincos()`` call computes both more efficiently than two calls to the respective individual