Calculate angle between three consecutive points

three_point_angle(x)

Arguments

x

matrix with first two columns assumed to contain x, y coordinates.