/third_party/skia/resources/sksl/intrinsics/ |
D | Radians.sksl | 6 return (radians(inputVal.x) == expected.x && 7 radians(inputVal.xy) == expected.xy && 8 radians(inputVal.xyz) == expected.xyz && 9 radians(inputVal.xyzw) == expected.xyzw && 10 radians(constVal.x) == expected.x && 11 radians(constVal.xy) == expected.xy && 12 radians(constVal.xyz) == expected.xyz && 13 radians(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
|
/third_party/skia/include/core/ |
D | SkScalar.h | 44 #define SkScalarSin(radians) (float)sk_float_sin(radians) argument 45 #define SkScalarCos(radians) (float)sk_float_cos(radians) argument 46 #define SkScalarTan(radians) (float)sk_float_tan(radians) argument 113 #define SkRadiansToDegrees(radians) ((radians) * (180 / SK_ScalarPI)) argument 148 static inline float SkScalarSinSnapToZero(SkScalar radians) { in SkScalarSinSnapToZero() argument 149 float v = SkScalarSin(radians); in SkScalarSinSnapToZero() 153 static inline float SkScalarCosSnapToZero(SkScalar radians) { in SkScalarCosSnapToZero() argument 154 float v = SkScalarCos(radians); in SkScalarCosSnapToZero()
|
D | SkRSXform.h | 33 static SkRSXform MakeFromRadians(SkScalar scale, SkScalar radians, SkScalar tx, SkScalar ty, in MakeFromRadians() 35 const SkScalar s = SkScalarSin(radians) * scale; in MakeFromRadians() 36 const SkScalar c = SkScalarCos(radians) * scale; in MakeFromRadians()
|
D | SkM44.h | 223 static SkM44 Rotate(SkV3 axis, SkScalar radians) { in Rotate() argument 225 m.setRotate(axis, radians); in Rotate() 316 SkM44& setRotateUnit(SkV3 axis, SkScalar radians) { in setRotateUnit() argument 317 return this->setRotateUnitSinCos(axis, SkScalarSin(radians), SkScalarCos(radians)); in setRotateUnit() 327 SkM44& setRotate(SkV3 axis, SkScalar radians);
|
/third_party/flutter/skia/include/core/ |
D | SkScalar.h | 44 #define SkScalarSin(radians) (float)sk_float_sin(radians) argument 45 #define SkScalarCos(radians) (float)sk_float_cos(radians) argument 46 #define SkScalarTan(radians) (float)sk_float_tan(radians) argument 123 #define SkRadiansToDegrees(radians) ((radians) * (180 / SK_ScalarPI)) argument 161 static inline float SkScalarSinSnapToZero(SkScalar radians) { in SkScalarSinSnapToZero() argument 162 float v = SkScalarSin(radians); in SkScalarSinSnapToZero() 166 static inline float SkScalarCosSnapToZero(SkScalar radians) { in SkScalarCosSnapToZero() argument 167 float v = SkScalarCos(radians); in SkScalarCosSnapToZero()
|
D | SkRSXform.h | 33 static SkRSXform MakeFromRadians(SkScalar scale, SkScalar radians, SkScalar tx, SkScalar ty, in MakeFromRadians() 35 const SkScalar s = SkScalarSin(radians) * scale; in MakeFromRadians() 36 const SkScalar c = SkScalarCos(radians) * scale; in MakeFromRadians()
|
/third_party/skia/third_party/externals/oboe/src/flowgraph/resampler/ |
D | MultiChannelResampler.cpp | 121 float MultiChannelResampler::sinc(float radians) { in sinc() argument 122 if (abs(radians) < 1.0e-9) return 1.0f; // avoid divide by zero in sinc() 123 return sinf(radians) / radians; // Sinc function in sinc() 148 float radians = tapPhase * M_PI; in generateCoefficients() local 155 float coefficient = sinc(radians * cutoffScaler) * window; in generateCoefficients()
|
D | MultiChannelResampler.h | 196 static float hammingWindow(float radians, float spread); 198 static float sinc(float radians);
|
/third_party/skia/tests/sksl/intrinsics/ |
D | Radians.glsl | 8 …return ((((((radians(inputVal.x) == expected.x && radians(inputVal.xy) == expected.xy) && radians(…
|
/third_party/vk-gl-cts/framework/common/ |
D | tcuMatrixUtil.hpp | 40 Matrix<float, 2, 2> rotationMatrix (float radians); 70 inline Matrix<float, 2, 2> rotationMatrix (float radians) in rotationMatrix() argument 73 float c = deFloatCos(radians); in rotationMatrix() 74 float s = deFloatSin(radians); in rotationMatrix()
|
/third_party/ffmpeg/libavutil/ |
D | display.c | 52 double radians = -angle * M_PI / 180.0f; in av_display_rotation_set() local 53 double c = cos(radians); in av_display_rotation_set() 54 double s = sin(radians); in av_display_rotation_set()
|
/third_party/skia/samplecode/ |
D | SampleAndroidShadows.cpp | 281 SkScalar radians = SkDegreesToRadians(fAnimAngle); in onDrawContent() local 283 SkScalarSin(radians), in onDrawContent() 284 std::max(1.0f, 16 + fZDelta) - SkScalarSin(radians)*pivot.fY); in onDrawContent() 298 zPlaneParams = SkPoint3::Make(-SkScalarSin(radians), in onDrawContent() 300 std::max(1.0f, 32 + fZDelta) + SkScalarSin(radians)*pivot.fX); in onDrawContent() 313 zPlaneParams = SkPoint3::Make(-SkScalarSin(radians), in onDrawContent() 315 std::max(1.0f, 8 + fZDelta) + SkScalarSin(radians)*pivot.fX); in onDrawContent()
|
/third_party/flutter/skia/samplecode/ |
D | SampleAndroidShadows.cpp | 282 SkScalar radians = SkDegreesToRadians(fAnimAngle); in onDrawContent() local 284 SkScalarSin(radians), in onDrawContent() 285 SkTMax(1.0f, 16 + fZDelta) - SkScalarSin(radians)*pivot.fY); in onDrawContent() 299 zPlaneParams = SkPoint3::Make(-SkScalarSin(radians), in onDrawContent() 301 SkTMax(1.0f, 32 + fZDelta) + SkScalarSin(radians)*pivot.fX); in onDrawContent() 314 zPlaneParams = SkPoint3::Make(-SkScalarSin(radians), in onDrawContent() 316 SkTMax(1.0f, 8 + fZDelta) + SkScalarSin(radians)*pivot.fX); in onDrawContent()
|
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/detail/ |
D | func_trigonometric.inl | 10 // radians 12 GLM_FUNC_QUALIFIER GLM_CONSTEXPR genType radians(genType degrees) function 14 …GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'radians' only accept floating-point i… 20 GLM_FUNC_QUALIFIER GLM_CONSTEXPR vecType<T, P> radians(vecType<T, P> const & v) function 22 return detail::functor1<T, T, P, vecType>::call(radians, v); 27 GLM_FUNC_QUALIFIER GLM_CONSTEXPR genType degrees(genType radians) argument 31 return radians * static_cast<genType>(57.295779513082320876798154814105);
|
D | func_trigonometric.hpp | 32 GLM_FUNC_DECL GLM_CONSTEXPR vecType<T, P> radians(vecType<T, P> const & degrees); 41 GLM_FUNC_DECL GLM_CONSTEXPR vecType<T, P> degrees(vecType<T, P> const & radians);
|
/third_party/flutter/skia/src/sksl/ |
D | sksl_interp.inc | 21 float radians(float deg) { return deg * 0.0174532925; } 22 float2 radians(float2 deg) { return deg * 0.0174532925; } 23 float3 radians(float3 deg) { return deg * 0.0174532925; } 24 float4 radians(float4 deg) { return deg * 0.0174532925; }
|
/third_party/skia/site/docs/user/modules/ |
D | particles.md | 163 " float a = radians(rand(p.seed) * 360);", 251 " float4x4 mat = rx(age * radians(60))", 252 " * ry(age * radians(70))", 253 " * rz(age * radians(80));", 284 " p.pos.x = sin(radians(p.age * 320)) * mix(25, 10, p.age) + mix(-w, w, rand(p.seed));", 305 " float a = radians(mix(-20, 20, rand(effect.seed)) - 90);", 330 " float a = radians(rand(p.seed) * 360);", 360 " float a = radians(mix(250, 290, rand(p.seed)));", 434 " float a = radians(rand(p.seed) * 360);",
|
/third_party/skia/demos.skia.org/demos/path_performance/ |
D | shared.js | 3 function circleCoordinates(origin, radius, radians) { argument 5 origin[0] + Math.cos(radians) * radius, 6 origin[1] + Math.sin(radians) * radius
|
/third_party/flutter/flutter/packages/flutter/test/widgets/ |
D | composited_transform_test.dart | 55 angle: 1.0, // radians 66 angle: -0.3, // radians 98 angle: 1.0, // radians 109 angle: -0.3, // radians
|
D | clip_test.dart | 351 angle: 1.0, // radians 440 angle: 1.0, // radians 492 angle: 1.0, // radians 538 angle: 1.0, // radians 588 angle: 1.0, // radians 661 angle: 1.0, // radians 705 angle: 1.0, // radians 780 angle: 1.0, // radians
|
/third_party/skia/resources/sksl/runtime_errors/ |
D | Ossfuzz36655.rts | 10 n();;;;;;;;;;m(),radians(2);S(); 16 ;n();m(),radians(1);X();
|
/third_party/skia/modules/canvaskit/ |
D | matrix.js | 153 CanvasKit.Matrix.rotated = function(radians, px, py) { argument 156 var sinV = Math.sin(radians); 157 var cosV = Math.cos(radians); 245 CanvasKit.M44.rotated = function(axisVec, radians) { argument 247 CanvasKit.Vector.normalize(axisVec), Math.sin(radians), Math.cos(radians));
|
/third_party/flutter/engine/flutter/lib/web_ui/lib/src/engine/ |
D | vector_math.dart | 105 factory Matrix4.rotationX(double radians) => Matrix4.zero() 107 ..setRotationX(radians); 110 factory Matrix4.rotationY(double radians) => Matrix4.zero() 112 ..setRotationY(radians); 115 factory Matrix4.rotationZ(double radians) => Matrix4.zero() 117 ..setRotationZ(radians); 704 /// Sets the upper 3x3 to a rotation of [radians] around X 705 void setRotationX(double radians) { 706 final double c = math.cos(radians); 707 final double s = math.sin(radians); [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/test/ |
D | testgles2.c | 108 float radians, c, s, c1, u[3], length; in rotate_matrix() local 111 radians = (float)(angle * M_PI) / 180.0f; in rotate_matrix() 113 c = SDL_cosf(radians); in rotate_matrix() 114 s = SDL_sinf(radians); in rotate_matrix() 116 c1 = 1.0f - SDL_cosf(radians); in rotate_matrix()
|
/third_party/flutter/skia/third_party/externals/dawn/examples/ |
D | CubeReflection.cpp | 244 cameraData.proj = glm::perspective(glm::radians(45.0f), 1.f, 1.0f, 100.0f); in init() 255 …glm::vec3(8.f * std::sin(glm::radians(s.b * 360.f)), 2.f, 8.f * std::cos(glm::radians(s.b * 360.f)… in frame()
|