载入中...
搜索中...
未找到
AnimMath.h 文件参考
#include <cmath>
#include <algorithm>

浏览源代码.

类

struct  eve::animation::TransformTRS
 Local TRS used by skeletal animation (quaternion xyzw). 更多...
 
struct  eve::animation::Mat4
 Column-major 4x4 matrix (OpenGL / glTF / Assimp-compatible layout). Elements: m[col * 4 + row]. 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::animation
 

函数

float eve::animation::clampf (float v, float lo, float hi)
 Clampf.
 
float eve::animation::lerpf (float a, float b, float t)
 Lerpf.
 
void eve::animation::slerpQuat (float ax, float ay, float az, float aw, float bx, float by, float bz, float bw, float t, float &ox, float &oy, float &oz, float &ow)
 Slerp quat.
 
TransformTRS eve::animation::blendTRS (const TransformTRS &a, const TransformTRS &b, float t)
 Blend trs.
 
void eve::animation::multiplyQuat (float ax, float ay, float az, float aw, float bx, float by, float bz, float bw, float &ox, float &oy, float &oz, float &ow)
 Hamilton product a * b for unit quaternions (xyzw).
 
void eve::animation::applyAdditiveTRS (TransformTRS &base, const TransformTRS &sample, const TransformTRS &reference, float weight)
 Apply an additive sample onto base using reference.
 
void eve::animation::yawToForward (float yaw, float &fx, float &fz)
 Rotate unit +Z by yaw (radians) around Y — used for planar facing.
 
float eve::animation::length2 (float x, float z)
 Length 2.