Information
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.

Point4D.Subtract Method

Subtracts a Point4D structure from a Point4D structure.

Namespace: System.Windows.Media.Media3D
Assembly: PresentationCore (in presentationcore.dll)

public static Point4D Subtract (
	Point4D point1,
	Point4D point2
)
public static Point4D Subtract (
	Point4D point1, 
	Point4D point2
)
public static function Subtract (
	point1 : Point4D, 
	point2 : Point4D
) : Point4D
You cannot use methods in XAML.

Parameters

point1

The Point4D structure to be subtracted from.

point2

The Point4D structure to subtract from point1.

Return Value

Returns the difference between point1 and point2.

The following example shows how to subtract a Point4D structure from a Point4D structure.

// Subtracts a Point3D from a Point4D using the static Subtract method. 
// Returns a Point4D.

Point4D point1 = new Point4D(10, 5, 1, 4);
Point4D point2 = new Point4D(15, 40, 60, 75);
Point4D pointResult = new Point4D();

pointResult = Point4D.Subtract(point1, point2);
// pointResult is equal to (-5, -35, -59, -71)

// Displaying Results
syntaxString = "pointResult = Point4D.Subtract(point1, point2);";
resultType = "Point4D";
operationString = "Subtracting a Vector3D from a Point4D";
ShowResults(pointResult.ToString(), syntaxString, resultType, operationString);

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft