参考链接: https://www.zhihu.com/question/26551754 http://www.cnblogs.com/leoin2012/p/6425089.html 原理如下: 代码实现: using UnityEngine; using System.Collections.Generic; public class MathTool { /// <summary> /// 点是否在多边形范围内 /// </summary> /// <param na
https://msdn.microsoft.com/en-us/library/windows/desktop/ms533826(v=vs.85).aspx The purpose of hit testing is to determine whether the cursor is over a given object, such as an icon or a button. The following example creates a plus-shaped region by f