Exemple #1
0
        public static bool ContainsPoint(Point p, Line line)
        {
            Rectangle selection = new Rectangle(p.X - 4, p.Y - 4, 8, 8);

            if (selection.Contains(line.Start) | selection.Contains(line.End))
            {
                return true;
            }
            return false;
        }
Exemple #2
0
 public void AddLine(Line l)
 {
     graobjs.Add(l);
 }