---
title: "AnimationVector"
description: "Factory method to create an [AnimationVector1D]"
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
public fun AnimationVector(v1: Float): AnimationVector1D
```


Factory method to create an `AnimationVector1D`

#### Parameters

| | |
| --- | --- |
| v1 | value to set on the value field of `AnimationVector1D` |




<div class='sourceset sourceset-common'>Common</div>


```kotlin
public fun AnimationVector(v1: Float, v2: Float): AnimationVector2D
```


Factory method to create an `AnimationVector2D`

#### Parameters

| | |
| --- | --- |
| v1 | value to set on the first dimension |
| v2 | value to set on the second dimension |




<div class='sourceset sourceset-common'>Common</div>


```kotlin
public fun AnimationVector(v1: Float, v2: Float, v3: Float): AnimationVector3D
```


Factory method to create an `AnimationVector3D`

#### Parameters

| | |
| --- | --- |
| v1 | value to set on the first dimension |
| v2 | value to set on the second dimension |
| v3 | value to set on the third dimension |




<div class='sourceset sourceset-common'>Common</div>


```kotlin
public fun AnimationVector(v1: Float, v2: Float, v3: Float, v4: Float): AnimationVector4D
```


Factory method to create an `AnimationVector4D`

#### Parameters

| | |
| --- | --- |
| v1 | value to set on the first dimension |
| v2 | value to set on the second dimension |
| v3 | value to set on the third dimension |
| v4 | value to set on the fourth dimension |




