scene_synthesizer.utils.sample_random_direction_R3
- scene_synthesizer.utils.sample_random_direction_R3(number_of_directions, seed=None)
Uniformly distributed directions on S2. Sampled from a multivariate Gaussian, followed by normalization.
- Parameters:
number_of_directions (int) – Number of directions to sample.
seed (int, numpy.random._generator.Generator, optional) – A seed or random number generator. Defaults to None which creates a new default random number generator.
- Returns:
number_of_directionsx3 array of directions
- Return type:
np.array