TwoWayConverter
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.
Properties
Link copied to clipboard
Defines how to convert a Vector type (i.e. AnimationVector1D, AnimationVector2D, AnimationVector3D or AnimationVector4D, depends on the dimensions of type T) back to type T.
Link copied to clipboard
Defines how a type T should be converted to a Vector type (i.e. AnimationVector1D, AnimationVector2D, AnimationVector3D or AnimationVector4D, depends on the dimensions of type T).
Functions
Link copied to clipboard
Creates an AnimationVector with all the values set to 0 using the provided com.jakewharton.mosaic.animation.TwoWayConverter and the value.