Sampler
- class Animation.Sampler()
Describes how the keyframes in a buffer are sampled.
Constructors
Properties
Constructors
- Sampler.constructor(buffer, interpolationType)
- Arguments
buffer (
KeyframeBuffer()
) – The buffer that will be sampled.interpolationType (
InterpolationType()
) – The Type of interpolation that will be used
Creates a new sampler for a [[KeyframeBuffer]]
- Return type
Sampler
Properties
- Sampler.buffer
- Type
KeyframeBuffer
The buffer that will be sampled.
- Sampler.interpolationType
- Type
InterpolationType
The Type of interpolation that will be used
Methods
interpolateQuat
- Sampler.interpolateQuat(t, out)
- Arguments
t (
number()
) – Noneout (
Quaternion()
) – None
Computes an interpolated quaternion for the given frame.
- Return type
void
interpolateScalar
- Sampler.interpolateScalar(t)
- Arguments
t (
number()
) – None
Computes an interpolated scalar value for the given frame.
- Return type
number