Point4D.Subtract Method

Subtracts a Point4D structure from a Point4D structure.

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

'Declaration
Public Shared Function Subtract ( _
	point1 As Point4D, _
	point2 As Point4D _
) As Point4D

Parameters

point1
Type: System.Windows.Media.Media3D.Point4D

The Point4D structure to be subtracted from.

point2
Type: System.Windows.Media.Media3D.Point4D

The Point4D structure to subtract from point1.

Return Value

Type: System.Windows.Media.Media3D.Point4D
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.

						Dim point1 As New Point4D(10, 5, 1, 4)
						Dim point2 As New Point4D(15, 40, 60, 75)
						Dim pointResult As 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)

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft