Sampler
- class Communicator.Animation.Sampler()
Describes how the keyframes in a buffer are sampled.
Constructors
Properties
Constructors
constructor
- Communicator.Animation.Sampler.constructor(buffer, interpolationType)
Creates a new sampler for a
KeyframeBuffer- Arguments
buffer (
Communicator.Animation.KeyframeBuffer()) –interpolationType (
Communicator.Animation.InterpolationType()) –
- Return type
Communicator.Animation.Sampler
Properties
- Communicator.Animation.Sampler.buffer
- Communicator.Animation.Sampler.interpolationType
Methods
interpolateQuat
- Communicator.Animation.Sampler.interpolateQuat(t, out)
Computes an interpolated quaternion for the given frame.
- Arguments
t (
number()) –out (
Quaternion()) –
- Return type
void
interpolateScalar
- Communicator.Animation.Sampler.interpolateScalar(t)
Computes an interpolated scalar value for the given frame.
- Arguments
t (
number()) –
- Return type
number
interpolateVec3
- Communicator.Animation.Sampler.interpolateVec3(t, out)
Computes an interpolated Vector 3 value for the given frame.
- Arguments
t (
number()) –out (
Communicator.Point3()) –
- Return type
void
interpolateVec3CubicSpline
- Communicator.Animation.Sampler.interpolateVec3CubicSpline(k0, k1, t, out)
Performs Cubic Spline Interpolation on the Vector3 values at keyframes beginning at indices k0 and k1
- Arguments
k0 (
Communicator.Animation.KeyframeIndex()) –k1 (
Communicator.Animation.KeyframeIndex()) –t (
number()) –out (
Communicator.Point3()) –
- Return type
void