Пример #1
0
		public Vector2D (Vector2D v)
		{
			this.x = v.x;
			this.y = v.y;
		}
Пример #2
0
		public float DotProduct (Vector2D other)
		{
			return x * other.x + y * other.y;
		}
Пример #3
0
		public Vector2D Add (Vector2D v)
		{
			x += v.x;
			y += v.y;
			return this;
		}