/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/ThirdParty/Jolt/Math/Real.h
44 строки
976 B
Jan Krassnigg
Updated Jolt and fixed DLL export issue (#1349)
13 июл 2024, 20:09
Не верифицирован
13 июл 2024, 20:09
ecc487d
Код
Авторство
О чём код?
// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics) // SPDX-FileCopyrightText: 2022 Jorrit Rouwe // SPDX-License-Identifier: MIT #pragma once #include <Jolt/Math/DVec3.h> #include <Jolt/Math/DMat44.h> JPH_NAMESPACE_BEGIN #ifdef JPH_DOUBLE_PRECISION // Define real to double using Real = double; using Real3 = Double3; using RVec3 = DVec3; using RVec3Arg = DVec3Arg; using RMat44 = DMat44; using RMat44Arg = DMat44Arg; #define JPH_RVECTOR_ALIGNMENT JPH_DVECTOR_ALIGNMENT #else // Define real to float using Real = float; using Real3 = Float3; using RVec3 = Vec3; using RVec3Arg = Vec3Arg; using RMat44 = Mat44; using RMat44Arg = Mat44Arg; #define JPH_RVECTOR_ALIGNMENT JPH_VECTOR_ALIGNMENT #endif // JPH_DOUBLE_PRECISION // Put the 'real' operator in a namespace so that users can opt in to use it: // using namespace JPH::literals; namespace literals { constexpr Real operator ""_r (long double inValue) { return Real(inValue); } }; JPH_NAMESPACE_END