/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; member 122 return !ROSEN_EQ(std::remainder(trans_->rotation_, 90.f), 0.f, EPSILON); in IsNeedClientCompose() 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, EPSILON)) { in UpdateAbsMatrix2D() [all...] |
/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; member 231 float noise_dx = Noise(x + EPSILON, y) - Noise(x - EPSILON, y); 232 float noise_dy = Noise(x, y + EPSILON) - Noise(x, y - EPSILON); 236 float curlx = -noise_dy / (2 * EPSILON); 237 float curly = noise_dx / (2 * EPSILON);
|
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 | 213 if (input < times_[0] + EPSILON) { in InterpolateImpl() 216 if (input > times_[times_.size() - 1] - EPSILON) { in InterpolateImpl()
|
/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; member
|
/foundation/graphic/graphic_3d/lume/LumeBase/api/base/math/ |
H A D | quaternion.h | 106 return sqmgt < Math::EPSILON * Math::EPSILON; in operator ==()
|
H A D | matrix_util.h | 472 if (const auto div = (aspect * tanHalfFovy); abs(div) > EPSILON) { in PerspectiveLhZo() 477 if (abs(tanHalfFovy) > EPSILON) { in PerspectiveLhZo() 483 if (const auto div = (zFar - zNear); abs(div) > EPSILON) { in PerspectiveLhZo() 512 if (const auto div = (aspect * tanHalfFovy); abs(div) > EPSILON) { in PerspectiveLhNo() 517 if (abs(tanHalfFovy) > EPSILON) { in PerspectiveLhNo() 523 if (const auto div = (zFar - zNear); abs(div) > EPSILON) { in PerspectiveLhNo() 596 if (const float width = right - left; abs(width) > EPSILON) { in PerspectiveLhZo() 604 if (const float height = top - bottom; abs(height) > EPSILON) { in PerspectiveLhZo() 612 if (const float depth = zFar - zNear; abs(depth) > EPSILON) { in PerspectiveLhZo() 639 if (const float width = right - left; abs(width) > EPSILON) { in PerspectiveLhNo() [all...] |
H A D | vector.h | 176 return sqmgt < Math::EPSILON * Math::EPSILON; in operator ==() 961 return sqmgt < Math::EPSILON * Math::EPSILON; in operator ==() 1117 return sqmgt < Math::EPSILON * Math::EPSILON; in operator ==()
|
H A D | mathf.h | 166 static constexpr float EPSILON = BASE_EPSILON; member
|
H A D | vector_util.h | 82 if (mag > Math::EPSILON) in Normalize() 189 if (mag > Math::EPSILON) { in Normalize()
|
H A D | quaternion_util.h | 115 const auto discardEpsilon = [](const float value) { return value < Math::EPSILON ? 0.f : value; }; in LookRotation() 241 if (cosTheta > 1.0f - EPSILON) { in Slerp()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/ |
H A D | post_proc_slr.cpp | 34 constexpr float EPSILON = 1e-6; member 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()
|
H A D | post_proc.cpp | 59 constexpr float EPSILON = 1e-6; member 611 if ((fabs(scaleX - 1.0f) < EPSILON) && (fabs(scaleY - 1.0f) < EPSILON)) { in ScalePixelMap()
|
/foundation/ai/ai_engine/services/common/platform/os_wrapper/feature/source/ |
H A D | norm_processor.cpp | 30 const float EPSILON = 1e-6;
member 205 workBuffer_[i] = (std::abs(stdVal) < EPSILON) ? 0.0f : ((data[i] - meanVal) / stdVal) * config_.scale;
in Process()
|
/foundation/arkui/ace_engine/frameworks/core/components/clock/ |
H A D | render_clock.cpp | 29 constexpr double EPSILON = 0.000001; member 117 digitSizeRatio_ = InRegion(EPSILON, DIGIT_SIZE_RATIO_UPPER_BOUND, inputDigitSizeRatio) ? inputDigitSizeRatio in Update() 120 digitRadiusRatio_ = InRegion(EPSILON, DIGIT_RADIUS_RATIO_UPPER_BOUND, inputDigitRadiusRatio) in Update()
|
/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)) {
|
H A D | easing_curve.cpp | 26 return BASE_NS::Math::abs(v1 - v2) < BASE_NS::Math::EPSILON; in AreEqual()
|
/foundation/graphic/graphic_3d/lume/metaobject/test/src/ |
H A D | test_utils.h | 49 bool AreEqual(const BASE_NS::Math::Vec3& lhs, const BASE_NS::Math::Vec3& rhs, float epsilon = BASE_NS::Math::EPSILON); 51 bool AreEqual(const BASE_NS::Math::Vec2& lhs, const BASE_NS::Math::Vec2& rhs, float epsilon = BASE_NS::Math::EPSILON);
|
/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()
|
/foundation/arkui/ace_engine/frameworks/core/components/rating/ |
H A D | render_rating.h | 33 constexpr double EPSILON = 0.000001; member
|
/foundation/graphic/graphic_3d/lume/metaobject/src/animation/ |
H A D | track_animation_state.cpp | 244 if (currentTrackRange < BASE_NS::Math::EPSILON) {
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/window_scene/scene/ |
H A D | window_scene_layout_manager.cpp | 30 constexpr float EPSILON = 1e-3; member 185 if (std::abs(width - 0.0f) < EPSILON || std::abs(height - 0.0f) < EPSILON) { in FillWindowSceneInfo()
|
/foundation/multimedia/media_library/frameworks/services/media_thumbnail/include/ |
H A D | thumbnail_const.h | 100 constexpr float EPSILON = 1e-6; member
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/patternlock/ |
H A D | patternlock_modifier.cpp | 53 constexpr double EPSILON = 0.01f; member 342 if ((!NearEqual(pointBegin.GetX(), pointEnd.GetX(), EPSILON) in AddCanceledLineToPath() 343 || !NearEqual(pointBegin.GetY(), pointEnd.GetY(), EPSILON)) in AddCanceledLineToPath()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/ |
H A D | flatbuffer_schema.cpp | 29 constexpr double EPSILON = 0.000001; // 0.000001 for tolerance member 32 if (std::fabs(left - right) < EPSILON) { in IsDoubleNearlyEqual() 37 return relativeDiff < EPSILON; in IsDoubleNearlyEqual()
|