AnimationDataConverter

sealed interface AnimationDataConverter<T, V>(source)

Manages conversion between T and V. This is used by NumericAnimationPlan to support arbitrary types that can be represented numerically.

Inheritors

Properties

Link copied to clipboard
abstract val zero: T

The serialized representation of a zero T

Functions

Link copied to clipboard
abstract fun deserialize(value: V): T

Convert serialized value to deserialized form T.

Link copied to clipboard
abstract fun serialize(value: T): V

Convert value to serialized form V.