CzmlUnitQuaternion

CzmlUnitQuaternion

Members

<static>

The number of doubles per packed value used for interpolation.

<static>

The number of doubles per packed Quaternion value.

Methods

<static>

Given a non-sampled unwrapped interval, returns a Quaternion instance of the data.

Parameters:
Name Type Description
unwrappedInterval Object The result of CzmlUnitQuaternion.unwrapInterval.
result Cartesian3 The object to store the result in, if undefined a new instance will be created.
Returns:
The modified result parameter or a new Quaternion instance if result was not defined.

<static>

Given a packed array of x, y, z, and w values, extracts a Quaternion instance.

Parameters:
Name Type Description
array Array A packed array of Quaternion values, where every four elements represents a Cartesian3.
startingIndex Number The index into the array that contains the x value of the Quaternion you would like.
result Cartesian3 The object to store the result in, if undefined a new instance will be created.
Returns:
The modified result parameter or a new Quaternion instance if result was not defined.

<static>

Given a packed array of axis-angle rotations returned from CzmlUnitQuaternion.packValuesForInterpolation, converts the desired index into a unit Quaternion.

Parameters:
Name Type Description
array Array The array containing the packed axis-angle rotations.
result Quaternion The object to store the result in, if undefined a new instance will be created.
sourceArray Array The source array of the original Quaternion values previously passed to CzmlUnitQuaternion.packValuesForInterpolation.
firstIndex Number The index previously passed to CzmlUnitQuaternion.packValuesForInterpolation.
lastIndex Number The index previously passed to CzmlUnitQuaternion.packValuesForInterpolation
Returns:
The modified result parameter or a new Quaternion instance if result was not defined.

<static>

Returns true if this interval represents data that should be interpolated by the client or false if it's a single value.

Parameters:
Name Type Description
unwrappedInterval Object The result of CzmlUnitQuaternion.unwrapInterval.

<static>

Given a packed array of x, y, z, and w values, creates a packed array of Cartesian3 axis-angle rotations suitable for interpolation.

Parameters:
Name Type Description
sourceArray Array The packed array of quaternion values.
destinationArray Array The array to store the packed axis-angle rotations.
firstIndex Number The index of the first element to be packed.
lastIndex Number The index of the last element to be packed.

<static>

Returns the packed Quaternion representation contained within the provided CZML interval or undefined if the interval does not contain Quaternion data.

Parameters:
Name Type Description
czmlInterval Object The CZML interval to unwrap.