Point3D.Multiply(Point3D, Matrix3D) 연산자

정의

지정된 Point3D 구조체로 지정된 Matrix3D 구조체를 변환합니다.

public:
 static System::Windows::Media::Media3D::Point3D operator *(System::Windows::Media::Media3D::Point3D point, System::Windows::Media::Media3D::Matrix3D matrix);
public static System.Windows.Media.Media3D.Point3D operator * (System.Windows.Media.Media3D.Point3D point, System.Windows.Media.Media3D.Matrix3D matrix);
static member ( * ) : System.Windows.Media.Media3D.Point3D * System.Windows.Media.Media3D.Matrix3D -> System.Windows.Media.Media3D.Point3D
Public Shared Operator * (point As Point3D, matrix As Matrix3D) As Point3D

매개 변수

point
Point3D

변형할 점입니다.

matrix
Matrix3D

point를 변환하는 데 사용되는 매트릭스입니다.

반환

Point3D

point를 사용하여 matrix를 변환한 결과입니다.

예제

다음 예제에서는 오버로드된 곱하기 연산자를 사용하여 구조를 사용하여 Matrix3D 구조를 변환 Point3D 하는 방법을 보여줍니다.

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

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

적용 대상

추가 정보