コード例 #1
0
		/// <summary>Subtracts a Velocity from this velocity.</summary>
		public Velocity Subtract(Velocity other) { return new Velocity(X - other.X, Y - other.Y); }
コード例 #2
0
		/// <summary>Adds a Velocity to this velocity.</summary>
		public Velocity Add(Velocity other) { return new Velocity(X + other.X, Y + other.Y); }