Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Return uniformly distributed random rotations in quaternion form
ResourceFunction["RandomRotationQuaternion"][] returns a unit quaternion from uniformly distributed random rotations. | |
ResourceFunction["RandomRotationQuaternion"][m] returns m unit quaternions from uniformly distributed random rotations. |
Generate a random orientation:
In[1]:= |
Out[1]= |
Generate 5 random orientations:
In[2]:= |
Out[2]= |
The norm of a quaternion corresponding to random orientations is equal to 1:
In[3]:= |
Out[3]= |
Generate 2500 random points on a sphere by rotating the vector {0,0,1} with random orientations:
In[4]:= |
Out[4]= |
This work is licensed under a Creative Commons Attribution 4.0 International License