コード例 #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);
 }