Partager via


Vector3D.Multiply Opérateur

Définition

Multiplie la structure Vector3D spécifiée par le Double ou Matrix spécifié et retourne le résultat.

Surcharges

Multiply(Vector3D, Matrix3D)

Transforme l'espace de coordonnées de la structure Vector3D spécifiée à l'aide de la structure Matrix3D.

Multiply(Double, Vector3D)

Multiplie la scalaire indiquée par la structure Vector3D spécifiée et retourne le résultat sous forme de Vector3D.

Multiply(Vector3D, Double)

Multiplie la structure Vector3D spécifiée par la scalaire indiquée et retourne le résultat sous forme de Vector3D.

Multiply(Vector3D, Matrix3D)

Transforme l'espace de coordonnées de la structure Vector3D spécifiée à l'aide de la structure 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

Paramètres

vector
Vector3D

Structure Vector3D à transformer.

matrix
Matrix3D

Transformation à appliquer à la structure Vector3D.

Retours

Vector3D

Résultat de la transformation de vector par matrix.

Exemples

L’exemple suivant montre comment utiliser l’opérateur de multiplication surchargé pour transformer une Vector3D structure par une Matrix3D structure.

// 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)

Voir aussi

S’applique à

Multiply(Double, Vector3D)

Multiplie la scalaire indiquée par la structure Vector3D spécifiée et retourne le résultat sous forme de 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

Paramètres

scalar
Double

Scalaire à multiplier.

vector
Vector3D

Structure Vector3D à multiplier.

Retours

Vector3D

Résultat de la multiplication de scalar par vector.

Exemples

L’exemple suivant montre comment multipler scalaire par une Vector3D structure.

// 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)

Voir aussi

S’applique à

Multiply(Vector3D, Double)

Multiplie la structure Vector3D spécifiée par la scalaire indiquée et retourne le résultat sous forme de 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

Paramètres

vector
Vector3D

Structure Vector3D à multiplier.

scalar
Double

Scalaire à multiplier.

Retours

Vector3D

Résultat de la multiplication de vector par scalar.

Exemples

L’exemple suivant montre comment multiplier une Vector3D structure par un scalaire.

// 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)

Voir aussi

S’applique à