Vector3D.Multiply Operatör
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Aşırı Yüklemeler
Multiply(Vector3D, Matrix3D) |
Belirtilen yapıyı kullanarak Matrix3D belirtilen Vector3D yapının koordinat alanını dönüştürür. |
Multiply(Double, Vector3D) |
Belirtilen skaler değeri belirtilen Vector3D yapıyla çarpar ve sonucu olarak Vector3Ddöndürür. |
Multiply(Vector3D, Double) |
Belirtilen yapıyı belirtilen Vector3D skaler ile çarpar ve sonucu olarak Vector3Ddöndürür. |
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
Parametreler
Döndürülenler
ile matrix
dönüştürmenin vector
sonucu.
Örnekler
Aşağıdaki örnekte, bir yapıyı bir yapıya Matrix3D dönüştürmek Vector3D için aşırı yüklenmiş çarpma işlecinin nasıl kullanılacağı gösterilmektedir.
// 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)
Ayrıca bkz.
Şunlara uygulanır
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
Parametreler
- scalar
- Double
Çarpacak skaler.
Döndürülenler
ve vector
çarpmasının scalar
sonucu.
Örnekler
Aşağıdaki örnekte, bir yapıya göre skalerlerin nasıl birden çok kez etkinleştirdiği Vector3D gösterilmektedir.
// 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)
Ayrıca bkz.
Şunlara uygulanır
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
Parametreler
- scalar
- Double
Çarpacak skaler.
Döndürülenler
ve scalar
çarpmasının vector
sonucu.
Örnekler
Aşağıdaki örnekte, bir Vector3D yapıyı skaler ile çarpma gösterilmektedir.
// 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)