CzmlCartesian2

CzmlCartesian2

Members

<static> doublesPerInterpolationValue

The number of doubles per packed value used for interpolation.

<static> doublesPerValue

The number of doubles per packed Cartesian2 value.

Methods

<static> getValue

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

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

<static> getValueFromArray

Given a packed array of x and y values, extracts a Cartesian2 instance.

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

<static> isSampled

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 CzmlCartesian2.unwrapInterval.

<static> unwrapInterval

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

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