VectorizedFloatAnimationSpec
Class
Common
public class VectorizedFloatAnimationSpec<V : AnimationVector>
internal constructor(private val anims: Animations) : VectorizedFiniteAnimationSpec<V>
A convenient implementation of VectorizedFloatAnimationSpec
that turns a FloatAnimationSpec
into a multi-dimensional VectorizedFloatAnimationSpec
, by using the same FloatAnimationSpec
on each dimension of the AnimationVector
that is being animated.
Secondary Constructors
public constructor(
anim: FloatAnimationSpec
) : this(
object : Animations {
override fun get(index: Int): FloatAnimationSpec {
return anim
}
}
)
Creates a VectorizedAnimationSpec
from a FloatAnimationSpec
. The given
FloatAnimationSpec
will be used to animate every dimension of the AnimationVector
.
Parameters
anim | the animation spec for animating each dimension of the AnimationVector |