Documentation moved.
This entry is now part of the unified function reference. Open the unified page →
Function
src/core/classes/vector/functions.ts:45cross
cross(a: ParserEntity, b: ParserEntity): Expression | VectorComputes a three-dimensional cross product or preserves symbolic operands.
throws
UnexpectedDataType For incompatible parser operand types.
throws
DimensionError Unless both Vectors have exactly three elements.
Parameters
| Name | Type | Description |
|---|---|---|
a | ParserEntity | First Vector, or a symbolic Expression operand. |
b | ParserEntity | Second Vector, or a symbolic Expression operand. |
Returns
Expression | Vector — The Vector cross product, or an unevaluated `cross(a, b)` Expression when both operands are Expressions.
