Converting 'x' value of a CGPoint ivar to NSTimeInterval?
Posted
by eco_bach
on Stack Overflow
See other posts from Stack Overflow
or by eco_bach
Published on 2010-06-10T12:34:54Z
Indexed on
2010/06/10
12:52 UTC
Read the original article
Hit count: 263
Hi
I have a velocity ivar defined as a CGPoint.
I need to somehow extract just the 'x' value of velocity, and then use this to call-send a message to the following method signature
-(void) adjustTimer:(NSTimeInterval*)newInterval
How do I obtain just the 'x' value of a CGPoint? Do I then need to convert or cast this result before calling my adjustTimer method?
© Stack Overflow or respective owner