CzmlNumber
Provides methods for working with a number defined in CZML.
Members
-
<static> doublesPerInterpolationValue
-
The number of doubles per packed value used for interpolation.
-
<static> doublesPerValue
-
The number of doubles per packed value.
Methods
-
<static> getValue
-
Returns the numerical value contained within the unwrappedInterval. For numbers this is the unwrappedInterval itself.
Parameters:
Name Type Description unwrappedInterval
Object The result of CzmlNumber.unwrapInterval. Returns:
The boolean value. -
<static> getValueFromArray
-
Given a packed array of numerical values, returns the number at the given index..
Parameters:
Name Type Description array
Array An array of numbers. startingIndex
Number The index into the array that contains the value you would like. Returns:
The value at the specified index. -
<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 CzmlNumber.unwrapInterval. -
<static> unwrapInterval
-
Returns the packed numerical representation contained within the provided CZML interval or undefined if the interval does not contain numerical data.
Parameters:
Name Type Description czmlInterval
Object The CZML interval to unwrap.