示例#1
0
文件: Line.cs 项目: TW2/RedPlanetX
        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;
        }
示例#2
0
文件: Group.cs 项目: TW2/RedPlanetX
 public void AddLine(Line l)
 {
     graobjs.Add(l);
 }