Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00009 @interface MathHelper : NSObject
00010 {
00011
00012 }
00013
00015 +(CGPoint) getTouchLocation:(UITouch*)touch;
00017 +(CGPoint) getTouchesLocation:(NSSet*)touches;
00019 +(CGPoint) getNormalizedDirectionVector:(float)direction;
00022 +(CGPoint) getDistantPointInDirection:(float)direction fromLocation:(CGPoint)location;
00024 +(bool) isDistanceBetweenPoint:(CGPoint)point1 andPoint:(CGPoint)point2 smallerThan:(float)distance;
00026 +(bool) isDistanceBetweenPoint:(CGPoint)point1 andPoint:(CGPoint)point2 greaterThan:(float)distance;
00029 +(float) getFixedSpeedDurationBetweenPoint:(CGPoint)point1 andPoint:(CGPoint)point2 forSpeed:(float)speed;
00033 +(float) getDirectionFromPoint:(CGPoint)point1 toPoint:(CGPoint)point2;
00035 +(CCNode*) getClosestNode:(CCNode*)node1 otherNode:(CCNode*)node2 location:(CGPoint)location;
00036
00037 @end