Getting angle of surface based on camera

I need to get the angle of a given surface and not a whole object, like the picture i link:21880-unity.png

You can throw a raycast from the camera then you get the normal of the RaycastHit and compare that with the transform.forward of the camera. That should be what you are after.