lv_gltf_math.hpp
API reference for lv_gltf_math.hpp
GLTF math utilities and helper functions.
Summary
Functions
lv_gltf_math_look_at_rh
fastgltf::math::fmat4x4 lv_gltf_math_look_at_rh(const fastgltf::math::fvec3 &eye, const fastgltf::math::fvec3 ¢er, const fastgltf::math::fvec3 &up) noexcept| Name | Type |
|---|---|
eye | const fastgltf::math::fvec3 & |
center | const fastgltf::math::fvec3 & |
up | const fastgltf::math::fvec3 & |
lv_gltf_math_perspective_rh
fastgltf::math::fmat4x4 lv_gltf_math_perspective_rh(float fov, float ratio, float z_near, float z_far) noexcept| Name | Type |
|---|---|
fov | float |
ratio | float |
z_near | float |
z_far | float |
lv_gltf_math_euler_to_quaternion
template <typename T>
fastgltf::math::quat< T > lv_gltf_math_euler_to_quaternion(T P, T Y, T R)| Name | Type |
|---|---|
P | T |
Y | T |
R | T |
Template Parameters:
| Name | Type | Description |
|---|---|---|
T | typename |
lv_gltf_math_quaternion_to_euler
template <typename T>
fastgltf::math::vec< T, 3 > lv_gltf_math_quaternion_to_euler(fastgltf::math::quat< T > q)| Name | Type |
|---|---|
q | fastgltf::math::quat< T > |
Template Parameters:
| Name | Type | Description |
|---|---|---|
T | typename |
Macros
M_PI
#define M_PI 3.14159265358979323846264338327950288Dependencies
lv_conf_internal.hmath.hpp
Indirect dependencies
How is this guide?
Last updated on