Home
last modified time | relevance | path

Searched refs:EPSILON (Results 1 - 25 of 38) sorted by relevance

12

/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/
H A Drs_obj_abs_geometry.cpp27 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 Drs_particle_noise_field.cpp20 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 Drs_value_estimator.cpp73 while (end > start + EPSILON) { in EstimateFraction()
83 if (std::abs(lastValue_ - interpolationValue) <= EPSILON) { in EstimateFraction()
H A Drs_interpolator.cpp213 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 Drs_animation_common.h25 static constexpr float EPSILON = 1e-6; member
/foundation/graphic/graphic_3d/lume/LumeBase/api/base/math/
H A Dquaternion.h106 return sqmgt < Math::EPSILON * Math::EPSILON; in operator ==()
H A Dmatrix_util.h472 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 Dvector.h176 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 Dmathf.h166 static constexpr float EPSILON = BASE_EPSILON; member
H A Dvector_util.h82 if (mag > Math::EPSILON) in Normalize()
189 if (mag > Math::EPSILON) { in Normalize()
H A Dquaternion_util.h115 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 Dpost_proc_slr.cpp34 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 Dpost_proc.cpp59 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 Dnorm_processor.cpp30 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 Drender_clock.cpp29 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 Dbezier_curve.cpp87 if (dx = GetDX(tt); IsFloatNull(dx, BASE_NS::Math::EPSILON)) {
H A Deasing_curve.cpp26 return BASE_NS::Math::abs(v1 - v2) < BASE_NS::Math::EPSILON; in AreEqual()
/foundation/graphic/graphic_3d/lume/metaobject/test/src/
H A Dtest_utils.h49 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 Drs_keyframe_animation.cpp98 if (std::abs(std::get<FRACTION_INDEX>(beginKeyframe) - FRACTION_MIN) > EPSILON) { in InitInterpolationValue()
/foundation/arkui/ace_engine/frameworks/core/components/rating/
H A Drender_rating.h33 constexpr double EPSILON = 0.000001; member
/foundation/graphic/graphic_3d/lume/metaobject/src/animation/
H A Dtrack_animation_state.cpp244 if (currentTrackRange < BASE_NS::Math::EPSILON) {
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/window_scene/scene/
H A Dwindow_scene_layout_manager.cpp30 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 Dthumbnail_const.h100 constexpr float EPSILON = 1e-6; member
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/patternlock/
H A Dpatternlock_modifier.cpp53 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 Dflatbuffer_schema.cpp29 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()

Completed in 18 milliseconds

12