Creates a rotation matrix to map a vector x to [1 0 0 ... 0]
rotationMatrixToX1(x)
x
Rotation matrix (JxJ)
Useful links