Exemple #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     using (RoomPlanner r = new RoomPlanner())
     {
         Application.Run(r);
     }
 }
        public bool IsInWall(Point p)
        {
            if (!IsWall)
            {
                return(false);
            }

            Point[] one = new Point[] { RoomPlanner.Minus(p, Center) };
            using (Matrix m = new Matrix())
            {
                m.Rotate(-Angle);
                m.TransformPoints(one);
            }

            return(wall.IsOutlineVisible(one[0], RoomPlanner.wallPen));
        }