{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

AnimationVector1D

public final class AnimationVector1D extends AnimationVector

java.lang.Object
   ↳ androidx.compose.animation.core.AnimationVector
     ↳ androidx.compose.animation.core.AnimationVector1D

This class defines a 1D vector. It contains only one Float value that is initialized in the constructor.

Summary

Public constructors

AnimationVector1D(float initVal)

Public methods

boolean
equals(Object other)
final float

This field holds the only Float value in this AnimationVector1D object.

int
@NonNull String

Public constructors

AnimationVector1D

public AnimationVector1D(float initVal)
Parameters
float initVal

initial value to set the value field to.

Public methods

equals

public boolean equals(Object other)

getValue

public final float getValue()

This field holds the only Float value in this AnimationVector1D object.

hashCode

public int hashCode()

toString

public @NonNull String toString()