Added function to get angle from point.