lv_gltf_math.hpp

GLTF math utilities and helper functions.

Defines

M_PI

Functions

fastgltf::math::fmat4x4 lv_gltf_math_look_at_rh(const fastgltf::math::fvec3 &eye, const fastgltf::math::fvec3 &center, const fastgltf::math::fvec3 &up) noexcept
fastgltf::math::fmat4x4 lv_gltf_math_perspective_rh(float fov, float ratio, float z_near, float z_far) noexcept
template<typename T>
fastgltf::math::quat<T> lv_gltf_math_euler_to_quaternion(T P, T Y, T R)
template<typename T>
fastgltf::math::vec<T, 3> lv_gltf_math_quaternion_to_euler(fastgltf::math::quat<T> q)