Computes the cross product
CopyC#
v X u
. Vectors
CopyC#
u
and
CopyC#
v
must have at least length three. Elements beyond three are ignored for purposes of computing the cross product.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public static void Cross(
	FloatVector v,
	FloatVector u,
	FloatVector result
)
Visual Basic (Declaration)
Public Shared Sub Cross ( _
	v As FloatVector, _
	u As FloatVector, _
	result As FloatVector _
)
Visual C++
public:
static void Cross(
	FloatVector^ v, 
	FloatVector^ u, 
	FloatVector^ result
)

Parameters

v
Type: CenterSpace.NMath.Core..::.FloatVector
3-space vector
u
Type: CenterSpace.NMath.Core..::.FloatVector
3-space vector
result
Type: CenterSpace.NMath.Core..::.FloatVector
orthogonal vector v X u

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.NMathExceptionThrown if any input vector has length less than 3.

See Also