CALayer z coordinate for xy

i have a CALayer shown on the screen that is arbitrary rotated in 3D space. how do i determine the z-coordinate of a given XY point on the screen?

CALayer z coordinate for xy
 
 
Q