having position of 3 point i want to calculate the angle between them
Use the slopes of the rays. The slope of a line is the tangent of the angle made by the line with the horizontal axis, so the angle of the line with the horizontal axis is the arctangent of the slope.
So the angle between the two rays is actan(m1) minus arctan(m2).
Be careful with the signs of the slopes m1 and m2.