initial commit, 4.5 stable
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
This commit is contained in:
44
thirdparty/jolt_physics/Jolt/Math/Real.h
vendored
Normal file
44
thirdparty/jolt_physics/Jolt/Math/Real.h
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
// 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
|
Reference in New Issue
Block a user