Searched refs:theta (Results 1 - 9 of 9) sorted by relevance
/foundation/window/window_manager/utils/src/ |
H A D | wm_math.cpp | 196 // theta is in radians 197 Matrix3 CreateRotation(float theta) in CreateRotation() argument 200 { std::cos(theta), std::sin(theta), 0.0f }, in CreateRotation() 201 { -std::sin(theta), std::cos(theta), 0.0f }, in CreateRotation() 228 // theta is in radians 229 Matrix4 CreateRotationX(float theta) in CreateRotationX() argument 233 { 0.0f, std::cos(theta), std::sin(theta), 0. in CreateRotationX() 241 CreateRotationY(float theta) CreateRotationY() argument 253 CreateRotationZ(float theta) CreateRotationZ() argument [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/dm/ |
H A D | largeclippedpath.cpp | 72 float theta = n * M_PI * i / kNumPetals; in OnTestFunction() local 73 OH_Drawing_PathQuadTo(pathQuad, cosf(c) * n, sinf(c) * n, cosf(theta), sinf(theta)); in OnTestFunction()
|
/foundation/window/window_manager/test/fuzztest/wms/windowutilmath_fuzzer/ |
H A D | windowutilmath_fuzzer.cpp | 119 float theta; in WindowUtilMathFuzzPart1() local 120 startPos += GetObject<float>(theta, data + startPos, size - startPos); in WindowUtilMathFuzzPart1() 121 OHOS::Rosen::TransformHelper::CreateRotation(theta); in WindowUtilMathFuzzPart1() 122 OHOS::Rosen::TransformHelper::CreateRotationX(theta); in WindowUtilMathFuzzPart1() 123 OHOS::Rosen::TransformHelper::CreateRotationY(theta); in WindowUtilMathFuzzPart1() 124 OHOS::Rosen::TransformHelper::CreateRotationZ(theta); in WindowUtilMathFuzzPart1()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/ |
H A D | svg_fe_color_matrix.cpp | 71 float theta = DegreesToRadians(std::stof(value)); in MakeHueRotate() local 72 const float cosValue = cos(theta); in MakeHueRotate() 73 const float sinValue = sin(theta); in MakeHueRotate()
|
/foundation/window/window_manager/utils/include/ |
H A D | wm_math.h | 214 // theta is in radians 215 Matrix3 CreateRotation(float theta); 221 // theta is in radians 222 Matrix4 CreateRotationX(float theta); 224 // theta is in radians 225 Matrix4 CreateRotationY(float theta); 227 // theta is in radians 228 Matrix4 CreateRotationZ(float theta);
|
/foundation/window/window_manager/utils/test/unittest/ |
H A D | wm_math_test.cpp | 92 float theta = 2.34f; in HWTEST_F() local 93 transformMat *= CreateRotationY(theta); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/ |
H A D | rs_render_particle.cpp | 762 float theta = GetRandomValue(0.f, 2 * PI); in CalculateParticlePosition() local 766 positionX = x + r * cos(theta); in CalculateParticlePosition() 767 positionY = y + r * sin(theta); in CalculateParticlePosition() 771 positionX = x + rx * cos(theta); in CalculateParticlePosition() 772 positionY = y + ry * sin(theta); in CalculateParticlePosition()
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_congestion/core/ |
H A D | nstackx_congestion.c | 101 const uint32_t theta = (WIFI_THETA_ACCURACY * effectiveSize / allSize); in GetThetaByLinkSpeed() local 102 return theta; in GetThetaByLinkSpeed()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/bubble/ |
H A D | bubble_layout_algorithm.cpp | 123 auto theta = std::atan(h1 / w1); in GetEndP2P4() local 124 auto side = w1 /std::cos(theta); in GetEndP2P4() 126 auto beta = theta + alpha; in GetEndP2P4() 138 auto theta = std::atan(h1 / w1); in GetP2() local 139 auto side = w1 /std::cos(theta); in GetP2() 142 auto beta = alpha + theta; in GetP2()
|
Completed in 10 milliseconds