Home
last modified time | relevance | path

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

12345678910>>...17

/third_party/skia/third_party/externals/swiftshader/tests/regres/testlists/
Dgles3-master-QUALITY_WARNING.txt3 dEQP-GLES3.functional.shaders.builtin_functions.precision.atan2.lowp_fragment.scalar
4 dEQP-GLES3.functional.shaders.builtin_functions.precision.atan2.lowp_fragment.vec2
5 dEQP-GLES3.functional.shaders.builtin_functions.precision.atan2.lowp_fragment.vec3
6 dEQP-GLES3.functional.shaders.builtin_functions.precision.atan2.lowp_fragment.vec4
7 dEQP-GLES3.functional.shaders.builtin_functions.precision.atan2.lowp_vertex.scalar
8 dEQP-GLES3.functional.shaders.builtin_functions.precision.atan2.lowp_vertex.vec2
9 dEQP-GLES3.functional.shaders.builtin_functions.precision.atan2.lowp_vertex.vec3
10 dEQP-GLES3.functional.shaders.builtin_functions.precision.atan2.lowp_vertex.vec4
/third_party/jerryscript/tools/unit-tests/
Dgen-test-libm.c161 GEN_DBL_TEST (atan2 (NAN, NAN)); in main()
162 GEN_DBL_TEST (atan2 (0.0, NAN)); in main()
163 GEN_DBL_TEST (atan2 (-0.0, NAN)); in main()
164 GEN_DBL_TEST (atan2 (1.0, NAN)); in main()
165 GEN_DBL_TEST (atan2 (-1.0, NAN)); in main()
166 GEN_DBL_TEST (atan2 (INFINITY, NAN)); in main()
167 GEN_DBL_TEST (atan2 (-INFINITY, NAN)); in main()
168 GEN_DBL_TEST (atan2 (NAN, 0.0)); in main()
169 GEN_DBL_TEST (atan2 (NAN, -0.0)); in main()
170 GEN_DBL_TEST (atan2 (NAN, 1.0)); in main()
[all …]
/third_party/jerryscript/tests/unit-libm/
Dtest-libm.inc.h119 check_double ("atan2 (NAN, NAN)", atan2 (NAN, NAN), NAN);
120 check_double ("atan2 (0.0, NAN)", atan2 (0.0, NAN), NAN);
121 check_double ("atan2 (-0.0, NAN)", atan2 (-0.0, NAN), NAN);
122 check_double ("atan2 (1.0, NAN)", atan2 (1.0, NAN), NAN);
123 check_double ("atan2 (-1.0, NAN)", atan2 (-1.0, NAN), NAN);
124 check_double ("atan2 (INFINITY, NAN)", atan2 (INFINITY, NAN), NAN);
125 check_double ("atan2 (-INFINITY, NAN)", atan2 (-INFINITY, NAN), NAN);
126 check_double ("atan2 (NAN, 0.0)", atan2 (NAN, 0.0), NAN);
127 check_double ("atan2 (NAN, -0.0)", atan2 (NAN, -0.0), NAN);
128 check_double ("atan2 (NAN, 1.0)", atan2 (NAN, 1.0), NAN);
[all …]
/third_party/boost/libs/units/test/
Dtest_trig.cpp75 …BOOST_CHECK_EQUAL(boost::units::atan2(0.2 * si_dimensionless, 0.3 * si_dimensionless), std::atan2(… in BOOST_AUTO_TEST_CASE()
76 …BOOST_CHECK_EQUAL(boost::units::atan2(0.2 * meters, 0.3 * meters), std::atan2(0.2, 0.3) * radians); in BOOST_AUTO_TEST_CASE()
77 …BOOST_CHECK_CLOSE_FRACTION(boost::units::atan2(0.8660*degree_dimensionless,0.5*degree_dimensionles… in BOOST_AUTO_TEST_CASE()
78 …ST_CHECK_EQUAL(boost::units::atan2(0.2 * heterogeneous_dimensionless, 0.3 * heterogeneous_dimensio… in BOOST_AUTO_TEST_CASE()
/third_party/boost/libs/multiprecision/test/
Dtest_atan.cpp175 T val = atan2(arg, 1); in test()
182 val = atan2(-arg, 1); in test()
189 val = atan2(arg, -1); in test()
196 val = atan2(-arg, -1); in test()
208 … err = relative_error(T(atan2(T(0), T(1))), atan2_def(T(0), T(1))).template convert_to<unsigned>(); in test()
214 …err = relative_error(T(atan2(T(0), T(-1))), atan2_def(T(0), T(-1))).template convert_to<unsigned>(… in test()
222 err = relative_error(T(atan2(T(1), T(0))), T(pi / 2)).template convert_to<unsigned>(); in test()
226 err = relative_error(T(atan2(T(-1), T(0))), T(pi / -2)).template convert_to<unsigned>(); in test()
231 err = relative_error(T(atan2(mv, T(1))), T(pi / 2)).template convert_to<unsigned>(); in test()
234 err = relative_error(T(atan2(-mv, T(1))), T(pi / -2)).template convert_to<unsigned>(); in test()
[all …]
/third_party/boost/boost/geometry/formulas/
Dspherical.hpp77 lon = atan2(y, x); in cart3d_to_sph()
158 result.azimuth = atan2(y, x); in spherical_azimuth()
165 result.reverse_azimuth = atan2(y, x); in spherical_azimuth()
243 CT const alp0 = atan2(sin_alp1 * cos_lat1, norm); in spherical_direct()
244 CT const sig1 = atan2(sin_lat1, cos_alp1 * cos_lat1); in spherical_direct()
259 CT const lat2 = atan2(cos_alp0 * sin_sig2, norm2); in spherical_direct()
261 CT const omg1 = atan2(sin_alp0 * sin_sig1, cos_sig1); in spherical_direct()
262 CT const lon2 = atan2(sin_alp0 * sin_sig2, cos_sig2); in spherical_direct()
274 CT const alp2 = atan2(sin_alp0, cos_alp0 * cos_sig2); in spherical_direct()
Dvincenty_direct.hpp88 CT const sigma1 = atan2(tan_U1, cos_azimuth12); // (1) in apply()
142 = atan2( sin_U1 * cos_sigma + cos_U1 * sin_sigma * cos_azimuth12, in apply()
145 CT const lambda = atan2( sin_sigma * sin_azimuth12, in apply()
157 … = atan2(sin_alpha, -sin_U1 * sin_sigma + cos_U1 * cos_sigma * cos_azimuth12); // (12) in apply()
Dvertex_longitude.hpp50 CT lon = atan2(B, A); in apply()
127 CT const sin_alp0 = sin(atan2(sin_alp1 * cos_bet1, norm)); in apply()
135 CT const sig1 = atan2(sin_bet1, cos_alp1 * cos_bet1); in apply()
136 CT const sig2 = atan2(sin_bet2, -cos_alp2 * cos_bet2); //lat3 is a vertex in apply()
144 CT const omg1 = atan2(sin_alp0 * sin_sig1, cos_sig1); in apply()
145 CT const omg2 = atan2(sin_alp0 * sin_sig2, cos_sig2); in apply()
/third_party/musl/src/math/i386/
Datan2.s1 .global atan2 symbol
2 .type atan2,@function
3 atan2: label
/third_party/boost/libs/multiprecision/test/concepts/
Dnumber_concept_check.cpp137 t = atan2(t, t); in test_extra()
138 t = atan2(t, t * t); in test_extra()
139 t = atan2(t, dval); in test_extra()
140 t = atan2(t * t, t); in test_extra()
141 t = atan2(t * t, t * t); in test_extra()
142 t = atan2(t * t, dval); in test_extra()
143 t = atan2(dval, t); in test_extra()
144 t = atan2(dval, t * t); in test_extra()
/third_party/skia/tests/sksl/intrinsics/
DAtan.metal19atan2(_uniforms.inputVal.x, 1.0h) == _uniforms.expected.x) && all(atan2(_uniforms.inputVal.xy, hal…
/third_party/python/Lib/test/
Dtest_math.py320 self.assertRaises(TypeError, math.atan2)
321 self.ftest('atan2(-1, 0)', math.atan2(-1, 0), -math.pi/2)
322 self.ftest('atan2(-1, 1)', math.atan2(-1, 1), -math.pi/4)
323 self.ftest('atan2(0, 1)', math.atan2(0, 1), 0)
324 self.ftest('atan2(1, 1)', math.atan2(1, 1), math.pi/4)
325 self.ftest('atan2(1, 0)', math.atan2(1, 0), math.pi/2)
328 self.ftest('atan2(0., -inf)', math.atan2(0., NINF), math.pi)
329 self.ftest('atan2(0., -2.3)', math.atan2(0., -2.3), math.pi)
330 self.ftest('atan2(0., -0.)', math.atan2(0., -0.), math.pi)
331 self.assertEqual(math.atan2(0., 0.), 0.)
[all …]
/third_party/vk-gl-cts/external/vulkancts/data/vulkan/amber/crash_test/
Ddivbyzero_frag.amber104 // float atan2
108 // vec2 atan2
112 // vec3 atan2
116 // vec4 atan2
Ddivbyzero_comp.amber61 // float atan2
63 // vec2 atan2
65 // vec3 atan2
67 // vec4 atan2
/third_party/boost/boost/math/complex/
Datanh.hpp18 namespace std{ using ::sqrt; using ::fabs; using ::acos; using ::asin; using ::atan; using ::atan2;…
99 imag = std::atan2((y * two), (mxm1*(one+x) - yy)); in atanh()
183 imag = std::atan2(two*y, one); in atanh()
189 imag = std::atan2(two*y, one - y*y); in atanh()
200 imag = std::atan2(two*y, mxm1*(one+x)); in atanh()
/third_party/boost/boost/qvm/
Dmath.hpp21 template <class T> T atan2( T, T );
44 …template <> BOOST_QVM_INLINE_TRIVIAL float atan2<float>( float x, float y ) { return ::atan2f(x,y)… in atan2() function
66 …template <> BOOST_QVM_INLINE_TRIVIAL double atan2<double>( double x, double y ) { return ::atan2(x… in atan2() function
88 …template <> BOOST_QVM_INLINE_TRIVIAL long double atan2<long double>( long double x, long double y … in atan2() function
/third_party/boost/boost/geometry/srs/projections/proj/
Dtpeqd.hpp103 lp_lon = - atan2(d, (s * this->m_proj_parm.thz0)); in inv()
111 …lp_lon = atan2(cp * sin(lp_lon), this->m_proj_parm.sa * cp * s - this->m_proj_parm.ca * sp) + this… in inv()
148 A12 = atan2(proj_parm.cp2 * sin(proj_parm.dlam2), in setup_tpeqd()
152 … proj_parm.lp = adjlon(atan2(proj_parm.cp1 * cos(A12), proj_parm.sp1) - proj_parm.hz0); in setup_tpeqd()
154 …proj_parm.lamc = geometry::math::half_pi<T>() - atan2(sin(A12) * proj_parm.sp1, cos(A12)) - proj_p… in setup_tpeqd()
Dbipc.hpp111 Az = atan2(sdlam , C45 * (tphi - cdlam)); in fwd()
125 Az = atan2(sdlam, (C20 * tphi - S20 * cdlam)); in fwd()
190 fAz = fabs(Az = atan2(xy_x, xy_y)); in inv()
205 lp_lon = atan2(sin(Az), c / tan(z) - s * cos(Az)); in inv()
Dtcea.hpp64 xy_y = par.k0 * (atan2(tan(lp_lat), cos(lp_lon)) - par.phi0); in fwd()
77 lp_lon = atan2(xy_x, t * cos(xy_y)); in inv()
/third_party/boost/libs/qvm/test/
Dmath_test.cpp41 test2<float,float>(&boost::qvm::atan2<float>, &::atan2f); in main()
62 test2<double,double>(&boost::qvm::atan2<double>, &::atan2); in main()
83 test2<long double,long double>(&boost::qvm::atan2<long double>, &::atan2l); in main()
/third_party/mindspore/tests/st/ops/cpu/
Dtest_atan2_op.py30 self.atan2 = P.Atan2()
33 return self.atan2(x, y)
/third_party/wayland-ivi-extension/ivi-layermanagement-examples/EGLWLInputEventExample/src/
DWLEyes.cpp93 angle = atan2 ((float) dy, (float) dx); in ComputePupil()
106 a[0] = atan2(y0, x0); in ComputePupil()
107 a[1] = atan2(y1, x0); in ComputePupil()
108 a[2] = atan2(y1, x1); in ComputePupil()
109 a[3] = atan2(y0, x1); in ComputePupil()
/third_party/flutter/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
/third_party/boost/libs/math/test/float128/
Dtest_std_lib.cpp48 …BOOST_CHECK_CLOSE_FRACTION(std::atan2(BOOST_FLOAT128_C(0.5), BOOST_FLOAT128_C(2.0)), BOOST_FLOAT12… in BOOST_AUTO_TEST_CASE()
49 …BOOST_CHECK_CLOSE_FRACTION(std::atan2(BOOST_FLOAT128_C(-0.5), BOOST_FLOAT128_C(2.0)), BOOST_FLOAT1… in BOOST_AUTO_TEST_CASE()
50 …BOOST_CHECK_CLOSE_FRACTION(std::atan2(BOOST_FLOAT128_C(0.5), BOOST_FLOAT128_C(-2.0)), BOOST_FLOAT1… in BOOST_AUTO_TEST_CASE()
51 …BOOST_CHECK_CLOSE_FRACTION(std::atan2(BOOST_FLOAT128_C(-0.5), BOOST_FLOAT128_C(-2.0)), BOOST_FLOAT… in BOOST_AUTO_TEST_CASE()
52 … BOOST_CHECK_CLOSE_FRACTION(std::atan2(BOOST_FLOAT128_C(2.0), BOOST_FLOAT128_C(0.0)), pi / 2, tol); in BOOST_AUTO_TEST_CASE()
53 …BOOST_CHECK_CLOSE_FRACTION(std::atan2(BOOST_FLOAT128_C(-2.0), BOOST_FLOAT128_C(0.0)), -pi / 2, tol… in BOOST_AUTO_TEST_CASE()
54 …BOOST_CHECK_EQUAL(std::atan2(BOOST_FLOAT128_C(0.0), BOOST_FLOAT128_C(0.0)), BOOST_FLOAT128_C(0.0)); in BOOST_AUTO_TEST_CASE()
160 BOOST_CHECK_CLOSE_FRACTION(arg(cm), std::atan2(imag(cm), real(cm)), tol); in BOOST_AUTO_TEST_CASE()
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtx/
Dcompatibility.hpp52 …template <typename T, precision P> GLM_FUNC_QUALIFIER T atan2(T x, T y){return atan(x, y);} … in atan2() function
53 …template <typename T, precision P> GLM_FUNC_QUALIFIER tvec2<T, P> atan2(const tvec2<T, P>& x, cons… in atan2() function
54 …template <typename T, precision P> GLM_FUNC_QUALIFIER tvec3<T, P> atan2(const tvec3<T, P>& x, cons… in atan2() function
55 …template <typename T, precision P> GLM_FUNC_QUALIFIER tvec4<T, P> atan2(const tvec4<T, P>& x, cons… in atan2() function

12345678910>>...17