tool orientation

hello everyone ,

i’m struggling with extracting rx,ry,rz for the robot tool .

I used csv file with points and normal direction in world base.

the normal i have is projection of vector in cartesien base Nx, Ny,Nz.

how i will change the vector coordination i have to rx,ry,rz so i can control the orientation of the tool.

Any thoughts?