cocos2d-iphone  2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines
CCVertex.h File Reference
#import "ccTypes.h"
+ Include dependency graph for CCVertex.h:

Functions

void ccVertexLineToPolygon (CGPoint *points, float stroke, ccVertex2F *vertices, NSUInteger offset, NSUInteger nuPoints)
BOOL ccVertexLineIntersect (float Ax, float Ay, float Bx, float By, float Cx, float Cy, float Dx, float Dy, float *T)

Detailed Description


Function Documentation

BOOL ccVertexLineIntersect ( float  Ax,
float  Ay,
float  Bx,
float  By,
float  Cx,
float  Cy,
float  Dx,
float  Dy,
float *  T 
)

returns whether or not the line intersects

void ccVertexLineToPolygon ( CGPoint *  points,
float  stroke,
ccVertex2F vertices,
NSUInteger  offset,
NSUInteger  nuPoints 
)

converts a line to a polygon