Compartilhar via


Vector3D.Multiply Operador

Definição

Multiplica a estrutura Vector3D especificada pelo Double ou Matrix especificado e retorna o resultado.

Sobrecargas

Multiply(Vector3D, Matrix3D)

Transforma o espaço de coordenadas da estrutura Vector3D especificada usando a estrutura Matrix3D especificada.

Multiply(Double, Vector3D)

Multiplica o escalar especificado pela estrutura Vector3D especificada e retorna o resultado como Vector3D.

Multiply(Vector3D, Double)

Multiplica a estrutura Vector3D especificada pelo escalar especificado e retorna o resultado como um Vector3D.

Multiply(Vector3D, Matrix3D)

Transforma o espaço de coordenadas da estrutura Vector3D especificada usando a estrutura Matrix3D especificada.

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

Parâmetros

vector
Vector3D

A estrutura Vector3D a ser transformada.

matrix
Matrix3D

A transformação a ser aplicada à estrutura Vector3D.

Retornos

Vector3D

O resultado da transformar vector em matrix.

Exemplos

O exemplo a seguir mostra como usar o operador de multiplicação sobrecarregado para transformar uma Vector3D estrutura por uma Matrix3D estrutura.

// Multiplies a Vector3D by a Matrix3D using the overloaded * operator.  
// 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 = vector1 * matrix1;
// vector Result is equal to (2000, 2000, 2000)
' Multiplies a Vector3D by a Matrix3D using the overloaded * operator.  
' 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 = vector1 * matrix1
' vector Result is equal to (2000, 2000, 2000)

Confira também

Aplica-se a

Multiply(Double, Vector3D)

Multiplica o escalar especificado pela estrutura Vector3D especificada e retorna o resultado como Vector3D.

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

Parâmetros

scalar
Double

O escalar a se multiplicar.

vector
Vector3D

A estrutura Vector3D a multiplicar.

Retornos

Vector3D

O resultado da multiplicação de scalar por vector.

Exemplos

O exemplo a seguir mostra como vários escalares por uma Vector3D estrutura.

// Multiplies a Scalar by a Vector3D using the overloaded * operator.  
// Returns a Vector3D.

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

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

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

vectorResult = scalar1 * vector1
' vectorResult is equal to (1500, 2250, 3000)

Confira também

Aplica-se a

Multiply(Vector3D, Double)

Multiplica a estrutura Vector3D especificada pelo escalar especificado e retorna o resultado como um Vector3D.

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

Parâmetros

vector
Vector3D

A estrutura Vector3D a multiplicar.

scalar
Double

O escalar a se multiplicar.

Retornos

Vector3D

O resultado da multiplicação de vector por scalar.

Exemplos

O exemplo a seguir mostra como multiplicar uma Vector3D estrutura por um escalar.

// Multiplies a Vector3D by a Scalar using the overloaded * operator.  
// Returns a Vector3D.

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

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

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

vectorResult = vector1 * scalar1
' vectorResult is equal to (1500, 2250, 3000)

Confira também

Aplica-se a