Point4D.Multiply Method

Transforms the specified Point4D structure by the specified Matrix3D structure.

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

public static Point4D Multiply(
	Point4D point,
	Matrix3D matrix
)

Parameters

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

The Point4D structure to transform.

matrix
Type: System.Windows.Media.Media3D.Matrix3D

The transformation Matrix3D structure.

Return Value

Type: System.Windows.Media.Media3D.Point4D
Returns the result of transforming point and matrix.

The following example shows how to multiply a Point4D structure by a Matrix3D structure.

                        // Multiplies a Point4D by a Matrix.   
                        // Returns a Point4D.

						Point4D point1 = new Point4D(10, 5, 1, 4);
                        Point4D pointResult = new Point4D();
                        Matrix3D matrix1 = new Matrix3D(10, 10, 10, 0, 20, 20, 20, 0, 30, 30, 30, 0, 5, 10, 15, 1);

                        pointResult = Point4D.Multiply(point1, matrix1);
                        // pointResult is equal to (250, 270, 290, 4) 

                        // Displaying Results
						resultType = "Point4D";
                        syntaxString = "pointResult = Point4D.Multiply(point1, matrix1);";
                        operationString = "Multiplying a Point4D by a Matrix3D";
                        ShowResults(pointResult.ToString(), syntaxString, resultType, operationString);

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft