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

AnimationVector4D

public final class AnimationVector4D extends AnimationVector

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

This class defines a 4D vector that contains four Float fields for its four dimensions.

Summary

Public constructors

AnimationVector4D(float v1, float v2, float v3, float v4)

Public methods

boolean
equals(Object other)
final float

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

final float

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

final float

Float value field for the third dimension of the 4D vector.

final float

Float value field for the fourth dimension of the 4D vector.

int
@NonNull String

Public constructors

AnimationVector4D

public AnimationVector4D(float v1, float v2, float v3, float v4)
Parameters
float v1

initial value to set on the first dimension

float v2

initial value to set on the second dimension

float v3

initial value to set on the third dimension

float v4

initial value to set on the fourth dimension

Public methods

equals

public boolean equals(Object other)

getV1

public final float getV1()

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

getV2

public final float getV2()

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

getV3

public final float getV3()

Float value field for the third dimension of the 4D vector.

getV4

public final float getV4()

Float value field for the fourth dimension of the 4D vector.

hashCode

public int hashCode()

toString

public @NonNull String toString()