Vector math for "de-perspective" transform?

Interesting… after this i also just found the original (?) thread: