Vector3.Cross Method (Microsoft.Xna.Framework)

Computes the cross product of two vectors.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.395)
  • C#
  • VB
  • F#
public static void Cross(
	Vector3 vector1, 
	Vector3 vector2, 
	out Vector3 result
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

vector1
Type: Microsoft.Xna.Framework.Vector3
The first vector.
vector2
Type: Microsoft.Xna.Framework.Vector3
The second vector.
result
Type: out Microsoft.Xna.Framework.Vector3
The cross product of two vectors as an output parameter.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web