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