Vector4.Cross(Vector4, Vector4) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Computes the cross product of two vectors. For homogeneous coordinates, the product of the weights is the new weight for the resulting product.
public:
static System::Numerics::Vector4 Cross(System::Numerics::Vector4 vector1, System::Numerics::Vector4 vector2);
public static System.Numerics.Vector4 Cross(System.Numerics.Vector4 vector1, System.Numerics.Vector4 vector2);
static member Cross : System.Numerics.Vector4 * System.Numerics.Vector4 -> System.Numerics.Vector4
Public Shared Function Cross (vector1 As Vector4, vector2 As Vector4) As Vector4
Parameters
- vector1
- Vector4
The first vector.
- vector2
- Vector4
The second vector.
Returns
The cross product.
Remarks
The proposed Cross function for Vector4 is nearly the same as that for Cross(Vector3, Vector3) with the addition of the fourth value which is the product of the original two w's. This can be derived by symbolically performing the cross product for Vector3 with values [x_1/w_1, y_1/w_1, z_1/w_1] and [x_2/w_2, y_2/w_2, z_2/w_2].