Home
last modified time | relevance | path

Searched refs:RotateOperation (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/base/geometry/
H A Dtransform_util.h72 struct ACE_EXPORT RotateOperation { struct
73 RotateOperation() = default;
74 RotateOperation(float x, float y, float z, float angle) : dx(x), dy(y), dz(z), angle(angle) {} in RotateOperation() argument
75 bool operator==(const RotateOperation& other) const
85 …static RotateOperation Blend(const RotateOperation& to, const RotateOperation& from, float progres… argument
129 RotateOperation rotateOperation_;
H A Dtransform_util.cpp207 RotateOperation RotateOperation::Blend(const RotateOperation& to, const RotateOperation& from, floa… in Blend()
209 RotateOperation ret; in Blend()
267 ret.rotateOperation_ = RotateOperation(); in Create()
298 …ret.rotateOperation_ = RotateOperation::Blend(to.rotateOperation_, from.rotateOperation_, progress… in BlendInner()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/base/
H A Dtransform_util_test.cpp79 RotateOperation to(NUM_D1, NUM_D1, NUM_D1, NUM_D1);
80 RotateOperation from(NUM_D1, NUM_D1, NUM_D1, NUM_D1);
81 RotateOperation result = RotateOperation::Blend(to, from, PROGRESS);
84 to = RotateOperation(NUM_D2, NUM_D2, NUM_D2, NUM_D1);
85 from = RotateOperation(NUM_D1, NUM_D1, NUM_D1, NUM_D1);
86 result = RotateOperation::Blend(to, from, PROGRESS);
140 EXPECT_EQ(result.rotateOperation_, RotateOperation());
231 EXPECT_EQ(operations[3].rotateOperation_, RotateOperation());
248 EXPECT_EQ(result.GetOperations()[3].rotateOperation_, RotateOperation());
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/utils/
H A Dtransform_convertor.cpp139 void TransformConvertor::AddKeyframe(AnimationType type, double time, const RotateOperation& rotate) in AddKeyframe()
220 … AnimationType::ROTATE_3D, time, RotateOperation { dx, dy, dz, static_cast<float>(degree) }); in __anonc5ef80110702()
227 … AnimationType::ROTATE, time, RotateOperation { 0, 0, 1, static_cast<float>(degree) }); in __anonc5ef80110802()
233 … AnimationType::ROTATE_X, time, RotateOperation { 1, 0, 0, static_cast<float>(degree) }); in __anonc5ef80110902()
239 … AnimationType::ROTATE_Y, time, RotateOperation { 0, 1, 0, static_cast<float>(degree) }); in __anonc5ef80110a02()
245 … AnimationType::ROTATE_Z, time, RotateOperation { 0, 0, 1, static_cast<float>(degree) }); in __anonc5ef80110b02()
H A Dtransform_convertor.h50 void AddKeyframe(AnimationType type, double time, const RotateOperation& rotate);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/transform/
H A Dtransform_component.cpp101 operation.rotateOperation_ = RotateOperation(dx, dy, dz, angle); in Rotate()
183 operation.rotateOperation_ = RotateOperation(x, y, z, angle); in SetRotateTransition()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dmotion_path_evaluator.cpp124 rotation.rotateOperation_ = RotateOperation(0.0f, 0.0f, 1.0f, position.rotate); in Evaluate()