The ray-trace function and its building blocks need to be aware of multiple rays, when P and S are not shape (3,) or (1,3) but shape (N,3) or maybe (M,N,3). The matrix products and such will do the block computations naturally, but ray-surface intersection is iterative and will need some tricks.
The ray-trace function and its building blocks need to be aware of multiple rays, when
P
andS
are not shape(3,)
or(1,3)
but shape(N,3)
or maybe(M,N,3)
. The matrix products and such will do the block computations naturally, but ray-surface intersection is iterative and will need some tricks.