(edit: i have a solution im happy with involving just 3 plain queues and merging that ill write up in a reply tomorrow i wrote up here. feel free to share any interesting solutions you have though, especially ones taking minimal space)
do any of you know of a fast way to iterate over points of a grid sorted by distance along a particular direction (like in the image. by distance i specifically mean dot product between the point and direction), without actually having to sort a bunch of points? specifically for a 3d 256x256x256 grid, without precomputing for a single direction.
(i dont need the exact location of the grid points, just distances would be fine)
do any of you know of a fast way to iterate over points of a grid sorted by distance along a particular direction (like in the image. by distance i specifically mean dot product between the point and direction), without actually having to sort a bunch of points? specifically for a 3d 256x256x256 grid, without precomputing for a single direction.
(i dont need the exact location of the grid points, just distances would be fine)
