/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/ |
H A D | swiper_paint_method.cpp | 80 radius = sqrt(pow(centerX, 2) + pow(centerY, 2)); in PaintFade() 89 radius = sqrt(pow(centerY - height, 2) + pow(centerX, 2)); in PaintFade() 96 radius = sqrt(pow(centerX - width, 2) + pow(centerY, 2)); in PaintFade()
|
/foundation/arkui/ace_engine/adapter/ohos/tools/raw_input_injector/ |
H A D | injector_utils.cpp | 89 double coeff = static_cast<double>(Combination(n, i)) * pow(t, i) * pow(1 - t, n - i); in BezierCurve() 97 // cubic: x < 0.5 ? 4 * x * x * x : 1 - pow(-2 * x + 2, 3) / 2 106 return (t < c1) ? (c2 * t * t * t) : (1 - pow(c3 * t + c4, c5) / c6); in EaseInOutCubic() 109 // quart: x < 0.5 ? 8 * x * x * x * x : 1 - pow(-2 * x + 2, 4) / 2 118 return (t < c1) ? (c2 * t * t * t * t) : (1 - pow(c3 * t + c4, c5) / c6); in EaseInOutQuart()
|
/foundation/graphic/graphic_3d/lume/metaobject/src/curves/ |
H A D | easing_curve.cpp | 125 return BASE_NS::Math::pow(2.f, 10 * t - 10); in EaseInExpo() 132 return 1.f - BASE_NS::Math::pow(2.f, -10 * t); in EaseOutExpo() 143 return BASE_NS::Math::pow(2.f, 20 * t - 10) / 2.f; in EaseInOutExpo() 145 return (2.f - BASE_NS::Math::pow(2.f, -20 * t + 10)) / 2.f; in EaseInOutExpo() 192 return -BASE_NS::Math::pow(2.f, 10 * t - 10) * BASE_NS::Math::sin((t * 10 - 10.75f) * c4); in EaseInElastic() 203 return BASE_NS::Math::pow(2.f, -10 * t) * BASE_NS::Math::sin((t * 10 - 0.75f) * c4) + 1.f; in EaseOutElastic() 215 return -(BASE_NS::Math::pow(2.f, 20 * t - 10) * BASE_NS::Math::sin((20 * t - 11.125f) * c5)) / 2.f; in EaseInOutElastic() 217 return (BASE_NS::Math::pow(2.f, -20 * t + 10) * BASE_NS::Math::sin((20 * t - 11.125f) * c5)) / 2.f + 1.f; in EaseInOutElastic()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/security_component/ |
H A D | security_component_layout_algorithm.cpp | 456 auto maxDistance = pow(circlePoint.Width() + threshold); in IsTextOutOfRangeInCircle() 457 auto leftTopDistance = pow(textLeftTopPoint_.Width() - circlePoint.Width()) + in IsTextOutOfRangeInCircle() 458 pow(textLeftTopPoint_.Height() - circlePoint.Height()); in IsTextOutOfRangeInCircle() 462 auto leftBottomDistance = pow(textLeftBottomPoint_.Width() - circlePoint.Width()) + in IsTextOutOfRangeInCircle() 463 pow(textLeftBottomPoint_.Height() - circlePoint.Height()); in IsTextOutOfRangeInCircle() 467 auto rightTopDistance = pow(textRightTopPoint_.Width() - circlePoint.Width()) + in IsTextOutOfRangeInCircle() 468 pow(textRightTopPoint_.Height() - circlePoint.Height()); in IsTextOutOfRangeInCircle() 473 auto rightBottomDistance = pow(textRightBottomPoint_.Width() - circlePoint.Width()) + in IsTextOutOfRangeInCircle() 474 pow(textRightBottomPoint_.Height() - circlePoint.Height()); in IsTextOutOfRangeInCircle() 484 auto distance = pow(poin in CompareDistance() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/core/hgm_screen_manager/ |
H A D | hgm_screen.cpp | 29 auto screenLength = sqrt(pow(screenSize.width, 2) + pow(screenSize.height, 2));
in HgmScreen() 30 auto phyScreenLength = sqrt(pow(screenSize.phyWidth, 2) + pow(screenSize.phyHeight, 2));
in HgmScreen()
|
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/shaders/common/ |
H A D | 3d_dm_brdf_common.h | 40 return clamp(pow(NoV + ao, exp2(-16.0 * roughness - 1.0)) - 1.0 + ao, 0.0, 1.0); in EnvSpecularAo() 69 return (2.0 + invR) * pow(sin2h, invR * 0.5) / (2.0 * CORE_BRDF_PI); in dCharlie() 90 const float p = pow(1.0 - VoH, 5.0); in fSchlick() 96 const float p = pow(1.0 - VoH, 5.0); in fSchlickSingle() 103 const float p = pow(1.0 - VoH, 5.0); in fSchlick()
|
H A D | 3d_dm_lighting_common.h | 100 pow(clamp(max(dot(normalDFdx, normalDFdx), dot(normalDdFdy, normalDdFdy)), 0.0, 1.0), 0.333); in GetFinalCorrectedRoughness() 402 const float attenuation = max(min(1.0 - pow(dist / range, 4.0), 1.0), 0.0) / (dist * dist); in CalculateLighting() 419 const float attenuation = max(min(1.0 - pow(dist / range, 4.0), 1.0), 0.0) / (dist * dist); in CalculateLighting() 494 const float attenuation = max(min(1.0 - pow(dist / range, 4.0), 1.0), 0.0) / (dist * dist); in CalculateLighting() 510 const float attenuation = max(min(1.0 - pow(dist / range, 4.0), 1.0), 0.0) / (dist * dist); in CalculateLighting() 639 const float attenuation = max(min(1.0 - pow(dist / range, 4.0), 1.0), 0.0) / (dist * dist); in CalculateLighting() 655 const float attenuation = max(min(1.0 - pow(dist / range, 4.0), 1.0), 0.0) / (dist * dist); in CalculateLighting() 683 // Use a spherical gaussian approximation of pow() for forwardScattering in CalculateLight() 762 const float attenuation = max(min(1.0 - pow(dist / range, 4.0), 1.0), 0.0) / (dist * dist); in CalculateLighting() 778 const float attenuation = max(min(1.0 - pow(dis in CalculateLighting() [all...] |
/foundation/multimedia/image_effect/frameworks/native/efilter/filterimpl/brightness/ |
H A D | cpu_brightness_algo.cpp | 69 scale = pow(2.4f, scale); // 2.4 is algorithm parameter. in OnApplyRGBA8888() 74 current = 1.f - pow(current, scale); in OnApplyRGBA8888() 118 scale = pow(2.4f, scale); // 2.4 is algorithm parameter. in OnApplyYUVNV21() 123 current = 1.f - pow(current, scale); in OnApplyYUVNV21() 178 brightnessScale = pow(2.4f, brightnessScale); // 2.4 is algorithm parameter. in OnApplyYUVNV12() 183 current = 1.f - pow(current, brightnessScale); in OnApplyYUVNV12()
|
/foundation/graphic/graphic_3d/lume/LumeRender/api/render/shaders/common/ |
H A D | render_color_conversion_common.h | 76 const vec3 high = pow((srgb + 0.055f) * mhigh, vec3(2.4f)); in SrgbToLinear() 91 const vec3 high = pow(linear, vec3(0.416f)) * mhigh - 0.055f; in LinearToSrgb()
|
H A D | render_post_process_common.h | 30 vignette = pow(vignette, power); in getVignetteCoeff()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/ |
H A D | rs_spring_model.cpp | 216 sqrt(pow(initialOffset_, 2) + 217 (pow((initialVelocity_ + dampingRatio_ * naturalAngularVelocity * initialOffset_) / dampingAngularVelocity, 276 double tmpCoeffA = dampingRatio_ + sqrt(pow(dampingRatio_, 2) - 1.0); 277 double tmpCoeffB = dampingRatio_ - sqrt(pow(dampingRatio_, 2) - 1.0); 280 double tmpCoeffE = 2.0 * naturalAngularVelocity * sqrt(pow(dampingRatio_, 2) - 1.0);
|
/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/ |
H A D | component_util_functions.h | 36 range = BASE_NS::Math::sqrt(BASE_NS::Math::pow(lightIntensity + minLightIntensityAdd, powValue)); in CalculateSafeLightRange()
|
/foundation/communication/dsoftbus/adapter/common/range/ |
H A D | softbus_adapter_range.c | 32 *range = (int32_t)pow(DB_BASE, param->rssi * -1 / DB_COEFFICIENT); in SoftBusBleRange()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/container_modal/ |
H A D | container_modal_view.cpp | 281 float maxDis = sqrt(pow(halfSize, 2.0) + pow(halfSize, 2.0));
in AddButtonHover() 282 float curDis = sqrt(pow(buttonPattern->GetLocalLocation().GetX() - halfSize, 2.0) +
in AddButtonHover() 283 pow(buttonPattern->GetLocalLocation().GetY() - halfSize, 2.0));
in AddButtonHover() 332 float maxDis = sqrt(pow(halfSize, 2.0) + pow(halfSize, 2.0));
in AddButtonMouse() 334 pow(info.GetLocalLocation().GetX() - halfSize, 2.0) + pow(info.GetLocalLocation().GetY() - halfSize, 2.0));
in AddButtonMouse()
|
/foundation/arkui/ace_engine/frameworks/core/animation/ |
H A D | evaluator.h | 83 return pow(value, GAMMA_FACTOR); in ConvertGammaToLinear() 95 return std::clamp(static_cast<int32_t>(std::pow(value, 1.0 / GAMMA_FACTOR)), 0, UINT8_MAX); in ConvertLinearToGamma()
|
H A D | param_transfer.h | 75 return std::pow(delta + 1, -value_ * CURVE_COEFFICIENT) * value;
|
/foundation/graphic/graphic_3d/lume/LumeBase/api/base/util/ |
H A D | color.h | 44 col = Math::pow((col + 0.055f) * (1.f / 1.055f), 2.4f); in SRGBToLinearConv() 55 srgb = 1.0550000667572021484375f * Math::pow(srgb, 1.f / 2.4f) - 0.05500000715255737305f; in LinearToSRGBConv()
|
/foundation/graphic/graphic_2d/utils/color_manager/src/ |
H A D | color_space.cpp | 341 float tmp = std::pow(n, p.c);
in ToLinear() 342 n = std::pow(std::max(p.a + p.b * tmp, 0.0f) / (p.d + p.e * tmp), p.f);
in ToLinear() 344 n = n >= p.d ? std::pow(p.a * n + p.b, p.g) + p.e : p.c * n + p.f;
in ToLinear() 359 float tmp = std::pow(n, 1 / p.f);
in ToNonLinear() 360 n = std::pow((-p.a + p.d * tmp) / (p.b - p.e * tmp), 1 / p.c);
in ToNonLinear() 362 n = n >= p.d * p.c ? (std::pow(n - p.e, 1.0f / p.g) - p.b) / p.a : (n - p.f) / p.c;
in ToNonLinear()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/drag_drop/utils/ |
H A D | drag_animation_helper.cpp | 55 float dis = sqrt(pow(gatherNodeCenter.GetX() - curPos.GetX(), 2) + in CalcDistanceBeforeLifting() 56 pow(gatherNodeCenter.GetY() - curPos.GetY(), 2)); in CalcDistanceBeforeLifting() 78 float dis = sqrt(pow(xDis, 2) + pow(yDis, 2)); 82 auto trans = calcResult.maxTranslation * pow(EULER_NUMBER, -(dis - calcResult.minDistance) /
|
/foundation/arkui/ace_engine/frameworks/core/gestures/ |
H A D | pinch_recognizer.cpp | 222 double zoomDistance = sqrt(pow(aveDevX, 2) + pow(aveDevY, 2)); in ComputeAverageDeviation()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/property/ |
H A D | rs_properties_def.h | 264 float cos = std::pow(num, 1.f / count); in CalculateLightRadius() 265 float tan = std::sqrt(static_cast<float>(1 - pow(cos, 2))) / cos; in CalculateLightRadius()
|
/foundation/graphic/graphic_3d/lume/LumeEngine/src/image/loaders/ |
H A D | image_loader_common.cpp | 44 color = pow((color + 0.055f) * (1.f / 1.055f), 2.4f); in InitializeSRGBTable() 50 premultiplied = 1.055f * pow(premultiplied, 1.f / 2.4f) - 0.055f; in InitializeSRGBTable()
|
/foundation/arkui/ace_engine/frameworks/core/components/picker/ |
H A D | toss_animation_controller.cpp | 89 double distance = std::pow(DRAG, value); in Play()
|
/foundation/arkui/ace_engine/frameworks/core/components/swiper/ |
H A D | rosen_render_swiper.cpp | 113 radius = sqrt(pow(centerX, 2) + pow(centerY, 2)); in PaintShadow() 122 radius = sqrt(pow(centerY - height, 2) + pow(centerX, 2)); in PaintShadow() 129 radius = sqrt(pow(centerX - width, 2) + pow(centerY, 2)); in PaintShadow()
|
/foundation/arkui/ace_engine/frameworks/core/components/focus_animation/ |
H A D | rosen_render_focus_animation.cpp | 89 int32_t maxHeight = sqrt(pow(width_ + MULTIPLE_FACTOR * padding, MULTIPLE_FACTOR) + in PaintGlow() 90 pow(height_ + MULTIPLE_FACTOR * padding, MULTIPLE_FACTOR)); in PaintGlow() 139 int32_t maxHeight = sqrt(pow(width_ + MULTIPLE_FACTOR * padding, MULTIPLE_FACTOR) + in PaintGlow() 140 pow(height_ + MULTIPLE_FACTOR * padding, MULTIPLE_FACTOR)); in PaintGlow()
|