Template Function homing_local_planner::cross2d

Function Documentation

template<typename V1, typename V2>
inline double homing_local_planner::cross2d(const V1 &v1, const V2 &v2)

Calculate the 2d cross product (returns length of the resulting vector along the z-axis in 3d)

Parameters:
  • v1 – object containing public methods x() and y()

  • v2 – object containing fields x() and y()

Returns:

magnitude that would result in the 3D case (along the z-axis)