Skip to content

Commit

Permalink
Update grid.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Sep 1, 2024
1 parent 0db5b0d commit a986fdd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions grid.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1508,9 +1508,10 @@ constexpr auto get_gridcoords_from_xyz(const std::array<double, 3> &pos_xyz) ->
}

template <size_t S1>
[[nodiscard]] [[gnu::pure]] constexpr auto expanding_shell_intersection(
const std::array<double, S1> pos, const std::array<double, S1> dir, const double speed,
const double shellradiuststart, const bool isinnerboundary, const double tstart) -> double
[[nodiscard]] constexpr auto expanding_shell_intersection(const std::array<double, S1> &pos,
const std::array<double, S1> &dir, const double speed,
const double shellradiuststart, const bool isinnerboundary,
const double tstart) -> double
// find the closest forward distance to the intersection of a ray with an expanding spherical shell (pos and dir are
// 3-vectors) or expanding circle (2D vectors)
// returns -1 if there are no forward intersections (or if the intersection
Expand Down

0 comments on commit a986fdd

Please sign in to comment.