示例#1
0
        private static Line2D CreateRedBox()
        {
            var line = new Line2D(new Vector2D(0.4f, 0.4f), new Vector2D(0.6f, 0.4f), Color.Red);

            line.ExtendLine(new Vector2D(0.6f, 0.6f));
            line.ExtendLine(new Vector2D(0.4f, 0.6f));
            line.ExtendLine(new Vector2D(0.4f, 0.4f));
            return(line);
        }
示例#2
0
		private static Line2D CreateRedBox()
		{
			var line = new Line2D(new Vector2D(0.4f, 0.4f), new Vector2D(0.6f, 0.4f), Color.Red);
			line.ExtendLine(new Vector2D(0.6f, 0.6f));
			line.ExtendLine(new Vector2D(0.4f, 0.6f));
			line.ExtendLine(new Vector2D(0.4f, 0.4f));
			return line;
		}