| NMathFunctionsCross(DoubleVector, DoubleVector) Method |
Computes the cross product
. Vectors
and
must have
at least length three. Elements beyond three are ignored for purposes of computing the cross product.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static DoubleVector Cross(
DoubleVector v,
DoubleVector u
)
Public Shared Function Cross (
v As DoubleVector,
u As DoubleVector
) As DoubleVector
public:
static DoubleVector^ Cross(
DoubleVector^ v,
DoubleVector^ u
)
static member Cross :
v : DoubleVector *
u : DoubleVector -> DoubleVector
Parameters
- v DoubleVector
- 3-space vector
- u DoubleVector
- 3-space vector
Return Value
DoubleVectorThe resulting orthogonal vector
Exceptions Exception | Condition |
---|
NMathException | Thrown if any input vector has length less than 3. |
See Also