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

AnimationVector2D

public final class AnimationVector2D extends AnimationVector

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

This class defines a 2D vector that contains two Float values for the two dimensions.

Summary

Public constructors

AnimationVector2D(float v1, float v2)

Public methods

boolean
equals(Object other)
final float

Float value field for the first dimension of the 2D vector.

final float

Float value field for the second dimension of the 2D vector.

int
@NonNull String

Public constructors

AnimationVector2D

public AnimationVector2D(float v1, float v2)
Parameters
float v1

initial value to set on the first dimension

float v2

initial value to set on the second dimension

Public methods

equals

public boolean equals(Object other)

getV1

public final float getV1()

Float value field for the first dimension of the 2D vector.

getV2

public final float getV2()

Float value field for the second dimension of the 2D vector.

hashCode

public int hashCode()

toString

public @NonNull String toString()