/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBase/api/base/math/ |
H A D | quaternion_util.h | 56 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 D | quaternion.h | 31 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 D | QuatProxy.cpp | 19 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 D | QuatProxy.h | 24 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 D | lume_common.h | 79 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 D | initial_transform_component.h | 39 BASE_NS::Math::Quat quatValue; 60 explicit InitialTransformComponent(BASE_NS::Math::Quat value); 73 InitialTransformComponent& operator=(BASE_NS::Math::Quat value) noexcept;
|
H A D | initial_transform_component_manager.cpp | 114 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 D | animation_system.cpp | 172 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 D | env_impl.cpp | 46 …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 D | asset_migration.cpp | 48 { 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 D | json_util.h | 153 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 D | environment.h | 37 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 D | view_node.h | 43 META_API_INTERFACE_PROPERTY_CACHED(Node, Rotation, BASE_NS::Math::Quat) in SCENE_BEGIN_NAMESPACE()
|
H A D | node.h | 40 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 D | intf_scene_util.h | 55 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 D | core_metadata.inl | 56 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 D | scene_util.h | 43 … 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 D | property_types.h | 32 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 D | intf_node_system.h | 183 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 D | transform_component.h | 38 DEFINE_PROPERTY(BASE_NS::Math::Quat, rotation, "Rotation", 0, ARRAY_VALUE(0.f, 0.f, 0.f, 1.f))
|
H A D | environment_component.h | 89 …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 D | register_value_serializers.cpp | 90 RegisterSerializer<BASE_NS::Math::Quat>(data, vecExport, vecImport); in RegisterValueSerializers() 134 UnregisterSerializer<BASE_NS::Math::Quat>(data); in UnRegisterValueSerializers()
|
H A D | register_engine_access.cpp | 51 BASE_NS::Math::Quat,
|
/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/core/src/lume/ |
H A D | lume_common.cpp | 599 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 D | intf_environment.h | 103 META_PROPERTY(BASE_NS::Math::Quat, EnvironmentRotation)
|