Skip to content

Instantly share code, notes, and snippets.

@mousebird
Created July 12, 2016 15:50
Show Gist options
  • Save mousebird/1fa15307198bdf88622010e3774314e9 to your computer and use it in GitHub Desktop.
Save mousebird/1fa15307198bdf88622010e3774314e9 to your computer and use it in GitHub Desktop.
/** @brief Interpolate a new state between the given states A and B.
@details This does a simple interpolation (lat/lon, not great circle) between the two animation states.
*/
+ (nonnull WhirlyGlobeViewControllerAnimationState *)Interpolate:(double)t from:(WhirlyGlobeViewControllerAnimationState *__nonnull)stateA to:(WhirlyGlobeViewControllerAnimationState *__nonnull)stateB;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment