cross

Calclates cross product of two vectors in 2D. Returned value is |v||v2| sin a

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

Parameters

v Vector!(T, 2)

left hand value of calculation

v2 Vector!(S, 2)

right hand value of calculation

Return Value

Type: CommonType!(T, S)

cross product of two vectors

Meta