An Array that contain control points. Used by CCCardinalSplineTo and (By) and CCCatmullRomTo (and By) actions.
Class CCPointArray
#include <Geode/cocos/actions/CCActionCatmullRom.h>
classCCPointArray:publiccocos2d::CCObject{ ... }
Examples0
Public static methods1
staticcocos2d::CCPointArray*create(uintcapacity)
creates and initializes a Points array with capacity
Public member functions12
voidaddControlPoint(cocos2d::CCPointcontrolPoint)
appends a control point
voidinsertControlPoint(cocos2d::CCPoint&controlPoint,uintindex)
inserts a controlPoint at index
voidreplaceControlPoint(cocos2d::CCPoint&controlPoint,uintindex)
replaces an existing controlPoint at index
cocos2d::CCPointgetControlPointAtIndex(uintindex)
get the value of a controlPoint at a given index
uintcount()
returns the number of objects of the control point array
cocos2d::CCPointArray*reverse()
returns a new copy of the array reversed. User is responsible for releasing this copy
voidreverseInline()
reverse the current control point array inline, without generating a new one
virtualcocos2d::CCObject*copyWithZone(cocos2d::CCZone*zone)
No description provided
std::vector<cocos2d::CCPoint*>const*getControlPoints()
No description provided
voidsetControlPoints()
No description provided
Fields1
;
Array that contains the control points