Code Search for Developers
 
 
  

CardLocationWith4Corners.cs from MASE: Agile Software Engineering at Krugle


Show CardLocationWith4Corners.cs syntax highlighted

using System;
using System.Drawing;

using Whiteboard.MaseWS;

namespace Whiteboard
{
	/// <summary>
	/// Summary description for CardLocationWith4Corners.
	/// </summary>
	public class CardLocationWith4Corners
	{
		public PointF leftTop;
		public PointF rightTop;
		public PointF rightBut;
		public PointF leftBut;

		public CardLocationWith4Corners(PointF center, int cardWidth, int cardHeight)
		{
			Single adjust_X = 0.5f * Convert.ToSingle(cardWidth);
			Single adjust_Y = 0.5f * Convert.ToSingle(cardHeight);
			
			leftTop = new PointF(center.X-adjust_X, center.Y-adjust_Y);
			rightTop = new PointF(center.X+adjust_X, center.Y-adjust_Y);
			rightBut = new PointF(center.X+adjust_X, center.Y+adjust_Y);
			leftBut = new PointF(center.X-adjust_X, center.Y+adjust_Y);
		}
	}
}




See more files for this project here

MASE: Agile Software Engineering

The MASE project investigates methods to support the coordination and executable acceptance testing of software projects. Keywords: Agile methods, distributed teams, Extreme Programming. See http://ebe.cpsc.ucalgary.ca/ebe for more information.

Project homepage: http://sourceforge.net/projects/mase
Programming language(s): Java,XML
License: other

  ApplicationProperties.cs
  CardLocationWith4Corners.cs
  HandWrittenObj.cs
  HandwrittenStoryCard.cs
  Iteration.cs
  Iteration.resx
  MaseListen.cs
  MaseUpdate.cs
  ProcessNode.cs
  ProjectNode.cs
  RegisterObj.cs
  Serializer.cs
  SingleWS.cs
  StoryObj.cs
  TabletContentandUtil.cs
  Utility.cs
  VLabel.cs
  VLabel.resx