Create ViewInfo Object

Hi, I am trying to create a viewInfo object of a sampled location around the current viewpoint. As I see, the variables in the viewInfo object are initialized in different parts of the codebase. Is there a simple way to create a viewInfo object of a different location, rotation, FOV etc. from the current viewpoint ? Thanks.