Inner angle between two lines

前端 未结 8 1321
忘掉有多难
忘掉有多难 2020-12-14 20:17

I have two lines: Line1 and Line2. Each line is defined by two points (P1L1(x1, y1), P2L1(x2, y2) and P1L1(x1, y1), P2L3(x2, y3)). I want to know t

8条回答
  •  无人及你
    2020-12-14 20:54

    if (result > 180)
    {
         result = 360 - result;
    }
    

    That way it will always be the inner angle. Just add it after you get result.

提交回复
热议问题