/ohos5.0/foundation/arkui/ace_engine/frameworks/base/geometry/ |
H A D | quaternion.h | 23 class Quaternion { 25 Quaternion() = default; 27 ~Quaternion() = default; 62 Quaternion operator+(const Quaternion& q) const 68 return Quaternion(x, y, z, w); 71 Quaternion operator*(const Quaternion& q) const 91 Quaternion inverse() const in inverse() 96 Quaternion flip() const in flip() 104 Quaternion Slerp(const Quaternion& q, double t) const; 114 inline Quaternion operator*(const Quaternion& q, double s) [all …]
|
H A D | quaternion.cpp | 25 Quaternion Quaternion::Slerp(const Quaternion& to, double t) const in Slerp() 33 Quaternion from = *this; in Slerp()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/base/ |
H A D | quaternion_test.cpp | 41 Quaternion quaternion1; 51 Quaternion quaternion2 = quaternion1.inverse(); 57 Quaternion quaternion3 = quaternion1.Slerp(quaternion2, -1.0); 63 Quaternion quaternion4 = quaternion1.Slerp(quaternion2, 2.0); 70 Quaternion quaternion5 = quaternion1.Slerp(quaternion2, 1.0); 76 Quaternion quaternion6(NUM_D2, NUM_D2, NUM_D2, NUM_D2); 77 Quaternion quaternion7 = quaternion1.Slerp(quaternion6, 1.0);
|
/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/include/data_type/ |
H A D | quaternion.h | 23 class Quaternion { 25 Quaternion() {} in Quaternion() function 26 Quaternion(float x, float y, float z, float w) : x_(x), y_(y), z_(z), w_(w) {} in Quaternion() function 59 bool operator==(const Quaternion& other) const
|
H A D | light.h | 28 const Quaternion& rotation) in Light() 60 void SetRotation(const OHOS::Render3D::Quaternion& rotation) in SetRotation() 90 const Quaternion& GetRotation() const in GetRotation() 101 OHOS::Render3D::Quaternion rotation_ { -999999.0f, -999999.0f, -999999.0f, -999999.0f };
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/ |
H A D | rs_vector4.h | 90 class Quaternion : public Vector4f { 92 Quaternion() in Quaternion() function 96 Quaternion(float x, float y, float z, float w) : Vector4f(x, y, z, w) {} in Quaternion() function 97 Quaternion(const Vector4f& other) : Vector4f(other) {} in Quaternion() function 98 Quaternion(const Vector4f&& other) : Vector4f(other) {} in Quaternion() function 99 Quaternion Slerp(const Quaternion& to, float t); 100 Quaternion Flip() const; 145 inline Quaternion Quaternion::Flip() const in Flip() 150 inline Quaternion Quaternion::Slerp(const Quaternion& to, float t) in Slerp()
|
H A D | rs_obj_geometry.h | 45 Quaternion quaternion_ { 0.0f, 0.0f, 0.0f, 1.0f }; 224 void SetQuaternion(const Quaternion& quaternion) in SetQuaternion() 320 Quaternion GetQuaternion() const in GetQuaternion() 322 return trans_ ? trans_->quaternion_ : Quaternion(); in GetQuaternion()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/model/ |
H A D | model_light.h | 38 bool shadow, const ModelPosition& position, const Quaternion& rotation) in DECLARE_ACE_TYPE() 80 void SetRotation(const Quaternion& rotation) in SetRotation() 110 const Quaternion& GetRotation() const in GetRotation() 123 Quaternion rotation_;
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/modifier/ |
H A D | rs_render_property.cpp | 103 auto property = std::static_pointer_cast<RSRenderAnimatableProperty<Quaternion>>(val); in Marshalling() 198 Quaternion value; in Unmarshalling() 202 val.reset(new RSRenderAnimatableProperty<Quaternion>(value, id, type, unit)); in Unmarshalling() 265 float RSRenderAnimatableProperty<Quaternion>::ToFloat() const in ToFloat() 267 return RSRenderProperty<Quaternion>::stagingValue_.GetLength(); in ToFloat() 427 void RSRenderProperty<Quaternion>::Dump(std::string& out) const in Dump() 429 Quaternion q = Get(); in Dump() 600 bool RSRenderAnimatableProperty<Quaternion>::IsNearEqual( in IsNearEqual() 603 …auto animatableProperty = std::static_pointer_cast<const RSRenderAnimatableProperty<Quaternion>>(v… in IsNearEqual() 740 template class RSRenderProperty<Quaternion>; [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/ |
H A D | rs_value_estimator.cpp | 25 Quaternion RSValueEstimator::Estimate(float fraction, in Estimate() 26 const Quaternion& startValue, const Quaternion& endValue) in Estimate()
|
H A D | rs_render_transition_effect.cpp | 142 Quaternion quaternion; in Unmarshalling() 209 …property_ = std::make_shared<RSRenderAnimatableProperty<Quaternion>>(Quaternion {}, GenerateTransi… in CreateModifier() 224 Quaternion value(qx, qy, qz, qw); in UpdateFraction()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/test/unittest/animation/ |
H A D | rs_spring_model_test.cpp | 214 Quaternion initialOffset = Quaternion(0.0f, 0.0f, 0.0f, 0.0f); 215 Quaternion initialVelocity = Quaternion(1.0f, 1.0f, 1.0f, 1.0f); 217 …auto model1 = std::make_shared<RSSpringModel<Quaternion>>(0.0f, 0.0f, initialOffset, initialVeloci… 223 …auto model2 = std::make_shared<RSSpringModel<Quaternion>>(1.0f, 1.0f, initialOffset, initialVeloci… 229 …auto model3 = std::make_shared<RSSpringModel<Quaternion>>(1.0f, 2.0f, initialOffset, initialVeloci…
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/modifier/ |
H A D | rs_render_property_test.cpp | 158 auto prop3 = std::make_shared<MockRSRenderAnimatableProperty<Quaternion>>(Quaternion()); 176 props.push_back(std::make_shared<MockRSRenderAnimatableProperty<Quaternion>>( 219 props.push_back(std::make_shared<MockRSRenderProperty<Quaternion>>( 369 RSRenderAnimatableProperty<Quaternion> property3; 402 Quaternion quaternion; 403 RSRenderAnimatableProperty<Quaternion> property3(quaternion); 421 …std::shared_ptr<RSRenderProperty<Quaternion>> quaternionValue = std::make_shared<RSRenderProperty<…
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/scene_viewer/ |
H A D | scene_viewer_component.h | 83 void SetCameraRotation(Quaternion quat) in SetCameraRotation() 88 const Quaternion GetCameraRotation() const in GetCameraRotation() 238 Quaternion cameraRotation_ { INVALID_DOUBLE, INVALID_DOUBLE, INVALID_DOUBLE, INVALID_DOUBLE };
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | rosen_modifier_property.h | 48 …std::shared_ptr<Rosen::RSAnimatableProperty<Rosen::Quaternion>>& property, const Rosen::Quaternion… 68 std::shared_ptr<Rosen::RSAnimatableProperty<Rosen::Quaternion>> quaternionValue;
|
H A D | rosen_modifier_property.cpp | 106 …std::shared_ptr<Rosen::RSAnimatableProperty<Rosen::Quaternion>>& property, const Rosen::Quaternion… in AddOrChangeQuaternionModifier()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkgraphics3d/ |
H A D | js-apis-inner-scene-types.md | 9 import { Vec2, Vec3, Vec4, Color, Rect, Quaternion, Aabb, Position3, Rotation3, 43 ## Quaternion section
|
H A D | js-apis-scene.md | 25 Quaternion,
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/unittest/animation/ |
H A D | rs_curve_animation_test.cpp | 315 auto value = Quaternion(0.382683, 0, 0, 0.92388); 316 auto property = std::make_shared<RSAnimatableProperty<Quaternion>>(); 321 auto startProperty = std::make_shared<RSAnimatableProperty<Quaternion>>(); 322 auto endProperty = std::make_shared<RSAnimatableProperty<Quaternion>>(value);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/modifier/ |
H A D | rs_render_property.h | 356 RSB_EXPORT float RSRenderAnimatableProperty<Quaternion>::ToFloat() const; 369 RSB_EXPORT void RSRenderProperty<Quaternion>::Dump(std::string& out) const; 408 RSB_EXPORT bool RSRenderAnimatableProperty<Quaternion>::IsNearEqual( 437 extern template class RSRenderProperty<Quaternion>; 456 extern template class RSRenderAnimatableProperty<Quaternion>;
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/modifier/ |
H A D | rs_property.cpp | 210 void RSProperty<Quaternion>::UpdateToRender(const Quaternion& value, PropertyUpdateType type) const in UpdateToRender() 363 RSRenderPropertyType RSAnimatableProperty<Quaternion>::GetPropertyType() const in GetPropertyType()
|
H A D | rs_modifier_extractor.cpp | 91 Quaternion RSModifierExtractor::GetQuaternion() const in GetQuaternion() 93 GET_PROPERTY_FROM_MODIFIERS_EQRETURN(Quaternion, QUATERNION, Quaternion(), =); in GetQuaternion()
|
H A D | rs_showing_properties_freezer.cpp | 86 std::optional<Quaternion> RSShowingPropertiesFreezer::GetQuaternion() const in GetQuaternion() 88 return GetPropertyImpl<Quaternion, RSModifierType::QUATERNION>(); in GetQuaternion()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/animation/ |
H A D | rs_spring_model.h | 48 float toFloat(Quaternion value) in toFloat() 222 template class RSSpringModel<Quaternion>;
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/common/ |
H A D | rs_obj_abs_geometry_test.cpp | 53 Quaternion quaternion; 155 Quaternion quaternion;
|