new OrientationInterpolator
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.
Methods
-
evaluate
-
Evaluates the orientation at a given time.
Parameters:
Name Type Description timeNumber The time at which to evaluate the orientation. Throws:
-
DeveloperError : time is required.
-
DeveloperError : time must be in the range
[a0, an], wherea0andanare the time properties of first and last elements in the array given during construction, respectively.
Returns:
Quaternion The orientation at the giventime. -
-
getControlPoints
-
Returns the array of control points.
Returns:
Array The array of control points.
