All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.cesium.PackableForInterpolation.kt Maven / Gradle / Ivy

// Automatically generated - do not modify!

package cesium

/**
 * Static interface for [Packable] types which are interpolated in a
 * different representation than their packed value.  These methods and
 * properties are expected to be defined on a constructor function.
 * @see Online Documentation
 */
@JsName("\$cesium__PackableForInterpolation")
external object PackableForInterpolation {
    /**
     * The number of elements used to store the object into an array in its interpolatable form.
     * @see Online Documentation
     */
    var packedInterpolationLength: Int

    /**
     * Converts a packed array into a form suitable for interpolation.
     * @param [packedArray] The packed array.
     * @param [startingIndex] The index of the first element to be converted.
     *   Default value - `0`
     * @param [lastIndex] The index of the last element to be converted.
     *   Default value - [packedArray.size]
     * @param [result] The object into which to store the result.
     * @see Online Documentation
     */
    fun convertPackedArrayForInterpolation(
        packedArray: Array,
        startingIndex: Int? = definedExternally,
        lastIndex: Int? = definedExternally,
        result: Array? = definedExternally,
    )

    /**
     * Retrieves an instance from a packed array converted with [PackableForInterpolation.convertPackedArrayForInterpolation].
     * @param [array] The array previously packed for interpolation.
     * @param [sourceArray] The original packed array.
     * @param [startingIndex] The startingIndex used to convert the array.
     *   Default value - `0`
     * @param [lastIndex] The lastIndex used to convert the array.
     *   Default value - [packedArray.size]
     * @param [result] The object into which to store the result.
     * @return The modified result parameter or a new Object instance if one was not provided.
     * @see Online Documentation
     */
    fun unpackInterpolationResult(
        array: Array,
        sourceArray: Array,
        startingIndex: Int? = definedExternally,
        lastIndex: Int? = definedExternally,
        result: Any? = definedExternally,
    ): Any
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy