pub fn fit_psr<T: Float + MulAdd<T, T, Output = T>, I: Iterator<Item = Vec3<T>>, F: FnMut(Vec4<T>) -> Vec4<T>>(
    mat: Mat4<T>,
    pts: I,
    do_p: F
) -> Aabb<T>
Expand description

Computes an axis aligned bounding box that contains the provided points when transformed into the coordinate space specificed by mat.

“psr” stands for “Potential shadow receivers” since this function is used to get an Aabb containing the potential points (which represent the extents of the volumes of potential things that will be shadowed) that will be shadowed.

NOTE: Will not yield useful results if pts is empty!