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 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
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.NMathException | Thrown if any input vector has length less than 3. |