Home
last modified time | relevance | path

Searched refs:Quaternion (Results 1 – 25 of 71) sorted by relevance

123

/ohos5.0/foundation/arkui/ace_engine/frameworks/base/geometry/
H A Dquaternion.h23 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 Dquaternion.cpp25 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 Dquaternion_test.cpp41 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 Dquaternion.h23 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 Dlight.h28 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 Drs_vector4.h90 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 Drs_obj_geometry.h45 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 Dmodel_light.h38 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 Drs_render_property.cpp103 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 Drs_value_estimator.cpp25 Quaternion RSValueEstimator::Estimate(float fraction, in Estimate()
26 const Quaternion& startValue, const Quaternion& endValue) in Estimate()
H A Drs_render_transition_effect.cpp142 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 Drs_spring_model_test.cpp214 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 Drs_render_property_test.cpp158 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 Dscene_viewer_component.h83 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 Drosen_modifier_property.h48 …std::shared_ptr<Rosen::RSAnimatableProperty<Rosen::Quaternion>>& property, const Rosen::Quaternion
68 std::shared_ptr<Rosen::RSAnimatableProperty<Rosen::Quaternion>> quaternionValue;
H A Drosen_modifier_property.cpp106 …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 Djs-apis-inner-scene-types.md9 import { Vec2, Vec3, Vec4, Color, Rect, Quaternion, Aabb, Position3, Rotation3,
43 ## Quaternion section
H A Djs-apis-scene.md25 Quaternion,
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/unittest/animation/
H A Drs_curve_animation_test.cpp315 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 Drs_render_property.h356 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 Drs_property.cpp210 void RSProperty<Quaternion>::UpdateToRender(const Quaternion& value, PropertyUpdateType type) const in UpdateToRender()
363 RSRenderPropertyType RSAnimatableProperty<Quaternion>::GetPropertyType() const in GetPropertyType()
H A Drs_modifier_extractor.cpp91 Quaternion RSModifierExtractor::GetQuaternion() const in GetQuaternion()
93 GET_PROPERTY_FROM_MODIFIERS_EQRETURN(Quaternion, QUATERNION, Quaternion(), =); in GetQuaternion()
H A Drs_showing_properties_freezer.cpp86 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 Drs_spring_model.h48 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 Drs_obj_abs_geometry_test.cpp53 Quaternion quaternion;
155 Quaternion quaternion;

123