Sampler
-
class
Animation.Sampler() Describes how the keyframes in a buffer are sampled.
Constructors
-
Animation.Sampler.constructor() Creates a new sampler for a [[KeyframeBuffer]]
Parameters
buffer:
KeyframeBufferThe buffer that will be sampled.interpolationType:
InterpolationTypeThe Type of interpolation that will be usedReturns:
Sampler
Properties
-
Animation.Sampler.buffer readonly
buffer:KeyframeBufferThe buffer that will be sampled.
-
Animation.Sampler.interpolationType - interpolationType:
InterpolationTypeThe Type of interpolation that will be used
Methods
-
Animation.Sampler.interpolateQuat() - interpolateQuat(t: number, out: Quaternion): void
Computes an interpolated quaternion for the given frame.
Parameters
t: number
out: Quaternion
Returns: void
-
Animation.Sampler.interpolateScalar() - interpolateScalar(t: number): number
Computes an interpolated scalar value for the given frame.
Parameters
t: numberReturns: number