Click or drag to resize

MapAnimationExtensions Class

These functions are defined as extensions so that IMap can remain pure (that is, not access Time.time). These methods are implemented as extension methods so that they do not become part of the "pure" interface of IMap. (Time.time is a "non-pure", very Unity-specific feature).
Inheritance Hierarchy
SystemObject
  Gamelogic.GridsMapAnimationExtensions

Namespace:  Gamelogic.Grids
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static class MapAnimationExtensions
Methods
  NameDescription
Public methodStatic memberAnimateTPoint(IMapTPoint, FuncVector2, Single, Vector2)
Only use this method if animation(x, -t) is the inverse of animation(x, t).
Public methodStatic memberCode exampleAnimateTPoint(IMapTPoint, FuncVector2, Single, Vector2, FuncVector2, Single, Vector2)
Animates this grid using a function animation that takes a point and time. The inverse animation is the inverse mapping at time t, that is,
inverseAmimation(animation(someVector, t), t) == someVector
Top
See Also