public static float ccpToAngle(final CGPoint v){
  return (float)Math.atan2(v.y,v.x);
}

public static float ccpToAngle ( final CGPoint v ) { return ( float ) Math . atan2 ( v . y , v . x ) ; }
converts a vector to radians .
