import math
def angle_between_points(a, b, c):
# Calculate vectors AB and BC
AB = [b[0] - a[0], b[1] - a[1]]
BC = [c[0] - b[0], c[1] - b[1]]
# Calculate dot product of AB and BC
dot_product = AB[0] * BC[0] + AB[1] * BC[1]
# Calculate magnitudes of AB and BC
magnitude_AB = math.sqrt(AB[0] ** 2 + AB[1] ** 2)
magnitude_BC = math.sqrt(BC[0] ** 2 + BC[1] ** 2)
# Calculate angle in radians
angle_radians = math.acos(dot_product / (magnitude_AB * magnitude_BC))
# Convert angle to degrees
angle_degrees = math.degrees(angle_radians)
return angle_degrees
01-01
05-29
1670
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)