# AnimationVector1D

# AnimationVector1D

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.AnimationVector1D)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-animation#1.0.0)
Common/All
  - Cmn  

  ```
  class AnimationVector1D : 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.AnimationVector1D](https://developer.android.com/reference/kotlin/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](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationVector1D#AnimationVector1D(kotlin.Float))`(initVal: `[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/AnimationVector1D#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/AnimationVector1D#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/AnimationVector1D#toString())`()`                                                                                            | Cmn |

|                              ### Public properties                              |
|---------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | [value](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationVector1D#value()) This field holds the only Float value in this[AnimationVector1D](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationVector1D)object. | Cmn |

## Public constructors

### AnimationVector1D

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

```
AnimationVector1D(initVal: Float)
```  

|                                         Parameters                                         |
|--------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------|
| `initVal: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | initial value to set the[value](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationVector1D#value())field to. |

## 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

### value

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

```
val value: Float
```

This field holds the only Float value in this[AnimationVector1D](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationVector1D)object.