/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/ |
H A D | rs_obj_abs_geometry.cpp | 27 constexpr float EPSILON = 1e-4f; variable 128 if (!ROSEN_EQ(trans.skewX_, 0.f, EPSILON) || !ROSEN_EQ(trans.skewY_, 0.f, EPSILON)) { in ApplySkewToMatrix44() 144 if (!ROSEN_EQ(trans.perspX_, 0.f, EPSILON) || !ROSEN_EQ(trans.perspY_, 0.f, EPSILON)) { in ApplyPerspToMatrix() 159 if (!ROSEN_EQ(trans.perspX_, 0.f, EPSILON) || !ROSEN_EQ(trans.perspY_, 0.f, EPSILON)) { in ApplyPerspToMatrix44() 180 …if (!ROSEN_EQ(x_ + trans_->translateX_, 0.f, EPSILON) || !ROSEN_EQ(y_ + trans_->translateY_, 0.f, … in UpdateAbsMatrix2D() 184 if (!ROSEN_EQ(trans_->perspX_, 0.f, EPSILON) || !ROSEN_EQ(trans_->perspY_, 0.f, EPSILON)) { in UpdateAbsMatrix2D() 190 if (!ROSEN_EQ(trans_->rotation_, 0.f, EPSILON)) { in UpdateAbsMatrix2D() 194 if (!ROSEN_EQ(trans_->skewX_, 0.f, EPSILON) || !ROSEN_EQ(trans_->skewY_, 0.f, EPSILON)) { in UpdateAbsMatrix2D() 260 if (!ROSEN_EQ(trans_->pivotZ_, 0.f, EPSILON)) { in UpdateAbsMatrix3D() 271 if (!ROSEN_EQ(trans_->skewX_, 0.f, EPSILON) || !ROSEN_EQ(trans_->skewY_, 0.f, EPSILON)) { in UpdateAbsMatrix3D() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/ |
H A D | rs_particle_noise_field.cpp | 20 constexpr float EPSILON = 1e-3; variable 231 float noise_dx = Noise(x + EPSILON, y) - Noise(x - EPSILON, y); in Curl() 232 float noise_dy = Noise(x, y + EPSILON) - Noise(x, y - EPSILON); in Curl() 236 float curlx = -noise_dy / (2 * EPSILON); in Curl() 237 float curly = noise_dx / (2 * EPSILON); in Curl()
|
H A D | rs_value_estimator.cpp | 73 while (end > start + EPSILON) { in EstimateFraction() 83 if (std::abs(lastValue_ - interpolationValue) <= EPSILON) { in EstimateFraction()
|
H A D | rs_interpolator.cpp | 222 if (input < times_[0] + EPSILON) { in InterpolateImpl() 225 if (input > times_[times_.size() - 1] - EPSILON) { in InterpolateImpl()
|
/ohos5.0/base/powermgr/display_manager/brightness_manager/include/ |
H A D | brightness_base.h | 28 const float EPSILON = 0.0000001f; variable 62 return fabs(a - b) < EPSILON; in IsEqualF()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBase/api/base/math/ |
H A D | matrix_util.h | 477 if (abs(tanHalfFovy) > EPSILON) { in BASE_BEGIN_NAMESPACE() 483 if (const auto div = (zFar - zNear); abs(div) > EPSILON) { in BASE_BEGIN_NAMESPACE() 517 if (abs(tanHalfFovy) > EPSILON) { in BASE_BEGIN_NAMESPACE() 523 if (const auto div = (zFar - zNear); abs(div) > EPSILON) { in BASE_BEGIN_NAMESPACE() 596 if (const float width = right - left; abs(width) > EPSILON) { in BASE_BEGIN_NAMESPACE() 612 if (const float depth = zFar - zNear; abs(depth) > EPSILON) { in BASE_BEGIN_NAMESPACE() 639 if (const float width = right - left; abs(width) > EPSILON) { in BASE_BEGIN_NAMESPACE() 730 if (abs(localMatrix.w.w) < EPSILON) { in BASE_BEGIN_NAMESPACE() 741 …if (abs(localMatrix.x.w) >= EPSILON || abs(localMatrix.y.w) >= EPSILON || abs(localMatrix.z.w) >= … in BASE_BEGIN_NAMESPACE() 756 if (abs(determinant) < EPSILON) { in BASE_BEGIN_NAMESPACE() [all …]
|
H A D | quaternion.h | 106 return sqmgt < Math::EPSILON * Math::EPSILON; in BASE_BEGIN_NAMESPACE()
|
H A D | vector.h | 176 return sqmgt < Math::EPSILON * Math::EPSILON; in BASE_BEGIN_NAMESPACE() 961 return sqmgt < Math::EPSILON * Math::EPSILON; in BASE_BEGIN_NAMESPACE() 1117 return sqmgt < Math::EPSILON * Math::EPSILON; in BASE_BEGIN_NAMESPACE()
|
H A D | vector_util.h | 82 if (mag > Math::EPSILON) in BASE_BEGIN_NAMESPACE() 189 if (mag > Math::EPSILON) { in BASE_BEGIN_NAMESPACE()
|
H A D | mathf.h | 166 static constexpr float EPSILON = BASE_EPSILON; in BASE_BEGIN_NAMESPACE() local
|
H A D | quaternion_util.h | 115 … const auto discardEpsilon = [](const float value) { return value < Math::EPSILON ? 0.f : value; }; in BASE_BEGIN_NAMESPACE() 241 if (cosTheta > 1.0f - EPSILON) { in BASE_BEGIN_NAMESPACE()
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/ |
H A D | post_proc_slr.cpp | 34 constexpr float EPSILON = 1e-6; variable 42 if (std::fabs(x) < EPSILON) { in GetSLRFactor() 55 if (std::fabs(coeff) < EPSILON || coeff < .0f || n <= 0) { in GetWeights() 82 if (std::fabs(rowSum[i]) < EPSILON) { in GetWeights()
|
/ohos5.0/docs/zh-cn/application-dev/performance/ |
H A D | screen_flicker_solution.md | 47 const EPSILON: number = 1e-6; 48 if (Math.abs(this.scaleValue - 0.5) < EPSILON) { 107 const EPSILON: number = 1e-6; 108 if (Math.abs(this.scaleValue - 0.5) < EPSILON) {
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/image/ |
H A D | image_modifier.cpp | 104 canvas->SetIsDrawAnimate(!NearEqual(ANIMATION_END, ratio, EPSILON)); in DrawImageWithAnimation() 123 if (NearEqual(ANIMATION_END, ratio, EPSILON)) { in UpdatePaintConfig()
|
H A D | image_modifier.h | 29 constexpr double EPSILON = 0.0001; // use to judge the end of action variable
|
/ohos5.0/foundation/ai/ai_engine/services/common/platform/os_wrapper/feature/source/ |
H A D | norm_processor.cpp | 30 const float EPSILON = 1e-6; variable 205 …workBuffer_[i] = (std::abs(stdVal) < EPSILON) ? 0.0f : ((data[i] - meanVal) / stdVal) * config_.sc… in Process()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/animation/ |
H A D | rs_animation_common.h | 25 static constexpr float EPSILON = 1e-6; variable
|
/ohos5.0/docs/zh-cn/contribute/ |
H A D | OpenHarmony-JavaScript-coding-style-guide.md | 652 …一个极小的常量`Number.EPSILON =.220446049250313e-16 `,约等于`0.00000000000000022204`。`Number.EPSILON`的出现是用来判… 656 return Math.abs(one - other) < Number.EPSILON;
|
/ohos5.0/base/msdp/device_status/interfaces/innerkits/interaction/include/ |
H A D | drag_data.h | 35 constexpr float EPSILON { 1E-6 }; 176 radius == other.radius && fabsf(scale - other.scale) < EPSILON;
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/clock/ |
H A D | render_clock.cpp | 29 constexpr double EPSILON = 0.000001; variable 117 …digitSizeRatio_ = InRegion(EPSILON, DIGIT_SIZE_RATIO_UPPER_BOUND, inputDigitSizeRatio) ? inputDigi… in Update() 120 digitRadiusRatio_ = InRegion(EPSILON, DIGIT_RADIUS_RATIO_UPPER_BOUND, inputDigitRadiusRatio) in Update()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/src/curves/ |
H A D | bezier_curve.cpp | 87 if (dx = GetDX(tt); IsFloatNull(dx, BASE_NS::Math::EPSILON)) { in GetLinearX()
|
/ohos5.0/base/sensors/miscdevice/services/miscdevice_service/haptic_matcher/src/ |
H A D | custom_vibration_matcher.cpp | 44 const float EPSILON = 0.00001; variable 83 if ((std::abs(intensityEqualValue) <= EPSILON) || (std::abs(frequencyEqualValue) <= EPSILON)) { in NormalizedWaveInfo()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/animation/ |
H A D | rs_keyframe_animation.cpp | 98 if (std::abs(std::get<FRACTION_INDEX>(beginKeyframe) - FRACTION_MIN) > EPSILON) { in InitInterpolationValue()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/window_scene/scene/ |
H A D | window_scene_layout_manager.cpp | 32 constexpr float EPSILON = 1e-3; variable 187 if (std::abs(width - 0.0f) < EPSILON || std::abs(height - 0.0f) < EPSILON) { in FillWindowSceneInfo()
|
/ohos5.0/base/msdp/device_status/services/interaction/drag/src/ |
H A D | drag_drawing.cpp | 467 …(SCALE_THRESHOLD_TWELVE < scalingValue || fabsf(SCALE_THRESHOLD_TWELVE - scalingValue) < EPSILON) { in UpdateShadowPic() 666 if (dragOriginDpi > EPSILON) { in AdjustDoubleValue() 669 if (fabs(scalingValue - 1.0f) > EPSILON) { in AdjustDoubleValue() 1191 if (dragOriginDpi > EPSILON) { in InitDrawingInfo() 1197 if (fabs(scalingValue - 1.0f) > EPSILON) { in InitDrawingInfo() 1220 if (dragOriginDpi > EPSILON) { in InitDrawingInfo() 1688 if (dragOriginDpi > EPSILON) { in ParserTextDragShadowInfo() 1979 (fabs(filterInfo.dipScale) < EPSILON) || ((std::numeric_limits<float>::max() in SetCustomDragBlur() 2012 (fabs(filterInfo.dipScale) < EPSILON) || ((std::numeric_limits<float>::max() in SetComponentDragBlur() 2623 if (fabsf(adjustSize + g_drawingInfo.pixelMap->GetHeight()) < EPSILON) { in DoRotateDragWindow() [all …]
|