vectorproj

Calculates the vector projection of the vector a on the vector b in 2d or 3D.Depending on input, function can return scalar, vector or matrix

Arguments

  1. Vector a, size 2 or 3.
  2. Vector b, size 2 or 3.

Output

Resulting vector

Examples

vectorproj