CCPointArray Class Reference
| Inherits from | NSObject |
| Conforms to | NSCopying |
| Declared in | CCActionCatmullRom.h |
Overview
An Array that contain control points.
Used by CCCardinalSplineTo and (By) and CCCatmullRomTo (and By) actions.
Tasks
-
controlPointsArray that contains the control points
property -
+ arrayWithCapacity:creates and initializes a Points array with capacity
-
– initWithCapacity:initializes a Catmull Rom config with a capacity hint
-
– addControlPoint:appends a control point
-
– insertControlPoint:atIndex:inserts a controlPoint at index
-
– replaceControlPoint:atIndex:replaces an existing controlPoint at index
-
– getControlPointAtIndex:get the value of a controlPoint at a given index
-
– removeControlPointAtIndex:deletes a control point at a given index
-
– countreturns the number of objects of the control point array
-
– reversereturns a new copy of the array reversed. User is responsible for releasing this copy
-
– reverseInlinereverse the current control point array inline, without generating a new one
Instance Methods
addControlPoint:
appends a control point
- (void)addControlPoint:(CGPoint)controlPointDeclared In
CCActionCatmullRom.hcount
returns the number of objects of the control point array
- (NSUInteger)countDeclared In
CCActionCatmullRom.hgetControlPointAtIndex:
get the value of a controlPoint at a given index
- (CGPoint)getControlPointAtIndex:(NSInteger)indexDeclared In
CCActionCatmullRom.hinitWithCapacity:
initializes a Catmull Rom config with a capacity hint
- (id)initWithCapacity:(NSUInteger)capacityDeclared In
CCActionCatmullRom.hinsertControlPoint:atIndex:
inserts a controlPoint at index
- (void)insertControlPoint:(CGPoint)controlPoint atIndex:(NSUInteger)indexDeclared In
CCActionCatmullRom.hremoveControlPointAtIndex:
deletes a control point at a given index
- (void)removeControlPointAtIndex:(NSUInteger)indexDeclared In
CCActionCatmullRom.hreplaceControlPoint:atIndex:
replaces an existing controlPoint at index
- (void)replaceControlPoint:(CGPoint)controlPoint atIndex:(NSUInteger)indexDeclared In
CCActionCatmullRom.h