次の方法で共有


Point4D.Multiply(Point4D, Matrix3D) メソッド

定義

指定した Point4D 構造体を、指定した Matrix3D 構造体で変換します。

public:
 static System::Windows::Media::Media3D::Point4D Multiply(System::Windows::Media::Media3D::Point4D point, System::Windows::Media::Media3D::Matrix3D matrix);
public static System.Windows.Media.Media3D.Point4D Multiply (System.Windows.Media.Media3D.Point4D point, System.Windows.Media.Media3D.Matrix3D matrix);
static member Multiply : System.Windows.Media.Media3D.Point4D * System.Windows.Media.Media3D.Matrix3D -> System.Windows.Media.Media3D.Point4D
Public Shared Function Multiply (point As Point4D, matrix As Matrix3D) As Point4D

パラメーター

point
Point4D

変換対象の Point4D 構造体。

matrix
Matrix3D

変換 Matrix3D 構造体。

戻り値

Point4D

pointmatrix を変換した結果を返します。

次の例は、構造体に構造体を Point4D 乗算する方法を Matrix3D 示しています。

// 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);
' Multiplies a Point4D by a Matrix.  
' Returns a Point4D.

Dim point1 As New Point4D(10, 5, 1, 4)
Dim pointResult As New Point4D()
Dim matrix1 As 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)

適用対象

こちらもご覧ください