Function ccpCompOp

#include <Geode/cocos/support/CCPointExtension.h>cocos2d::CCPointccpCompOp(,)

Since v0.99.1

Run a math operation function on each point component absf, fllorf, ceilf, roundf any function that has the signature: float func(float); For example: let’s try to take the floor of x,y ccpCompOp(p,floorf);

Examples0