Home
last modified time | relevance | path

Searched refs:Quat (Results 1 – 25 of 43) sorted by relevance

12

/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBase/api/base/math/
H A Dquaternion_util.h56 static inline float Length(const Quat& quat) in BASE_BEGIN_NAMESPACE()
62 static inline constexpr float Dot(const Quat& q1, const Quat& q2) in BASE_BEGIN_NAMESPACE()
76 static inline constexpr Quat Inverse(const Quat& rotation) in BASE_BEGIN_NAMESPACE()
178 static inline Quat Conjugate(const Quat& q) in BASE_BEGIN_NAMESPACE()
180 return Quat(-q.x, -q.y, -q.z, q.w); in BASE_BEGIN_NAMESPACE()
184 static inline Quat Normalize(const Quat& q) in BASE_BEGIN_NAMESPACE()
211 inline constexpr Quat operator*(const float scalar, const Quat& quat) in BASE_BEGIN_NAMESPACE()
217 inline constexpr Quat operator*(const Quat& quat, const float scalar) in BASE_BEGIN_NAMESPACE()
223 inline constexpr Quat operator+(const Quat& q, const Quat& p) in BASE_BEGIN_NAMESPACE()
229 inline constexpr Quat Slerp(Quat const& x, Quat const& y, float a) in BASE_BEGIN_NAMESPACE()
[all …]
H A Dquaternion.h31 class Quat final { in BASE_BEGIN_NAMESPACE()
57 inline constexpr Quat() noexcept : data {} {} in BASE_BEGIN_NAMESPACE()
69 inline constexpr Quat operator*(const Quat& quat) const in BASE_BEGIN_NAMESPACE()
71 return Quat(w * quat.x + x * quat.w + y * quat.z - z * quat.y, in BASE_BEGIN_NAMESPACE()
76 inline ~Quat() = default; in BASE_BEGIN_NAMESPACE()
79 inline constexpr Quat operator/(float d) const in BASE_BEGIN_NAMESPACE()
81 return Quat(x / d, y / d, z / d, w / d); in BASE_BEGIN_NAMESPACE()
85 inline constexpr Quat& operator/=(float d) in BASE_BEGIN_NAMESPACE()
100 inline constexpr bool operator==(const Quat& rhs) const in BASE_BEGIN_NAMESPACE()
111 inline constexpr bool operator!=(const Quat& rhs) const in BASE_BEGIN_NAMESPACE()
[all …]
/ohos5.0/foundation/graphic/graphic_3d/kits/js/src/
H A DQuatProxy.cpp19 QuatProxy::QuatProxy(napi_env env, META_NS::Property<BASE_NS::Math::Quat> prop) : PropertyProxy(pro… in QuatProxy()
32 value = META_NS::Property<BASE_NS::Math::Quat>(prop_)->GetValue(); in UpdateLocalValues()
36 META_NS::Property<BASE_NS::Math::Quat>(prop_)->SetValue(value); in UpdateRemoteValues()
38 void QuatProxy::SetValue(const BASE_NS::Math::Quat& v) in SetValue()
97 BASE_NS::Math::Quat q { x, y, z, w }; in SetValue()
/ohos5.0/foundation/graphic/graphic_3d/kits/js/include/
H A DQuatProxy.h24 BASE_NS::Math::Quat value;
29 QuatProxy(napi_env env, META_NS::Property<BASE_NS::Math::Quat> prop);
32 void SetValue(const BASE_NS::Math::Quat& v);
/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/core/include/lume/
H A Dlume_common.h79 BASE_NS::Math::Quat rotation_;
90 … void SetOrbitFromEye(const BASE_NS::Math::Vec3& eyePosition, const BASE_NS::Math::Quat& rotation,
93 …void SetOrbitFromTarget(const BASE_NS::Math::Vec3& targetPosition, const BASE_NS::Math::Quat& rota…
97 BASE_NS::Math::Quat GetCameraRotation();
116 BASE_NS::Math::Quat cameraRotation_;
204 BASE_NS::Math::Vec3& position, BASE_NS::Math::Quat& rotation);
221 BASE_NS::Math::Quat cameraRotation_{ 0.0f, 0.0f, 0.0f, 1.0f };
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/components/
H A Dinitial_transform_component.h39 BASE_NS::Math::Quat quatValue;
60 explicit InitialTransformComponent(BASE_NS::Math::Quat value);
73 InitialTransformComponent& operator=(BASE_NS::Math::Quat value) noexcept;
H A Dinitial_transform_component_manager.cpp114 InitialTransformComponent::InitialTransformComponent(BASE_NS::Math::Quat value) : type(CORE_NS::Pro… in InitialTransformComponent()
222 InitialTransformComponent& InitialTransformComponent::operator=(BASE_NS::Math::Quat value) noexcept in operator =()
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/systems/
H A Danimation_system.cpp172 return Normalize(Cast<Math::Quat>(vec)); in InterpolateQuatSplineGLTF()
207 *Cast<Math::Quat*>(dst) = src.initialData.quatValue; in Assign()
268 Mult<Math::Quat>(dst, src.initialData.quatValue); in Add()
331 void Interpolate<Math::Quat>(const AnimationSystem::InterpolationData& interpolation,
335 static constexpr Math::Quat identity(0.0f, 0.0f, 0.0f, 1.0f);
338 Math::Quat result;
342 result = Step(Cast<const Math::Quat&>(values[interpolation.startIndex]),
343 Cast<const Math::Quat&>(values[interpolation.endIndex]), interpolation.t);
349 result = Slerp(Cast<const Math::Quat&>(values[interpolation.startIndex]),
350 Cast<const Math::Quat&>(values[interpolation.endIndex]), interpolation.t);
[all …]
/ohos5.0/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/
H A Denv_impl.cpp46 …META_IMPLEMENT_INTERFACE_PROPERTY(IEnvironment, Math::Quat, EnvironmentRotation, Math::Quat(0.f, 0…
104 … BindChanges<Math::Quat>(propHandler_, META_ACCESS_PROPERTY(EnvironmentRotation), meta, ENV_ER); in CompleteInitialization()
H A Dasset_migration.cpp48 { PROPERTYTYPE(Math::Quat), PropertyType::QUAT_T }, // Math::Quat to BASE_NS::Math::Quat
68 …{ PROPERTYTYPE_ARRAY(Math::Quat), PropertyType::QUAT_ARRAY_T }, // Math::Quat to BASE_NS::Math…
H A Djson_util.h153 inline bool FromJson(const CORE_NS::json::value& jsonIn, BASE_NS::Math::Quat& output) in FromJson()
241 inline CORE_NS::json::standalone_value ToJson<BASE_NS::Math::Quat>(BASE_NS::Math::Quat value)
/ohos5.0/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/include/scene_plugin/api/
H A Denvironment.h37 API_INTERFACE_PROPERTY_CACHED(Node, Rotation, BASE_NS::Math::Quat) in SCENE_BEGIN_NAMESPACE()
50 API_INTERFACE_PROPERTY_CACHED(Environment, EnvironmentRotation, BASE_NS::Math::Quat) in SCENE_BEGIN_NAMESPACE()
H A Dview_node.h43 META_API_INTERFACE_PROPERTY_CACHED(Node, Rotation, BASE_NS::Math::Quat) in SCENE_BEGIN_NAMESPACE()
H A Dnode.h40 META_API_INTERFACE_PROPERTY_CACHED(Node, Rotation, BASE_NS::Math::Quat) in SCENE_BEGIN_NAMESPACE()
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/util/
H A Dintf_scene_util.h55 const BASE_NS::Math::Quat& rotation, float zNear, float zFar, float fovDegrees) const = 0;
99 const BASE_NS::Math::Vec3& position, const BASE_NS::Math::Quat& rotation) const = 0;
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/ecshelper/PropertyTools/
H A Dcore_metadata.inl56 DECLARE_PROPERTY_TYPE(BASE_NS::Math::Quat);
292 BEGIN_METADATA(QuatMetaData, BASE_NS::Math::Quat)
293 DECL_PROPERTY2(BASE_NS::Math::Quat, x, "", 0)
294 DECL_PROPERTY2(BASE_NS::Math::Quat, y, "", 0)
295 DECL_PROPERTY2(BASE_NS::Math::Quat, z, "", 0)
296 DECL_PROPERTY2(BASE_NS::Math::Quat, w, "", 0)
297 END_METADATA(QuatMetaData, BASE_NS::Math::Quat)
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Dscene_util.h43 … const BASE_NS::Math::Quat& rotation, float zNear, float zFar, float fovDegrees) const override;
52 const BASE_NS::Math::Vec3& position, const BASE_NS::Math::Quat& rotation) const override;
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/api/core/property/
H A Dproperty_types.h32 class Quat; in BASE_BEGIN_NAMESPACE() local
96 inline constexpr PropertyTypeDecl QUAT_T = PROPERTYTYPE(BASE_NS::Math::Quat);
113 inline constexpr PropertyTypeDecl QUAT_ARRAY_T = PROPERTYTYPE_ARRAY(BASE_NS::Math::Quat);
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/ecs/systems/
H A Dintf_node_system.h183 virtual BASE_NS::Math::Quat GetRotation() const = 0; in CORE3D_BEGIN_NAMESPACE()
199 virtual void SetRotation(const BASE_NS::Math::Quat& rotation) = 0; in CORE3D_BEGIN_NAMESPACE()
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/ecs/components/
H A Dtransform_component.h38 DEFINE_PROPERTY(BASE_NS::Math::Quat, rotation, "Rotation", 0, ARRAY_VALUE(0.f, 0.f, 0.f, 1.f))
H A Denvironment_component.h89 …BASE_NS::Math::Quat, environmentRotation, "IBL Environment Rotation", 0, ARRAY_VALUE(0.f, 0.f, 0.f…
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/src/
H A Dregister_value_serializers.cpp90 RegisterSerializer<BASE_NS::Math::Quat>(data, vecExport, vecImport); in RegisterValueSerializers()
134 UnregisterSerializer<BASE_NS::Math::Quat>(data); in UnRegisterValueSerializers()
H A Dregister_engine_access.cpp51 BASE_NS::Math::Quat,
/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/core/src/lume/
H A Dlume_common.cpp599 const BASE_NS::Math::Quat& rotation, in SetOrbitFromEye()
610 const BASE_NS::Math::Quat& rotation, float orbitDistance) in SetOrbitFromTarget()
623 BASE_NS::Math::Quat OrbitCameraHelper::GetCameraRotation() in GetCameraRotation()
719 …BASE_NS::Math::Quat rotationX = BASE_NS::Math::AngleAxis(dx, BASE_NS::Math::Vec3(0.0f, -1.0f, 0.0f… in UpdateCameraRotation()
720 BASE_NS::Math::Quat rotationY = BASE_NS::Math::AngleAxis(dy, cameraRotation_ * in UpdateCameraRotation()
1460 BASE_NS::Math::Quat rotation; in UpdateLights()
1577 cameraRotation_ = BASE_NS::Math::Quat( in SetupCameraTransform()
1599 BASE_NS::Math::Quat orientation; in SetupCameraTransform()
1670 BASE_NS::Math::Vec3& position, BASE_NS::Math::Quat& rotation) in GetLightPositionAndRotation()
1690 rotation = BASE_NS::Math::Quat(light->GetRotation().GetX(), light->GetRotation().GetY(), in GetLightPositionAndRotation()
[all …]
/ohos5.0/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/include/scene_plugin/interface/
H A Dintf_environment.h103 META_PROPERTY(BASE_NS::Math::Quat, EnvironmentRotation)

12