# AnimationVector4D

# AnimationVector4D

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

  ```
  class AnimationVector4D : 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.AnimationVector4D](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationVector4D) |

*** ** * ** ***

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

## Summary

|                                                                                                                                                                                                                                                                  ### Public constructors                                                                                                                                                                                                                                                                   |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [AnimationVector4D](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationVector4D#AnimationVector4D(kotlin.Float,kotlin.Float,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)`, v3: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`, v4: `[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/AnimationVector4D#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/AnimationVector4D#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/AnimationVector4D#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/AnimationVector4D#v1()) Float value field for the first dimension of the 4D 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/AnimationVector4D#v2()) Float value field for the second dimension of the 4D vector. | Cmn |
| [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | [v3](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationVector4D#v3()) Float value field for the third dimension of the 4D vector.  | Cmn |
| [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | [v4](https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationVector4D#v4()) Float value field for the fourth dimension of the 4D vector. | Cmn |

## Public constructors

### AnimationVector4D

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

```
AnimationVector4D(v1: Float, v2: Float, v3: Float, v4: 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 |
| `v3: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | initial value to set on the third dimension  |
| `v4: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | initial value to set on the fourth 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 4D 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 4D vector.  

### v3

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

```
val v3: Float
```

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

### v4

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

```
val v4: Float
```

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