如何判断一个点,在一个由若干个点围成的面内 JS/C#

解决方案 »

  1.   

    http://topic.csdn.net/u/20090826/11/c40a192a-62b6-4f11-8155-aa4cebf1cb50.html
      

  2.   

    using System; 
    using System.Collections.Generic; 
    using System.ComponentModel; 
    using System.Data; 
    using System.Drawing; 
    using System.Linq; 
    using System.Text; 
    using System.Windows.Forms; namespace WindowsFormsApplication9 

        public partial class Form1 : Form 
        { 
            public Form1() 
            { 
                InitializeComponent(); 
            } 
            this.button1.Visible = false; 
            private void Form1_MouseMove(object sender, MouseEventArgs e) 
            { 
                if (e.X >= 204 && e.X <= 242 && e.Y >= 58 && e.Y <= 96) 
                { 
                    this.button1.Visible = true;             } 
                else 
                { 
                    this.button1.Visible = false; 
                } 
            } 
        } 
    }
    提供一种思路吧...