Home
last modified time | relevance | path

Searched refs:atan2 (Results 1 – 25 of 260) sorted by relevance

1234567891011

/external/eigen/Eigen/src/Geometry/
DEulerAngles.h39 EIGEN_USING_STD_MATH(atan2) in eulerAngles()
55 res[0] = atan2(coeff(j,i), coeff(k,i)); in eulerAngles()
65 res[1] = -atan2(s2, coeff(i,i)); in eulerAngles()
70 res[1] = atan2(s2, coeff(i,i)); in eulerAngles()
85 res[2] = atan2(c1*coeff(j,k)-s1*coeff(k,k), c1*coeff(j,j) - s1 * coeff(k,j)); in eulerAngles()
89 res[0] = atan2(coeff(j,k), coeff(k,k)); in eulerAngles()
98 res[1] = atan2(-coeff(i,k), -c2); in eulerAngles()
101 res[1] = atan2(-coeff(i,k), c2); in eulerAngles()
104 res[2] = atan2(s1*coeff(k,i)-c1*coeff(j,i), c1*coeff(j,j) - s1 * coeff(k,j)); in eulerAngles()
DRotation2D.h178 EIGEN_USING_STD_MATH(atan2)
180 m_angle = atan2(mat.coeff(1,0), mat.coeff(0,0));
/external/python/cpython2/Lib/test/
Dtest_math.py204 self.assertRaises(TypeError, math.atan2)
205 self.ftest('atan2(-1, 0)', math.atan2(-1, 0), -math.pi/2)
206 self.ftest('atan2(-1, 1)', math.atan2(-1, 1), -math.pi/4)
207 self.ftest('atan2(0, 1)', math.atan2(0, 1), 0)
208 self.ftest('atan2(1, 1)', math.atan2(1, 1), math.pi/4)
209 self.ftest('atan2(1, 0)', math.atan2(1, 0), math.pi/2)
212 self.ftest('atan2(0., -inf)', math.atan2(0., NINF), math.pi)
213 self.ftest('atan2(0., -2.3)', math.atan2(0., -2.3), math.pi)
214 self.ftest('atan2(0., -0.)', math.atan2(0., -0.), math.pi)
215 self.assertEqual(math.atan2(0., 0.), 0.)
[all …]
/external/eigen/unsupported/Eigen/src/EulerAngles/
DEulerSystem.h182 using std::atan2;
189 res[0] = atan2(mat(J,K), mat(K,K));
198 res[1] = atan2(-mat(I,K), -c2);
201 res[1] = atan2(-mat(I,K), c2);
204 res[2] = atan2(s1*mat(K,I)-c1*mat(J,I), c1*mat(J,J) - s1 * mat(K,J));
210 using std::atan2;
217 res[0] = atan2(mat(J,I), mat(K,I));
227 res[1] = -atan2(s2, mat(I,I));
232 res[1] = atan2(s2, mat(I,I));
247 res[2] = atan2(c1*mat(J,K)-s1*mat(K,K), c1*mat(J,J) - s1 * mat(K,J));
/external/apache-commons-math/src/main/java/org/apache/commons/math/geometry/
DRotation.java627 FastMath.atan2(-(v1.getY()), v1.getZ()), in getAngles()
629 FastMath.atan2(-(v2.getY()), v2.getX()) in getAngles()
645 FastMath.atan2(v1.getZ(), v1.getY()), in getAngles()
647 FastMath.atan2(v2.getZ(), v2.getX()) in getAngles()
663 FastMath.atan2(v1.getX(), v1.getZ()), in getAngles()
665 FastMath.atan2(v2.getX(), v2.getY()) in getAngles()
681 FastMath.atan2(-(v1.getZ()), v1.getX()), in getAngles()
683 FastMath.atan2(-(v2.getZ()), v2.getY()) in getAngles()
699 FastMath.atan2(-(v1.getX()), v1.getY()), in getAngles()
701 FastMath.atan2(-(v2.getX()), v2.getZ()) in getAngles()
[all …]
/external/python/cpython3/Lib/test/
Dtest_math.py330 self.assertRaises(TypeError, math.atan2)
331 self.ftest('atan2(-1, 0)', math.atan2(-1, 0), -math.pi/2)
332 self.ftest('atan2(-1, 1)', math.atan2(-1, 1), -math.pi/4)
333 self.ftest('atan2(0, 1)', math.atan2(0, 1), 0)
334 self.ftest('atan2(1, 1)', math.atan2(1, 1), math.pi/4)
335 self.ftest('atan2(1, 0)', math.atan2(1, 0), math.pi/2)
338 self.ftest('atan2(0., -inf)', math.atan2(0., NINF), math.pi)
339 self.ftest('atan2(0., -2.3)', math.atan2(0., -2.3), math.pi)
340 self.ftest('atan2(0., -0.)', math.atan2(0., -0.), math.pi)
341 self.assertEqual(math.atan2(0., 0.), 0.)
[all …]
/external/tensorflow/tensorflow/core/api_def/python_api/
Dapi_def_Atan2.pbtxt4 name: "math.atan2"
7 name: "atan2"
/external/tensorflow/tensorflow/core/kernels/
Dcwise_op_atan2.cc19 REGISTER2(BinaryOp, CPU, "Atan2", functor::atan2, float, double);
21 REGISTER2(BinaryOp, GPU, "Atan2", functor::atan2, float, double);
Dcwise_op_gpu_atan2.cu.cc22 DEFINE_BINARY2(atan2, float, double);
/external/skqp/src/gpu/gradients/
DGrSweepGradientLayout.fp18 // On some devices they incorrectly implement atan2(y,x) as atan(y/x). In actuality it is
19 // atan2(y,x) = 2 * atan(y / (sqrt(x^2 + y^2) + x)). So to work around this we pass in (sqrt(x^2
20 // + y^2) + x) as the second parameter to atan2 in these cases. We let the device handle the
/external/skia/src/gpu/gradients/
DGrSweepGradientLayout.fp18 // On some devices they incorrectly implement atan2(y,x) as atan(y/x). In actuality it is
19 // atan2(y,x) = 2 * atan(y / (sqrt(x^2 + y^2) + x)). So to work around this we pass in (sqrt(x^2
20 // + y^2) + x) as the second parameter to atan2 in these cases. We let the device handle the
/external/fonttools/Lib/fontTools/svgLib/path/
Darc.py11 from math import atan2, ceil, cos, fabs, pi, radians, sin, sqrt, tan
96 theta1 = atan2(point1.imag, point1.real)
97 theta2 = atan2(point2.imag, point2.real)
/external/deqp/external/openglcts/data/mustpass/gles/aosp_mustpass/master/src/
Dgles31-test-issues.txt18 dEQP-GLES31.functional.shaders.builtin_functions.precision.atan2.mediump_*
19 dEQP-GLES31.functional.shaders.builtin_functions.precision.atan2.highp_*
/external/deqp/external/openglcts/data/mustpass/gles/aosp_mustpass/3.2.5.x/src/
Dgles31-test-issues.txt18 dEQP-GLES31.functional.shaders.builtin_functions.precision.atan2.mediump_*
19 dEQP-GLES31.functional.shaders.builtin_functions.precision.atan2.highp_*
/external/deqp/android/cts/master/src/
Dgles31-test-issues.txt19 dEQP-GLES31.functional.shaders.builtin_functions.precision.atan2.mediump_*
20 dEQP-GLES31.functional.shaders.builtin_functions.precision.atan2.highp_*
/external/clang/lib/Headers/
D__clang_cuda_math_forward_declares.h53 __DEVICE__ double atan2(double, double);
54 __DEVICE__ float atan2(float, float);
193 using ::atan2;
/external/eigen/unsupported/test/
Dautodiff_scalar.cpp29 AD res = atan2(r*s, r*c); in check_atan2()
34 res = atan2(r*s+0, r*c+0); in check_atan2()
/external/pdfium/core/fpdfapi/page/
Dcpdf_textstate.cpp141 return atan2(m_Matrix[2], m_Matrix[0]); in GetBaselineAngle()
145 return GetBaselineAngle() + atan2(m_Matrix[1], m_Matrix[3]); in GetShearAngle()
/external/deqp/external/openglcts/data/mustpass/gles/aosp_mustpass/3.2.4.x/src/
Dgles31-test-issues.txt19 dEQP-GLES31.functional.shaders.builtin_functions.precision.atan2.mediump_*
20 dEQP-GLES31.functional.shaders.builtin_functions.precision.atan2.highp_*
/external/deqp/external/openglcts/data/mustpass/gles/aosp_mustpass/3.2.3.x/src/
Dgles31-test-issues.txt19 dEQP-GLES31.functional.shaders.builtin_functions.precision.atan2.mediump_*
20 dEQP-GLES31.functional.shaders.builtin_functions.precision.atan2.highp_*
/external/deqp-deps/glslang/Test/
Dhlsl.intrinsics.vert13 atan2(inF0, inF1);
80 atan2(inF0, inF1);
149 atan2(inF0, inF1);
219 atan2(inF0, inF1);
290 atan2(inF0, inF1); \
/external/ltp/testcases/misc/math/float/
Dfloat_trigo.c35 {FUNC_ATAN2, 50, atan2, "atan2", "datan2", "ratan2",
/external/python/cpython3/Modules/
Dcmathmodule.c227 r.real = atan2(fabs(z.imag), z.real); in cmath_acos_impl()
244 r.real = 2.*atan2(s1.real, s2.real); in cmath_acos_impl()
271 r.imag = atan2(z.imag, z.real); in cmath_acosh_impl()
280 r.imag = 2.*atan2(s1.imag, s2.real); in cmath_acosh_impl()
331 r.imag = atan2(z.imag, fabs(z.real)); in cmath_asinh_impl()
340 r.imag = atan2(z.imag, s1.real*s2.real-s1.imag*s2.imag); in cmath_asinh_impl()
394 return atan2(z.imag, z.real); in c_atan2()
443 r.imag = copysign(atan2(2., -ay)/2, z.imag); in cmath_atanh_impl()
448 r.imag = -atan2(-2.*z.imag, (1-z.real)*(1+z.real) - ay*ay)/2.; in cmath_atanh_impl()
648 r.imag = atan2(z.imag, z.real); in c_log()
[all …]
/external/python/cpython2/Modules/
Dcmathmodule.c135 r.real = atan2(fabs(z.imag), z.real); in c_acos()
152 r.real = 2.*atan2(s1.real, s2.real); in c_acos()
177 r.imag = atan2(z.imag, z.real); in c_acosh()
186 r.imag = 2.*atan2(s1.imag, s2.real); in c_acosh()
234 r.imag = atan2(z.imag, fabs(z.real)); in c_asinh()
243 r.imag = atan2(z.imag, s1.real*s2.real-s1.imag*s2.imag); in c_asinh()
295 return atan2(z.imag, z.real); in c_atan2()
342 r.imag = copysign(atan2(2., -ay)/2, z.imag); in c_atanh()
347 r.imag = -atan2(-2.*z.imag, (1-z.real)*(1+z.real) - ay*ay)/2.; in c_atanh()
547 r.imag = atan2(z.imag, z.real); in c_log()
[all …]
/external/pdfium/third_party/agg23/
Dagg_math_stroke.h54 float a1 = atan2(dy1, dx1); in stroke_calc_arc()
55 float a2 = atan2(dy2, dx2); in stroke_calc_arc()
171 float a1 = atan2(dy1, -dx1); in stroke_calc_cap()

1234567891011