# CCActionCatmullRomBy Class Reference

Inherits from | CCActionCardinalSplineBy : CCActionCardinalSplineTo : CCActionInterval : CCActionFiniteTime : CCAction : NSObject
Declared in | CCActionCatmullRom.h

## Overview

Creates an action, based on a catmull-rom spline path.

A Catmull Rom is a Cardinal Spline with a tension of 0.5. See CCActionCardinalSplineTo for further information.

## Tasks

- `+ actionWithDuration:points:`
- `– initWithDuration:points:`

## Class Methods

### actionWithDuration:points:

Creates an action, performing a catmull-rom spline. This is similar to creating a cardinal spline, with a tension of 0.5.

`+ (id)actionWithDuration:(CCTime)dt points:(CCPointArray *)points`

#### Parameters

dt

  Action duration.

points

  Points to use for spline.

#### Return Value

New catmull-rom action.

#### Declared In

`CCActionCatmullRom.h`

## Instance Methods

### initWithDuration:points:

Initializes an action, performing a catmull-rom spline. This is similar to creating a cardinal spline, with a tension of 0.5.

`- (id)initWithDuration:(CCTime)dt points:(CCPointArray *)points`

#### Parameters

dt

  Action duration.

points

  Points to use for spline.

#### Return Value

New catmull-rom action.

#### Declared In

`CCActionCatmullRom.h`