/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/ |
H A D | rs_render_path_animation.cpp | 198 float tangent = 0.0; in OnAnimate() local 199 GetPosTanValue(fraction, position, tangent); in OnAnimate() 203 SetPathValue(position, tangent); in OnAnimate() 220 SetPathValue(animationValue, tangent); in OnAnimate() 269 void RSRenderPathAnimation::SetPathValue(const Vector2f& value, float tangent) in SetPathValue() argument 271 SetRotationValue(tangent); in SetPathValue() 278 void RSRenderPathAnimation::SetPathValue(const Vector4f& value, float tangent) in SetPathValue() argument 280 SetRotationValue(tangent); in SetPathValue() 287 void RSRenderPathAnimation::SetRotationValue(const float tangent) in SetRotationValue() argument 291 SetRotation(tangent); in SetRotationValue() 304 SetRotation(const float tangent) SetRotation() argument 321 GetPosTanValue(float fraction, Vector2f& position, float& tangent) GetPosTanValue() argument [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/animation/ |
H A D | rs_render_path_animation.h | 80 void SetPathValue(const Vector2f& value, float tangent); 81 void SetPathValue(const Vector4f& value, float tangent); 83 void SetRotationValue(const float tangent); 85 void SetRotation(const float tangent); 87 void GetPosTanValue(float fraction, Vector2f& position, float& tangent);
|
/foundation/graphic/graphic_2d/rosen/test/render/render/unittest/animat/ |
H A D | rs_path_animat_test.cpp | 356 float tangent = 0.f; in HWTEST_F() local 357 rsRenderPathAnimat.SetPathValue(value, tangent); in HWTEST_F() 358 EXPECT_EQ(tangent, 0.f); in HWTEST_F() 391 float tangent = 0.f; in HWTEST_F() local 392 animation.SetRotationValue(tangent); in HWTEST_F() 395 animation.SetRotationValue(tangent); in HWTEST_F() 399 animation.SetRotationValue(tangent); in HWTEST_F() 403 animation.SetRotationValue(tangent); in HWTEST_F() 421 float tangent = 0.f; in HWTEST_F() local 422 rsRenderPathAnimat.SetPathValue(value, tangent); in HWTEST_F() 441 float tangent = 0.f; HWTEST_F() local 459 float tangent = 0.f; HWTEST_F() local [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/animation/ |
H A D | rs_render_path_animation_test.cpp | 374 float tangent = 0.f; in HWTEST_F() local 375 rsRenderPathAnimation.SetPathValue(value, tangent); in HWTEST_F() 376 EXPECT_EQ(tangent, 0.f); in HWTEST_F() 393 float tangent = 0.f; in HWTEST_F() local 394 rsRenderPathAnimation.SetPathValue(value, tangent); in HWTEST_F() 395 EXPECT_EQ(tangent, 0.f); in HWTEST_F() 411 float tangent = 0.f; in HWTEST_F() local 412 animation.SetRotationValue(tangent); in HWTEST_F() 415 animation.SetRotationValue(tangent); in HWTEST_F() 419 animation.SetRotationValue(tangent); in HWTEST_F() 440 float tangent = 0.f; HWTEST_F() local 460 float tangent = 0.f; HWTEST_F() local [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/ |
H A D | rs_path.cpp | 86 Drawing::Point tangent; in GetPosTan() local 87 bool ret = drPath_->GetPositionAndTangent(distance, position, tangent, false); in GetPosTan() 94 degrees = Drawing::ConvertRadiansToDegrees(std::atan2(tangent.GetY(), tangent.GetX())); in GetPosTan()
|
/foundation/arkui/ace_engine/frameworks/core/components/common/painter/ |
H A D | rosen_svg_painter.cpp | 460 RSPoint tangent; in GetPathOffset() local 461 if (!drawPath.GetPositionAndTangent(current, position, tangent, false)) { in GetPathOffset() 478 SkVector tangent; in GetMotionPathPosition() local 479 bool ret = pathMeasure.getPosTan(pathMeasure.getLength() * percent, &position, &tangent); in GetMotionPathPosition() 483 result.rotate = SkRadiansToDegrees(std::atan2(tangent.y(), tangent.x())); in GetMotionPathPosition() 490 RSPoint tangent; in GetMotionPathPosition() local 491 bool ret = motion.GetPositionAndTangent(motion.GetLength(false) * percent, position, tangent, false); in GetMotionPathPosition() 495 result.rotate = Rosen::Drawing::ConvertRadiansToDegrees(std::atan2(tangent.GetY(), tangent in GetMotionPathPosition() 655 SkVector tangent; UpdateTextPath() local 723 RSPoint tangent; UpdateTextPath() local 962 SkVector tangent; UpdateMotionMatrix() local 984 RSPoint tangent; UpdateMotionMatrix() local [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/skia_adapter/ |
H A D | skia_path_test.cpp | 180 Point tangent; in HWTEST_F() local 183 ret = skiaPathTmp.GetPositionAndTangent(10, position, tangent, true); // 10: distance in HWTEST_F() 188 ret = skiaPath.GetPositionAndTangent(0, position, tangent, true); in HWTEST_F() 190 ret = skiaPath.GetPositionAndTangent(std::nanf(""), position, tangent, true); in HWTEST_F() 192 ret = skiaPath.GetPositionAndTangent(10, position, tangent, true); // 10: distance in HWTEST_F()
|
/foundation/multimodalinput/input/service/window_manager/src/ |
H A D | knuckle_glow_trace_system.cpp | 91 Rosen::Drawing::Point tangent; in AddGlowPoints() local 98 if (path.GetPositionAndTangent(distanceFromEnd, pathPoints, tangent, true)) { in AddGlowPoints()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/ |
H A D | drawing_path_test.cpp | 799 * @tc.desc: test for Gets the position and tangent of the distance from the starting position of the Path. 810 OH_Drawing_Point2D tangent; in HWTEST_F() local 812 EXPECT_TRUE(OH_Drawing_PathGetPositionTangent(path, true, 0.f, &position, &tangent)); in HWTEST_F() 813 EXPECT_FALSE(OH_Drawing_PathGetPositionTangent(path, true, std::nanf(""), &position, &tangent)); in HWTEST_F() 814 EXPECT_TRUE(OH_Drawing_PathGetPositionTangent(path, true, distance, &position, &tangent)); in HWTEST_F() 817 EXPECT_FALSE(OH_Drawing_PathGetPositionTangent(pathNo, true, distance, &position, &tangent)); in HWTEST_F()
|
/foundation/arkui/ace_engine/test/mock/core/rosen/ |
H A D | testing_path.h | 116 float distance, TestingPoint& position, TestingPoint& tangent, bool forceClosed) const in GetPositionAndTangent() 115 GetPositionAndTangent( float distance, TestingPoint& position, TestingPoint& tangent, bool forceClosed) const GetPositionAndTangent() argument
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/include/ |
H A D | drawing_path.h | 130 * Gets tangent. 134 * Gets both position and tangent. 632 * @brief Gets the position and tangent of the distance from the starting position of the Path. 639 * @param tangent Sets to the tangent of distance from the starting position of the Path. 645 float distance, OH_Drawing_Point2D* position, OH_Drawing_Point2D* tangent);
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkpath_fuzzer/ |
H A D | path_fuzzer.cpp | 411 OH_Drawing_Point2D tangent; in NativeDrawingPathTest008() local 413 OH_Drawing_PathGetPositionTangent(nullptr, GetObject<bool>(), GetObject<float>(), &position, &tangent); in NativeDrawingPathTest008() 414 OH_Drawing_PathGetPositionTangent(pathGetPosition, GetObject<bool>(), GetObject<float>(), &position, &tangent); in NativeDrawingPathTest008()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/ |
H A D | drawing_path.cpp | 552 Point* tangent = CastToPoint(cTangent); in OH_Drawing_PathGetPositionTangent() local 553 if (path == nullptr || position == nullptr || tangent == nullptr) { in OH_Drawing_PathGetPositionTangent() 557 return path->GetPositionAndTangent(distance, *position, *tangent, forceClosed); in OH_Drawing_PathGetPositionTangent()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
H A D | skia_path.cpp | 431 bool SkiaPath::GetPositionAndTangent(scalar distance, Point& position, Point& tangent, bool forceClosed) in GetPositionAndTangent() argument 441 tangent.SetX(skTangent.x()); in GetPositionAndTangent() 442 tangent.SetY(skTangent.y()); in GetPositionAndTangent()
|
H A D | skia_path.h | 107 bool GetPositionAndTangent(scalar distance, Point& position, Point& tangent, bool forceClosed) override;
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/path_napi/ |
H A D | js_path.cpp | 760 Drawing::Point tangent; in OnGetPositionAndTangent() local 766 tangent = Drawing::Point(endPoint[ARGC_ZERO], endPoint[ARGC_ONE]); in OnGetPositionAndTangent() 768 bool result = m_path->GetPositionAndTangent(distance, position, tangent, forceClosed); in OnGetPositionAndTangent() 771 napi_set_named_property(env, argv[ARGC_THREE], "x", CreateJsNumber(env, tangent.GetX())) != napi_ok || in OnGetPositionAndTangent() 772 napi_set_named_property(env, argv[ARGC_THREE], "y", CreateJsNumber(env, tangent.GetY())) != napi_ok) { in OnGetPositionAndTangent() 774 "JsPath::OnGetPositionAndTangent Cannot fill 'position' and 'tangent' Point type."); in OnGetPositionAndTangent()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/draw/ |
H A D | path.cpp | 273 bool Path::GetPositionAndTangent(scalar distance, Point& position, Point& tangent, bool forceClosed) const in GetPositionAndTangent() argument 275 return impl_->GetPositionAndTangent(distance, position, tangent, forceClosed); in GetPositionAndTangent()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/impl_interface/ |
H A D | path_impl.h | 101 virtual bool GetPositionAndTangent(scalar distance, Point& position, Point& tangent, bool forceClosed) = 0;
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/draw/ |
H A D | path.h | 149 * to describe part of circle. Arc is contained by tangent from last Path point to (x1, y1), and tangent 150 * from (x1, y1) to (x2, y2). Arc is part of circle sized to radius, positioned so it touches both tangent lines. 157 * @param x2 x-axis value end of second tangent 158 * @param y2 y-axis value end of second tangent 484 * @brief Gets the position and tangent of the distance from the starting position of the Path. 487 * @param tangent Sets to the tangent of distance from the starting position of the Path. 491 bool GetPositionAndTangent(scalar distance, Point& position, Point& tangent, bool forceClosed) const;
|
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/shaders/common/ |
H A D | 3d_dm_lighting_common.h | 240 const vec3 tangent = normalize(tangentW.xyz); in CalcTbnMatrix() local 241 const vec3 bitangent = cross(polygonNormal, tangent.xyz) * tangentW.w; in CalcTbnMatrix() 242 return mat3(tangent.xyz, bitangent.xyz, polygonNormal); in CalcTbnMatrix()
|
/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/ |
H A D | gltf2_importer.cpp | 731 // NOTE. Currenty morph render node always writes tangent data to output buffer. in CreatePrimitiveImportInfo() 755 const GLTF2::GLTFLoadDataResult& tangent, const GLTF2::GLTFLoadDataResult& color, in GatherErrorStrings() 762 error += tangent.error + color.error + joint.error + weight.error + '\n'; in GatherErrorStrings() 791 GLTF2::GLTFLoadDataResult position, normal, tangent, color, joint, weight; in ProcessPrimitives() local 793 if (!LoadPrimitiveAttributeData(primitive, position, normal, texcoords, tangent, joint, weight, color, flags)) { in ProcessPrimitives() 795 GatherErrorStrings(primitiveIndex, position, normal, texcoords, tangent, color, joint, weight); in ProcessPrimitives() 813 const IMeshBuilder::DataBuffer tangents = fillDataBuffer(tangent); in ProcessPrimitives() 753 GatherErrorStrings(size_t primitiveIndex, const GLTF2::GLTFLoadDataResult& position, const GLTF2::GLTFLoadDataResult& normal, array_view<const GLTF2::GLTFLoadDataResult> texcoords, const GLTF2::GLTFLoadDataResult& tangent, const GLTF2::GLTFLoadDataResult& color, const GLTF2::GLTFLoadDataResult& joint, const GLTF2::GLTFLoadDataResult& weight) GatherErrorStrings() argument
|