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

Properties

controlPoints

Array that contains the control points

@property (nonatomic, readwrite, retain) NSMutableArray *controlPoints

Declared In

CCActionCatmullRom.h

Class Methods

arrayWithCapacity:

creates and initializes a Points array with capacity

+ (id)arrayWithCapacity:(NSUInteger)capacity

Declared In

CCActionCatmullRom.h

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

reverse

returns a new copy of the array reversed. User is responsible for releasing this copy

- (CCPointArray *)reverse

Declared In

CCActionCatmullRom.h

reverseInline

reverse the current control point array inline, without generating a new one

- (void)reverseInline

Declared In

CCActionCatmullRom.h