The Camera class provides access to the camera's world, view, and projection matrices.
What are you trying to do exactly? Depending on what it is, it may very well be that Unity already provides a solution. (What you posted looks like it could be related to picking or to point projection; if so, check out ScreenPointToRay() and the other picking, projection, and un-projection functions in the Camera class.)