void Node::getPosition(float* x, float* y) const
{
    *x = _position.x;
    *y = _position.y;
}

This function is in CCNode  file