Point3D.Multiply(Point3D, Matrix3D) Operator

Definition

Transforms the specified Point3D structure by the specified Matrix3D structure.

C#
public static System.Windows.Media.Media3D.Point3D operator * (System.Windows.Media.Media3D.Point3D point, System.Windows.Media.Media3D.Matrix3D matrix);

Parameters

point
Point3D

The point to transform.

matrix
Matrix3D

The matrix that is used to transform point.

Returns

The result of transforming point by using matrix.

Examples

The following example shows how to use the overloaded multiplication operator to transform a Point3D structure by using a Matrix3D structure.

C#
// Multiplies a Point3D by a Matrix.  
// Returns a Point3D.

Point3D point1 = new Point3D(10, 5, 1);
Point3D pointResult = new Point3D();
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 (235, 240, 245)

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

Applies to

제품 버전
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

See also