Computes the cross product
CopyC#. Vectors
CopyC# and
CopyC# must have
at least length three. Elements beyond three are ignored for purposes of computing the cross product.
Namespace:
CenterSpace.NMath.Corev X u
u
v
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
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.NMathException | Thrown if any input vector has length less than 3. |