pub fn raycast_many(
mesh: &Mesh,
bvh: &Bvh,
origins: &[[f32; 3]],
dirs: &[[f32; 3]],
opts: &RayOptions,
out: &mut [Option<RayHit>],
) -> Result<()>Expand description
raycast for many rays: out[i] gets the nearest hit of the ray
origins[i] + t * dirs[i].
ยงErrors
QueryError::InvalidInput when the three slices differ in length or any
ray is invalid, and otherwise as for raycast. Every ray is validated
before anything is written, so on error out is unchanged.