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

info.laht.threekt.animation.KeyFrameTrack.kt Maven / Gradle / Ivy

The newest version!
@file:JsQualifier("THREE")

package info.laht.threekt.animation

import org.khronos.webgl.Float32Array

/**
 * @param name the identifier for the KeyframeTrack.
 * @param times an array of keyframe times, converted internally to a Float32Array.
 * @param values an array with the values related to the times array, converted internally to a Float32Array.
 * @param interpolation the type of interpolation to use. See Animation Constants for possible values. Default is InterpolateLinear.
 */
open external class KeyFrameTrack(
        name: String,
        times: Array,
        values: Array,
        interpolation: Int
) {

    companion object {
        var DefaultInterpolation: Int
    }

    var name: String
    var times: Float32Array
    var values: Float32Array

    /**
     * Returns the interpolation type
     */
    fun getInterpolation() : Int


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy