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
-
controlPoints
Array 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
-
– count
returns the number of objects of the control point array
-
– reverse
returns a new copy of the array reversed. User is responsible for releasing this copy
-
– reverseInline
reverse the current control point array inline, without generating a new one
Instance Methods
addControlPoint:
appends a control point
- (void)addControlPoint:(CGPoint)controlPoint
Declared In
CCActionCatmullRom.h
count
returns the number of objects of the control point array
- (NSUInteger)count
Declared In
CCActionCatmullRom.h
getControlPointAtIndex:
get the value of a controlPoint at a given index
- (CGPoint)getControlPointAtIndex:(NSInteger)index
Declared In
CCActionCatmullRom.h
initWithCapacity:
initializes a Catmull Rom config with a capacity hint
- (id)initWithCapacity:(NSUInteger)capacity
Declared In
CCActionCatmullRom.h
insertControlPoint:atIndex:
inserts a controlPoint at index
- (void)insertControlPoint:(CGPoint)controlPoint atIndex:(NSUInteger)index
Declared In
CCActionCatmullRom.h
removeControlPointAtIndex:
deletes a control point at a given index
- (void)removeControlPointAtIndex:(NSUInteger)index
Declared In
CCActionCatmullRom.h
replaceControlPoint:atIndex:
replaces an existing controlPoint at index
- (void)replaceControlPoint:(CGPoint)controlPoint atIndex:(NSUInteger)index
Declared In
CCActionCatmullRom.h