# AnimationVector2D

# AnimationVector2D

Artifact: [androidx.compose.animation:animation-core](https://developer.android.com/jetpack/androidx/releases/compose-animation)  
[View Source](https://cs.android.com/search?q=file:androidx/compose/animation/core/AnimationVectors.kt+class:androidx.compose.animation.core.AnimationVector2D)  
Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-animation#1.0.0)
Common/All
  - Cmn  

  ```
  class AnimationVector2D : AnimationVector
```  

|---|---|-------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)                                                                          |||
| ↳ | [androidx.compose.animation.core.AnimationVector](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationVector)        ||
|   | ↳ | [androidx.compose.animation.core.AnimationVector2D](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationVector2D) |

*** ** * ** ***

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

## Summary

|                                                                                                                                                              ### Public constructors                                                                                                                                                               |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [AnimationVector2D](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationVector2D#AnimationVector2D(kotlin.Float,kotlin.Float))`(v1: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`, v2: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`)` | Cmn |

|                                        ### Public functions                                         |
|-----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationVector2D#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` | Cmn |
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | [hashCode](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationVector2D#hashCode())`()`                                                                                            | Cmn |
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)            | [toString](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationVector2D#toString())`()`                                                                                            | Cmn |

|                              ### Public properties                              |
|---------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | [v1](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationVector2D#v1()) Float value field for the first dimension of the 2D vector.  | Cmn |
| [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | [v2](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationVector2D#v2()) Float value field for the second dimension of the 2D vector. | Cmn |

## Public constructors

### AnimationVector2D

Cmn  
Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-animation#1.0.0)  

```
AnimationVector2D(v1: Float, v2: Float)
```  

|                                      Parameters                                       |
|---------------------------------------------------------------------------------------|----------------------------------------------|
| `v1: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | initial value to set on the first dimension  |
| `v2: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | initial value to set on the second dimension |

## Public functions

### equals

Cmn  

```
open operator fun equals(other: Any?): Boolean
```  

### hashCode

Cmn  

```
open fun hashCode(): Int
```  

### toString

Cmn  

```
open fun toString(): String
```

## Public properties

### v1

Cmn  
Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-animation#1.0.0)  

```
val v1: Float
```

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

### v2

Cmn  
Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-animation#1.0.0)  

```
val v2: Float
```

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