#import <Availability.h>#import <CoreGraphics/CGGeometry.h>#import <math.h>#import <objc/objc.h>Go to the source code of this file.
Defines | |
| #define | ccp(__X__, __Y__) CGPointMake(__X__,__Y__) |
Functions | |
| static CGPoint | ccpAdd (const CGPoint v1, const CGPoint v2) |
| float | ccpAngle (CGPoint a, CGPoint b) |
| float | ccpAngleSigned (CGPoint a, CGPoint b) |
| CGPoint | ccpClamp (CGPoint p, CGPoint from, CGPoint to) |
| CGPoint | ccpCompMult (CGPoint a, CGPoint b) |
| CGPoint | ccpCompOp (CGPoint p, float(*opFunc)(float)) |
| static CGFloat | ccpCross (const CGPoint v1, const CGPoint v2) |
| CGFloat | ccpDistance (const CGPoint v1, const CGPoint v2) |
| static CGFloat | ccpDot (const CGPoint v1, const CGPoint v2) |
| CGPoint | ccpForAngle (const CGFloat a) |
| CGPoint | ccpFromSize (CGSize s) |
| BOOL | ccpFuzzyEqual (CGPoint a, CGPoint b, float variance) |
| CGFloat | ccpLength (const CGPoint v) |
| static CGFloat | ccpLengthSQ (const CGPoint v) |
| CGPoint | ccpLerp (CGPoint a, CGPoint b, float alpha) |
| BOOL | ccpLineIntersect (CGPoint p1, CGPoint p2, CGPoint p3, CGPoint p4, float *s, float *t) |
| static CGPoint | ccpMidpoint (const CGPoint v1, const CGPoint v2) |
| static CGPoint | ccpMult (const CGPoint v, const CGFloat s) |
| static CGPoint | ccpNeg (const CGPoint v) |
| CGPoint | ccpNormalize (const CGPoint v) |
| static CGPoint | ccpPerp (const CGPoint v) |
| static CGPoint | ccpProject (const CGPoint v1, const CGPoint v2) |
| static CGPoint | ccpRotate (const CGPoint v1, const CGPoint v2) |
| CGPoint | ccpRotateByAngle (CGPoint v, CGPoint pivot, float angle) |
| static CGPoint | ccpRPerp (const CGPoint v) |
| static CGPoint | ccpSub (const CGPoint v1, const CGPoint v2) |
| CGFloat | ccpToAngle (const CGPoint v) |
| static CGPoint | ccpUnrotate (const CGPoint v1, const CGPoint v2) |
| float | clampf (float value, float min_inclusive, float max_inclusive) |
CGPoint extensions based on Chipmunk's cpVect file. These extensions work both with CGPoint and cpVect.
The "ccp" prefix means: "CoCos2d Point"
Examples:
1.7.1