javascript - Get rotations for x, y, z axis from 3d coordinate -


i've been struggling calculate rotationx, rotationy , rotationz (css transform) origin point in 3d space. 3d point can seen vector length 1 starting origin (0,0,0) (x,y,z). i'm trying calculate pitch, yaw , roll of vector.

it's similar unit circle third dimension. instead of angle t, i'm looking rotation around each axis unit circle

i've been trying solution seem miss something: how convert direction vector euler angles?

thanks,

eric


Comments