Vector3D.CrossProduct(Vector3D, Vector3D) Método
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í.
Calcula el producto vectorial de dos estructuras Vector3D.
public:
static System::Windows::Media::Media3D::Vector3D CrossProduct(System::Windows::Media::Media3D::Vector3D vector1, System::Windows::Media::Media3D::Vector3D vector2);
public static System.Windows.Media.Media3D.Vector3D CrossProduct (System.Windows.Media.Media3D.Vector3D vector1, System.Windows.Media.Media3D.Vector3D vector2);
static member CrossProduct : System.Windows.Media.Media3D.Vector3D * System.Windows.Media.Media3D.Vector3D -> System.Windows.Media.Media3D.Vector3D
Public Shared Function CrossProduct (vector1 As Vector3D, vector2 As Vector3D) As Vector3D
Parámetros
Devoluciones
Producto vectorial de vector1
y vector2
.
Ejemplos
// Calculates the cross product of two Vector3D structures
// using the static CrossProduct method.
// Returns a Double.
Vector3D vector1 = new Vector3D(20, 30, 40);
Vector3D vector2 = new Vector3D(45, 70, 80);
Vector3D crossProduct = new Vector3D();
crossProduct = Vector3D.CrossProduct(vector1,vector2);
// crossProduct is equal to (-400, 200, 50)
' Calculates the cross product of two Vector3D structures
' using the static CrossProduct method.
' Returns a Double.
Dim vector1 As New Vector3D(20, 30, 40)
Dim vector2 As New Vector3D(45, 70, 80)
Dim crossProduct As New Vector3D()
crossProduct = Vector3D.CrossProduct(vector1,vector2)
' crossProduct is equal to (-400, 200, 50)