/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/EnginePlugins/OpenXRPlugin/Utils/OpenXRConversionUtils.h
23 строки
791 B
Sanakan8472
OpenXR plugin fixes (#1800)
30 янв 2026, 18:51
Не верифицирован
30 янв 2026, 18:51
52fc455
Код
Авторство
О чём код?
#pragma once #include <OpenXRPlugin/Basics.h> #include <OpenXRPlugin/OpenXRIncludes.h> #include <Foundation/Math/Mat4.h> #include <Foundation/Math/Quat.h> #include <Foundation/Math/Transform.h> #include <Foundation/Math/Vec3.h> /// \brief Helper functions to convert between ezEngine and OpenXR types. class EZ_OPENXRPLUGIN_DLL ezOpenXRConversionUtils { public: static XrPosef ConvertTransform(const ezTransform& tr); static XrQuaternionf ConvertOrientation(const ezQuat& q); static XrVector3f ConvertPosition(const ezVec3& vPos); static ezQuat ConvertOrientation(const XrQuaternionf& q); static ezVec3 ConvertPosition(const XrVector3f& pos); static ezMat4 ConvertPoseToMatrix(const XrPosef& pose); }; #include <OpenXRPlugin/Utils/Implementation/OpenXRConversionUtils.inl.h>