neurom.morphmath.vector_projection

neurom.morphmath.vector_projection(v1, v2)[source]

compute the vector projection of v1 upon v2

Parameters:
  • v2 (v1,) – iterable
  • 0, 1, 2 corresponding to cartesian coordinates (indices) –
Returns:

3-vector of the projection of point p onto the direction of v