I'm so confused about finding an angle, theta in this illustration. With having three coordinate information, how can I calculate the theta using dot product? I would easily find the angle by using trigonometric formula if I ignore the z-axis. But I want to solve this problem with 3-dimensional coordinate system by using dot product formula. Please help me confused.