Vector2 p1 =  Pos[0].position;
        Vector2 p2=  Pos[1].position;
        Vector2 p3 = Pos[2].position;

        if ((p2.x - p1.x) *(p3.y - p1.y) -(p3.x - p1.x) *(p2.y-p1.y) < 0)  
        {  
            Debug.Log("顺时针") ;  
        }  
        else  
        {
            Debug.Log("逆时针") ;  
        }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-05
  • 2021-10-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-13
  • 2021-08-22
  • 2022-12-23
相关资源
相似解决方案