Google is committed to advancing racial equity for Black communities. See how.

AnimationVector2D

class AnimationVector2D : AnimationVector
kotlin.Any
   ↳ androidx.animation.AnimationVector
   ↳ androidx.animation.AnimationVector2D

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

Summary

Public constructors
<init>(v1: Float, v2: Float)

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

Public methods
Boolean
equals(other: Any?)

Int

String

Properties
Float

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

Float

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

Public constructors

<init>

AnimationVector2D(
    v1: Float,
    v2: Float)

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

Parameters
v1: Float initial value to set on the first dimension
v2: Float initial value to set on the second dimension

Public methods

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

toString

fun toString(): String

Properties

v1

var v1: Float

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

v2

var v2: Float

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