OrientationInterpolator

OrientationInterpolator

new

Smoothly interpolates orientation, represented by Quaternions, over time. For example, this can be used to set a camera's axes along a path.

Parameters:
Name Type Description
controlPoints Array An array, of at least length 2, of objects with orientation and time properties.
Throws:
DeveloperError : controlPoints is required. It must be an array with at least a length of 3.
See:
Source:

Methods

Evaluates the orientation at a given time.

Parameters:
Name Type Description
time Number The time at which to evaluate the orientation.
Throws:
  • DeveloperError : time is required.
  • DeveloperError : time must be in the range [a0, an], where a0 and an are the time properties of first and last elements in the array given during construction, respectively.
Returns:
Quaternion The orientation at the given time.

Returns the array of control points.

Returns:
Array The array of control points.