The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Subtracts the specified vector from another specified vector.
public static Vector Subtract(
The following example shows how to use this method to subtract a Vector structure from a Vector structure.
private Vector subtractExample()
Vector vector1 = new Vector(20, 30);
Vector vector2 = new Vector(45, 70);
// Subtract vector2 from vector1.
// vectorResult is equal to (-25, -40)
Vector vectorResult = Vector.Subtract(vector1, vector2);
Supported in: 4.6, 4.5, 4, 3.5, 3.0
.NET Framework Client Profile
Supported in: 4, 3.5 SP1