---
title: "VectorConverter"
description: "A [TwoWayConverter] that converts [Float] from and to [AnimationVector1D]"
type: "property"
---

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


<a id='references'></a>

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


```kotlin
public val Float.Companion.VectorConverter: TwoWayConverter<Float, AnimationVector1D>
```


A `TwoWayConverter` that converts `Float` from and to `AnimationVector1D`



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


```kotlin
public val Int.Companion.VectorConverter: TwoWayConverter<Int, AnimationVector1D>
```


A `TwoWayConverter` that converts `Int` from and to `AnimationVector1D`



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


```kotlin
public val Rect.Companion.VectorConverter: TwoWayConverter<Rect, AnimationVector4D>
```


A type converter that converts a `Rect` to a `AnimationVector4D`, and vice versa.



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


```kotlin
public val Dp.Companion.VectorConverter: TwoWayConverter<Dp, AnimationVector1D>
```


A type converter that converts a `Dp` to a `AnimationVector1D`, and vice versa.



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


```kotlin
public val DpOffset.Companion.VectorConverter: TwoWayConverter<DpOffset, AnimationVector2D>
```


A type converter that converts a `DpOffset` to a `AnimationVector2D`, and vice versa.



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


```kotlin
public val Size.Companion.VectorConverter: TwoWayConverter<Size, AnimationVector2D>
```


A type converter that converts a `Size` to a `AnimationVector2D`, and vice versa.



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


```kotlin
public val Offset.Companion.VectorConverter: TwoWayConverter<Offset, AnimationVector2D>
```


A type converter that converts a `Offset` to a `AnimationVector2D`, and vice versa.



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


```kotlin
public val IntOffset.Companion.VectorConverter: TwoWayConverter<IntOffset, AnimationVector2D>
```


A type converter that converts a `IntOffset` to a `AnimationVector2D`, and vice versa.



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


```kotlin
public val IntSize.Companion.VectorConverter: TwoWayConverter<IntSize, AnimationVector2D>
```


A type converter that converts a `IntSize` to a `AnimationVector2D`, and vice versa.

Clamps negative values to zero when converting back to `IntSize`.



