Vector3.Cross Method (Vector3, Vector3, Vector3)
Calculates the cross product of two vectors.
Syntax
'Declaration
Public Shared Sub Cross ( _
ref vector1 As Vector3, _
ref vector2 As Vector3, _
out result As Vector3 _
)
public static void Cross (
ref Vector3 vector1,
ref Vector3 vector2,
out Vector3 result
)
public:
static void Cross(
ref Vector3 vector1,
ref Vector3 vector2,
out Vector3 result
)
Parameters
- vector1
Type: Vector3
Source vector. - vector2
Type: Vector3
Source vector. - result
Type: Vector3
[OutAttribute] The cross product of the vectors.
Requirements
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
Vector3 Structure
Vector3 Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone