예제 #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;
		}