Exemplo n.º 1
0
		public bool Equals(Vector2D other)
		{
			return other != null && X == other.X && Y == other.Y;
		}
Exemplo n.º 2
0
		public double Dot(Vector2D v) 
		{
			return ((X) * v.X) + (Y * v.Y);
		}
Exemplo n.º 3
0
		public Vector2D(Vector2D other)
		{
			X = other.X;
			Y = other.Y;
		}
Exemplo n.º 4
0
		public void Set(Vector2D v)
		{
			X = v.X;
			Y = v.Y;
		}
Exemplo n.º 5
0
		public void Add(Vector2D v)
		{
			X += v.X;
			Y += v.Y;
		}
Exemplo n.º 6
0
		public void Translate(Vector2D vector)
		{
			MinPt.Add(vector);
			MaxPt.Add(vector);
		}
Exemplo n.º 7
0
		public void Translate(Vector2D vector)
		{
			throw new NotSupportedException();
		}