As @metalbass mentioned, p.getDistance(other) is more convenient and natural to use than a static method.

Is is also more consistent with getAngle() with no params (same as angle with ccp(0, 1)) and getLength() (distance to origin).