raypier.core.find_focus

Utility module

raypier.core.find_focus.find_focus(ray_origins, ray_directions, weights=None)

givens Nx3 arrays for ray origin and directions, return the 3D point of closest intersection, found in the least-squares sense.

See https://math.stackexchange.com/q/1762491