'Angle between X axis of object and a 3D point on plane with Three.js

I have a plane as shown in the image, there I have an object at point O, having its X,Y,Z axis like in the image and there is another point P on the plane. What I want to find out is the angle between PO and X axis of the object. How can I do so?

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source