cross

Calclates cross product of two vectors in 3D.

  1. CommonType!(T, S) cross(Vector!(T, 2) v, Vector!(S, 2) v2)
  2. Vector!(CommonType!(T, S), 3) cross(Vector!(T, 3) v, Vector!(S, 3) v2)
    Vector!(CommonType!(T, S), 3)
    cross
    (
    T
    S
    )
    (
    const Vector!(T, 3) v
    ,
    const Vector!(S, 3) v2
    )

Parameters

v Vector!(T, 3)

left hand value of calculation

v2 Vector!(S, 3)

right hand value of calculation

Return Value

Type: Vector!(CommonType!(T, S), 3)

cross product of two vectors

Meta