This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ (CGFloat)transitionFloat:(CGFloat)float1 toFloat:(CGFloat)float2 byRatio:(CGFloat)ratio | |
{ | |
return ( ratio * (float2 - float1) ); | |
} | |
+ (CGRect)transitionRect:(CGRect)rect1 toRect:(CGRect)rect2 byRatio:(CGFloat)ratio | |
{ | |
if (CGRectIsNull(rect1) || CGRectIsNull(rect2)) { | |
return CGRectZero; | |
} |