Geode Docs
Tutorials
Classes
Function
ccpClamp
#include
<Geode/cocos/support/CCPointExtension.h>
cocos2d
::
CCPoint
ccpClamp
(
cocos2d
::
CCPoint
const
&
p
,
cocos2d
::
CCPoint
const
&
from
,
cocos2d
::
CCPoint
const
&
to
)
Since v0.99.1
Clamp a point between from and to.
Examples
0