IntTypeConverter

TypeConverter for Int values. Rounds the component back to the nearest integer.

Functions

Link copied to clipboard
open override fun fromVector(vector: AnimationVector): Int

Reconstructs a T from a vector produced by this converter.

Link copied to clipboard
open override fun newVector(): AnimationVector

Creates a zeroed AnimationVector shaped for T, typically via AnimationVector.ofSize.

Link copied to clipboard
open override fun toVector(value: Int, vector: AnimationVector)

Writes value's components into vector, which is shaped by this converter's newVector.