Function calculate_visible_cones_for_one_cone

Function Documentation

std::pair<arma::uvec, arma::uvec> calculate_visible_cones_for_one_cone(int cone_idx, const arma::umat &cone_within_distance_matrix_mask, const SearchDirectionsCacheKey &search_direction_key, const arma::cube &cone_to_cone_vecs, float search_angle, const SearchDirectionsCache &search_direction_cache, AngleMaskCache &angle_cache, const arma::uvec &idxs_to_check)

Calculates visibility masks (good and bad angles) for a cone with respect to others.

Parameters:
  • cone_idx – Index of the cone being evaluated

  • cone_within_distance_matrix_mask – Boolean matrix mask of valid distances

  • search_direction_key – Key to retrieve search direction

  • cone_to_cone_vecs – Cube of relative vectors

  • search_angle – Maximum allowed angle

  • search_direction_cache – Cache of direction vectors

  • angle_cache – Cache of evaluated angles

  • idxs_to_check – Indices of potential matching cones

Returns:

Pair of boolean masks (good_mask, bad_mask)