Constructors
Properties
Methods
Constructors
constructor
-
Creates a new sampler for a KeyframeBuffer
Parameters
-
buffer: KeyframeBuffer
The buffer that will be sampled.
-
interpolationType: InterpolationType
The Type of interpolation that will be used
Returns Sampler
-
Properties
buffer
interpolationType
Methods
interpolateQuat
-
Computes an interpolated quaternion for the given frame.
Parameters
-
t: number
-
out: Quaternion
Returns void
-
interpolateScalar
-
Computes an interpolated scalar value for the given frame.
Parameters
-
t: number
Returns number
-
interpolateVec3
-
Computes an interpolated Vector 3 value for the given frame.
Parameters
-
t: number
-
out: Point3
Returns void
-
interpolateVec3CubicSpline
-
Performs Cubic Spline Interpolation on the Vector3 values at keyframes beginning at indices k0 and k1
Parameters
-
k0: KeyframeIndex
-
k1: KeyframeIndex
-
t: number
-
out: Point3
Returns void
-
Describes how the keyframes in a buffer are sampled.