View Frustum distortion due to angle of view change

I try to do something like this in unity. But how do i program for the view frustum of the camera in terms of rotation? thanks!!

Quite old but maybe for someone else this can be useful: Unity - Manual: Using an oblique frustum