Vector3D.Multiply Operador
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
Multiply(Vector3D, Matrix3D) |
Transforma el espacio de la coordenada de la estructura Vector3D especificada usando la estructura Matrix3D especificada. |
Multiply(Double, Vector3D) |
Multiplica el valor escalar especificado por la estructura Vector3D especificada y devuelve el resultado como una estructura Vector3D. |
Multiply(Vector3D, Double) |
Multiplica la estructura Vector3D especificada por el valor escalar especificado y devuelve el resultado como una estructura Vector3D. |
Multiply(Vector3D, Matrix3D)
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
Devoluciones
Resultado de transformar vector
por matrix
.
Ejemplos
En el ejemplo siguiente se muestra cómo usar el operador de multiplicación sobrecargada para transformar una Vector3D estructura por una Matrix3D estructura.
// 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)
Consulte también
Se aplica a
Multiply(Double, 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
Valor escalar que se va a multiplicar.
Devoluciones
Resultado de multiplicar scalar
y vector
.
Ejemplos
En el ejemplo siguiente se muestra cómo realizar varios escalares por una Vector3D estructura.
// 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)
Consulte también
Se aplica a
Multiply(Vector3D, Double)
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
- scalar
- Double
Valor escalar que se va a multiplicar.
Devoluciones
Resultado de multiplicar vector
y scalar
.
Ejemplos
En el ejemplo siguiente se muestra cómo multiplicar una Vector3D estructura por un 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)