distance3d.random.randn_line¶
- distance3d.random.randn_line(random_state, scale=1.0)[source]¶
Sample 3D line.
- Parameters:
- random_statenp.random.RandomState
Random number generator.
- scalefloat, optional (default: 1)
Scale of point sampled from normal distribution.
- Returns:
- line_pointarray, shape (3,)
3D Point sampled from normal distribution.
- line_directionarray, shape (3,)
3D direction: 3D vector of unit length.