Vector3D.Multiply Vector3D.Multiply Vector3D.Multiply Vector3D.Multiply Operator

Definition

Überlädt

Multiply(Vector3D, Matrix3D) Multiply(Vector3D, Matrix3D) Multiply(Vector3D, Matrix3D) Multiply(Vector3D, Matrix3D)

Transformiert den Koordinatenbereich des angegebenen Vector3D -Struktur unter Verwendung der angegebenen Matrix3D Struktur.Transforms the coordinate space of the specified Vector3D structure using the specified Matrix3D structure.

Multiply(Double, Vector3D) Multiply(Double, Vector3D) Multiply(Double, Vector3D) Multiply(Double, Vector3D)

Multipliziert den angegebenen Skalar mit dem angegebenen Vector3D -Struktur und gibt das Ergebnis als eine Vector3D.Multiplies the specified scalar by the specified Vector3D structure and returns the result as a Vector3D.

Multiply(Vector3D, Double) Multiply(Vector3D, Double) Multiply(Vector3D, Double) Multiply(Vector3D, Double)

Multipliziert die angegebene Vector3D Struktur mit dem angegebenen Skalar und gibt das Ergebnis als eine Vector3D.Multiplies the specified Vector3D structure by the specified scalar and returns the result as a Vector3D.

Multiply(Vector3D, Matrix3D) Multiply(Vector3D, Matrix3D) Multiply(Vector3D, Matrix3D) Multiply(Vector3D, Matrix3D)

Transformiert den Koordinatenbereich des angegebenen Vector3D -Struktur unter Verwendung der angegebenen Matrix3D Struktur.Transforms the coordinate space of the specified Vector3D structure using the specified Matrix3D structure.

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

Parameter

vector
Vector3D Vector3D Vector3D Vector3D

Die Vector3D Struktur transformieren.The Vector3D structure to transform.

matrix
Matrix3D Matrix3D Matrix3D Matrix3D

Die Transformation für das Zuweisen der Vector3D Struktur.The transformation to apply to the Vector3D structure.

Gibt zurück

Das Ergebnis der Transformation vector von matrix.The result of transforming vector by matrix.

Beispiele

Das folgende Beispiel zeigt, wie Sie mit der überladener Multiplikationsoperator zum Transformieren einer Vector3D Struktur durch eine Matrix3D Struktur.The following example shows how to use the overloaded multiplication operator to transform a Vector3D structure by a 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)
Siehe auch

Multiply(Double, Vector3D) Multiply(Double, Vector3D) Multiply(Double, Vector3D) Multiply(Double, Vector3D)

Multipliziert den angegebenen Skalar mit dem angegebenen Vector3D -Struktur und gibt das Ergebnis als eine Vector3D.Multiplies the specified scalar by the specified Vector3D structure and returns the result as a 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

Parameter

scalar
Double Double Double Double

Der zu multiplizierende Skalar.The scalar to multiply.

vector
Vector3D Vector3D Vector3D Vector3D

Die Vector3D zu multiplizierende-Struktur.The Vector3D structure to multiply.

Gibt zurück

Das Ergebnis der Multiplikation von scalar und vector.The result of multiplying scalar and vector.

Beispiele

Das folgende Beispiel zeigt, wie ein Skalar durch eine Vector3D Struktur.The following example shows how to multiple a scalar by a 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)
Siehe auch

Multiply(Vector3D, Double) Multiply(Vector3D, Double) Multiply(Vector3D, Double) Multiply(Vector3D, Double)

Multipliziert die angegebene Vector3D Struktur mit dem angegebenen Skalar und gibt das Ergebnis als eine Vector3D.Multiplies the specified Vector3D structure by the specified scalar and returns the result as a 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

Parameter

vector
Vector3D Vector3D Vector3D Vector3D

Die Vector3D zu multiplizierende-Struktur.The Vector3D structure to multiply.

scalar
Double Double Double Double

Der zu multiplizierende Skalar.The scalar to multiply.

Gibt zurück

Das Ergebnis der Multiplikation von vector und scalar.The result of multiplying vector and scalar.

Beispiele

Das folgende Beispiel zeigt, wie multipliziert eine Vector3D Struktur mit einem Skalar.The following example shows how to multiply a Vector3D structure by a scalar.

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

Gilt für: