Vector3D.Multiply メソッド

定義

指定した Vector3D 構造体を指定した Double または Matrix で乗算し、その結果を返します。Multiplies the specified Vector3D structure by the specified Double or Matrix and returns the result.

オーバーロード

Multiply(Double, Vector3D)

指定したスカラーを指定した Vector3D 構造体で乗算し、その結果を Vector3D として返します。Multiplies the specified scalar by the specified Vector3D structure and returns the result as a Vector3D.

Multiply(Vector3D, Double)

指定した Vector3D 構造体を指定したスカラーで乗算し、その結果を Vector3D として返します。Multiplies the specified Vector3D structure by the specified scalar and returns the result as a Vector3D.

Multiply(Vector3D, Matrix3D)

指定した Vector3D 構造体の座標空間を、指定した Matrix3D 構造体を使用して変換します。Transforms the coordinate space of the specified Vector3D structure using the specified Matrix3D structure.

Multiply(Double, Vector3D)

指定したスカラーを指定した Vector3D 構造体で乗算し、その結果を Vector3D として返します。Multiplies the specified scalar by the specified Vector3D structure and returns the result as a Vector3D.

public:
 static System::Windows::Media::Media3D::Vector3D Multiply(double scalar, System::Windows::Media::Media3D::Vector3D vector);
public static System.Windows.Media.Media3D.Vector3D Multiply (double scalar, System.Windows.Media.Media3D.Vector3D vector);
static member Multiply : double * System.Windows.Media.Media3D.Vector3D -> System.Windows.Media.Media3D.Vector3D
Public Shared Function Multiply (scalar As Double, vector As Vector3D) As Vector3D

パラメーター

scalar
Double

乗算するスカラー。The scalar to multiply.

vector
Vector3D

乗算する Vector3D 構造体。The Vector3D structure to multiply.

戻り値

scalarvector を乗算した結果。The result of multiplying scalar and vector.

次の例は、 Vector3D構造体によってスカラーを乗算する方法を示しています。The following example shows how to multiply a scalar by a Vector3D structure.

// Multiplies a Vector3D by a Scalar using the static Multiply method.  
// Returns a Vector3D.

Vector3D vector1 = new Vector3D(20, 30, 40);
Double scalar1 = 75;
Vector3D vectorResult = new Vector3D();

vectorResult = Vector3D.Multiply(vector1, scalar1);
// vectorResult is equal to (1500, 2250, 3000)
' Multiplies a Vector3D by a Scalar using the static Multiply method.  
' Returns a Vector3D.

Dim vector1 As New Vector3D(20, 30, 40)
Dim scalar1 As Double = 75
Dim vectorResult As New Vector3D()

vectorResult = Vector3D.Multiply(vector1, scalar1)
' vectorResult is equal to (1500, 2250, 3000)

こちらもご覧ください

Multiply(Vector3D, Double)

指定した Vector3D 構造体を指定したスカラーで乗算し、その結果を Vector3D として返します。Multiplies the specified Vector3D structure by the specified scalar and returns the result as a Vector3D.

public:
 static System::Windows::Media::Media3D::Vector3D Multiply(System::Windows::Media::Media3D::Vector3D vector, double scalar);
public static System.Windows.Media.Media3D.Vector3D Multiply (System.Windows.Media.Media3D.Vector3D vector, double scalar);
static member Multiply : System.Windows.Media.Media3D.Vector3D * double -> System.Windows.Media.Media3D.Vector3D
Public Shared Function Multiply (vector As Vector3D, scalar As Double) As Vector3D

パラメーター

vector
Vector3D

乗算する Vector3D 構造体。The Vector3D structure to multiply.

scalar
Double

乗算するスカラー。The scalar to multiply.

戻り値

vectorscalar を乗算した結果。The result of multiplying vector and scalar.

次の例は、構造体をVector3Dスカラーで乗算する方法を示しています。The following example shows how to multiply a Vector3D structure by a scalar.

// Multiplies a Vector3D by a Scalar using the static Multiply method.  
// Returns a Vector3D.

Vector3D vector1 = new Vector3D(20, 30, 40);
Double scalar1 = 75;
Vector3D vectorResult = new Vector3D();

vectorResult = Vector3D.Multiply(vector1, scalar1);
// vectorResult is equal to (1500, 2250, 3000)
' Multiplies a Vector3D by a Scalar using the static Multiply method.  
' Returns a Vector3D.

Dim vector1 As New Vector3D(20, 30, 40)
Dim scalar1 As Double = 75
Dim vectorResult As New Vector3D()

vectorResult = Vector3D.Multiply(vector1, scalar1)
' vectorResult is equal to (1500, 2250, 3000)

こちらもご覧ください

Multiply(Vector3D, Matrix3D)

指定した Vector3D 構造体の座標空間を、指定した Matrix3D 構造体を使用して変換します。Transforms the coordinate space of the specified Vector3D structure using the specified Matrix3D structure.

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

パラメーター

vector
Vector3D

変換対象の Vector3D 構造体。The Vector3D structure to transform.

matrix
Matrix3D

Vector3D 構造体に適用する変換。The transformation to apply to the Vector3D structure.

戻り値

vector によって matrix3D を変換した結果を返します。Returns the result of transforming vector by matrix3D.

次の例は、 Multiplyメソッドを使用して構造体を構造体でVector3D Matrix3D変換する方法を示しています。The following example shows how to use the Multiply method to transform a Vector3D structure by a Matrix3D structure.

// Multiplies a Vector3D by a Matrix3D using the static Multiply method.  
// Returns a Vector3D.

Vector3D vector1 = new Vector3D(20, 30, 40);
Matrix3D matrix1 = new Matrix3D(10, 10, 10, 0, 20, 20, 20, 0, 30, 30, 30, 0, 5, 10, 15, 1);
Vector3D vectorResult = new Vector3D();

vectorResult = Vector3D.Multiply(vector1,matrix1);
// vector Result is equal to (2000, 2000, 2000)
' Multiplies a Vector3D by a Matrix3D using the static Multiply method.  
' Returns a Vector3D.

Dim vector1 As New Vector3D(20, 30, 40)
Dim matrix1 As New Matrix3D(10, 10, 10, 0, 20, 20, 20, 0, 30, 30, 30, 0, 5, 10, 15, 1)
Dim vectorResult As New Vector3D()

vectorResult = Vector3D.Multiply(vector1,matrix1)
' vector Result is equal to (2000, 2000, 2000)

こちらもご覧ください

適用対象