cesium-native 0.43.0
Loading...
Searching...
No Matches
CesiumGltf::AnimationSampler::Interpolation Struct Reference

Known values for Interpolation algorithm. More...

#include <CesiumGltf/AnimationSampler.h>

Static Public Attributes

static const std::string LINEAR = "LINEAR"
 The animated values are linearly interpolated between keyframes. When targeting a rotation, spherical linear interpolation (slerp) SHOULD be used to interpolate quaternions. The number of output elements MUST equal the number of input elements.
 
static const std::string STEP = "STEP"
 The animated values remain constant to the output of the first keyframe, until the next keyframe. The number of output elements MUST equal the number of input elements.
 
static const std::string CUBICSPLINE = "CUBICSPLINE"
 The animation's interpolation is computed using a cubic spline with specified tangents. The number of output elements MUST equal three times the number of input elements. For each input element, the output stores three elements, an in-tangent, a spline vertex, and an out-tangent. There MUST be at least two keyframes when using this interpolation.
 

Detailed Description

Known values for Interpolation algorithm.

Definition at line 26 of file AnimationSampler.h.

Member Data Documentation

◆ CUBICSPLINE

const std::string CesiumGltf::AnimationSampler::Interpolation::CUBICSPLINE = "CUBICSPLINE"
inlinestatic

The animation's interpolation is computed using a cubic spline with specified tangents. The number of output elements MUST equal three times the number of input elements. For each input element, the output stores three elements, an in-tangent, a spline vertex, and an out-tangent. There MUST be at least two keyframes when using this interpolation.

Definition at line 44 of file AnimationSampler.h.

◆ LINEAR

const std::string CesiumGltf::AnimationSampler::Interpolation::LINEAR = "LINEAR"
inlinestatic

The animated values are linearly interpolated between keyframes. When targeting a rotation, spherical linear interpolation (slerp) SHOULD be used to interpolate quaternions. The number of output elements MUST equal the number of input elements.

Definition at line 31 of file AnimationSampler.h.

◆ STEP

const std::string CesiumGltf::AnimationSampler::Interpolation::STEP = "STEP"
inlinestatic

The animated values remain constant to the output of the first keyframe, until the next keyframe. The number of output elements MUST equal the number of input elements.

Definition at line 36 of file AnimationSampler.h.


The documentation for this struct was generated from the following file: