---
title: "TwoWayConverter"
description: "[TwoWayConverter] class contains the definition on how to convert from an arbitrary type [T] to a
[AnimationVector], and convert the [AnimationVector] back to the type [T]. This allows animations
to run on any type of objects, e.g. position, rectangle, color, etc."
type: "interface"
---

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


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

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



```kotlin
public interface TwoWayConverter<T, V : AnimationVector>
```


`TwoWayConverter` class contains the definition on how to convert from an arbitrary type `T` to a
`AnimationVector`, and convert the `AnimationVector` back to the type `T`. This allows animations
to run on any type of objects, e.g. position, rectangle, color, etc.



