Fix buggy angleBetweenPoints.