• a × b

    Find cross product of vectors. Only defined for 3d vectors.

    Type Parameters

    Parameters

    • a: T

      Left operand (3d vector)

    • b: VectorLike

      Right operand (3d vector)

    • target: T = a

      Target for storing the results (Default: a)

    Returns T

    Cross product of vectors

    Example

    cross([1, 0, 0], [0, 1, 0]); // Returns: [0, 0, 1]
    

Generated using TypeDoc