28#ifndef OZZ_OZZ_ANIMATION_OFFLINE_RAW_ANIMATION_UTILS_H_
29#define OZZ_OZZ_ANIMATION_OFFLINE_RAW_ANIMATION_UTILS_H_
31#include "ozz/animation/offline/export.h"
32#include "ozz/animation/offline/raw_animation.h"
34#include "ozz/base/maths/transform.h"
35#include "ozz/base/span.h"
42OZZ_ANIMOFFLINE_DLL math::Float3 LerpTranslation(
const math::Float3& _a,
43 const math::Float3& _b,
47OZZ_ANIMOFFLINE_DLL math::Quaternion LerpRotation(
const math::Quaternion& _a,
48 const math::Quaternion& _b,
float _alpha);
51OZZ_ANIMOFFLINE_DLL math::Float3 LerpScale(
const math::Float3& _a,
52 const math::Float3& _b,
59OZZ_ANIMOFFLINE_DLL
bool SampleTrack(
const RawAnimation::JointTrack& _track,
68OZZ_ANIMOFFLINE_DLL
bool SampleAnimation(
69 const RawAnimation& _animation,
float _time,
70 const span<ozz::math::Transform>& _transforms);
81 float time(
size_t _key)
const {
82 assert(_key < num_keys_);
83 return ozz::math::Min(_key * period_, duration_);
86 size_t num_keys()
const {
return num_keys_; }
Definition raw_animation_utils.h:77