Communicator.Animation.Sampler

 Sampler

Describes how the keyframes in a buffer are sampled.

Constructors

constructor

Properties

buffer

interpolationType

interpolationType: InterpolationType

Methods

interpolateQuat

  • interpolateQuat(t: number, out: Quaternion): void
  • Computes an interpolated quaternion for the given frame.

    Parameters

    • t: number
    • out: Quaternion

    Returns void

interpolateScalar

  • interpolateScalar(t: number): number
  • Computes an interpolated scalar value for the given frame.

    Parameters

    • t: number

    Returns number

interpolateVec3

  • interpolateVec3(t: number, out: Point3): void
  • Computes an interpolated Vector 3 value for the given frame.

    Parameters

    Returns void

interpolateVec3CubicSpline

  • Performs Cubic Spline Interpolation on the Vector3 values at keyframes beginning at indices k0 and k1

    Parameters

    Returns void