This documentation is archived and is not being maintained.

Point4D.op_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 operator * (
	Point4D point,
	Matrix3D matrix
)
You cannot use methods in XAML.

Parameters

point

The Point4D structure to transform.

matrix

The transformation Matrix3D structure.

Return Value

Returns the result of transforming point and matrix.

The following example shows how to use the overloaded multiplication operator to transform 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 = point1 * matrix1;
// pointResult is equal to (250, 270, 290, 4)

// Displaying Results
resultType = "Point4D";
syntaxString = "pointResult = point1 * matrix1;";
operationString = "Multiplying a Point4D by a Matrix3D";
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
Show: