pynbody.util.random_rotation_matrix#
- pynbody.util.random_rotation_matrix()[source]#
Return a random rotation matrix (Haar measure for 3x3 case), using fast algorithm from Graphics Gems III
(http://tog.acm.org/resources/GraphicsGems/gemsiii/rand_rotation.c)