MapAnimationExtensionsAnimateTPoint Method (IMapTPoint, FuncVector2, Single, Vector2, FuncVector2, Single, Vector2) | 
inverseAmimation(animation(someVector, t), t) == someVector
Namespace: Gamelogic.Grids
public static IMap<TPoint> Animate<TPoint>( this IMap<TPoint> map, Func<Vector2, float, Vector2> animation, Func<Vector2, float, Vector2> inverseAnimation ) where TPoint : Object, IGridPoint<TPoint>
map = new PointyHexMap(hexDimensions).AnchorCellMiddleCenter() .WithWindow(ExampleUtils.ScreenRect) .AlignMiddleCenter(grid) //Rotate .Animate((x, t) => x.Rotate(45 * t), (x, t) => x.Rotate(-45 * t)) //Translate .Animate((x, t) => x + new Vector2(75 * Mathf.Sin(t * 5), 0), (x, t) => x - new Vector2(75 * Mathf.Sin(t * 5), 0)) //Scale .Animate((x, t) => x * (1 + Mathf.Sin(t * 7)), (x, t) => x / (1 + Mathf.Sin(t * 7)));