Incompatible type in assignment
Posted
by coure06
on Stack Overflow
See other posts from Stack Overflow
or by coure06
Published on 2010-06-03T07:20:13Z
Indexed on
2010/06/03
7:24 UTC
Read the original article
Hit count: 179
objective-c
|iphone-sdk
Getting error: Incompatible type in assignment at fValue = ..., see the code
static float t = 0;
float d = .5;
static float fValue = 0;
fValue = [self easeOutBounce:t andB:0 andC:30 andD:d];
here is the method
-(float) easeOutBounce:(float)t andB:(float)b andC:(float)c andD:(float)d {
if ((t/=d) < (1/2.75)) {
return c*(7.5625*t*t) + b;
} else if (t < (2/2.75)) {
return c*(7.5625*(t-=(1.5/2.75))t + .75) + b;
} else if (t < (2.5/2.75)) {
return c(7.5625*(t-=(2.25/2.75))t + .9375) + b;
} else {
return c(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
}
}
© Stack Overflow or respective owner