A Perspective-n-Points-and-Lines method.
Voronoi diagram clipped on a Polygon
Matrix Factorization Library