Function calculate_match_search_direction_for_one_if_not_in_cache

Function Documentation

arma::fvec calculate_match_search_direction_for_one_if_not_in_cache(const arma::mat &points_xy, const SearchDirectionsCacheKey &key, ConeType cone_type, SearchDirectionsCache &cache)

Computes or retrieves from cache the direction vector for a given key.

Parameters:
  • points_xy – Matrix of cone positions

  • key – Triple of cone indices defining the direction

  • cone_type – Type of cone

  • cache – Cache to update and check

Returns:

The direction vector