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 DoubleVector Cross(
	DoubleVector v,
	DoubleVector u
)
Visual Basic (Declaration)
Public Shared Function Cross ( _
	v As DoubleVector, _
	u As DoubleVector _
) As DoubleVector
Visual C++
public:
static DoubleVector^ Cross(
	DoubleVector^ v, 
	DoubleVector^ u
)

Parameters

v
Type: CenterSpace.NMath.Core..::.DoubleVector
3-space vector
u
Type: CenterSpace.NMath.Core..::.DoubleVector
3-space vector

Return Value

The resulting orthogonal vector

Exceptions

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

See Also