distance3d.random.randn_direction

distance3d.random.randn_direction(random_state)[source]

Sample 3D direction from standard normal distribution and normalize it.

Parameters:
random_statenp.random.RandomState

Random number generator.

Returns:
directionarray, shape (3,)

3D direction: 3D vector of unit length.