Ok, so...i'm not sure what exactly you want to do...you have a point (x,y,z) and what to apply the rotations PIx-PIz to get a point (x',y',z')? If so, just use rotateX, ..Y and ..Z on the point. But be aware of that gimbal lock thing...doing rotations that way is not as easy as i looks like at first glance.